From 2a1dbe6c9e3c5c7cee97e02a87299c2bf7bb6a3c Mon Sep 17 00:00:00 2001
From: "Yann Esposito (Yogsototh)"
Date: Thu, 27 Oct 2022 14:33:35 +0200
Subject: [PATCH] mark archived articles as such
---
.../2010-05-24-Trees--Pragmatism-and-Formalism/index.html | 4 ++--
src/css/legacy.css | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/index.html b/src/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/index.html
index fa353b8..3a31f24 100644
--- a/src/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/index.html
+++ b/src/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/index.html
@@ -134,9 +134,9 @@ Let’s begin to write code
Think
After some times, I just stopped to work. Tell myself “it is enough, now, I must finish it!”. I took a sheet of paper, a pen and began to draw some trees.
I began by make by removing most of the verbosity. I first renamed <item name="Menu">
by simpler name M
for example. I obtained something like:
-
+
and
-
+
Then I made myself the following reflexion:
Considering Tree Edit Distance, each unitary transformation of tree correspond to a simple search and replace on my xml source. We consider three atomic transformations on trees:
diff --git a/src/css/legacy.css b/src/css/legacy.css
index 2514850..1b6cfc5 100644
--- a/src/css/legacy.css
+++ b/src/css/legacy.css
@@ -1,3 +1,11 @@
+body { padding-top: 0; }
+body:before {
+ content: "ARCHIVED ARTICLE";
+ display: block;
+ background: #000;
+ color: #aaa;
+ text-align: center;
+}
.highlight { background: #ff0; color: #000; }
#choix, #afterarticle { text-align: center; }
#choixlang { float: left; width: 0; }