From 81885f276022d66e05f6c8bca72e10c7cd1cc789 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 21 Jun 2023 15:03:16 +0200 Subject: [PATCH] site: Update templates --- site/templates/archive.html | 2 - site/templates/authors.html | 11 +++- site/templates/default.html | 116 ++++++++++++++++++++++++++--------- site/templates/division.html | 8 +++ site/templates/post.html | 12 ++-- site/templates/posts.html | 17 +++-- site/templates/tags.html | 11 +++- 7 files changed, 124 insertions(+), 53 deletions(-) delete mode 100644 site/templates/archive.html create mode 100644 site/templates/division.html diff --git a/site/templates/archive.html b/site/templates/archive.html deleted file mode 100644 index 7fe1d03..0000000 --- a/site/templates/archive.html +++ /dev/null @@ -1,2 +0,0 @@ -Vous pouvez trouvez ici toutes nos publications : -$partial("templates/posts.html")$ diff --git a/site/templates/authors.html b/site/templates/authors.html index 9df84a8..75a41bc 100644 --- a/site/templates/authors.html +++ b/site/templates/authors.html @@ -1,3 +1,8 @@ - +
+ Récentes + Catégories + Pôles + Auteur·e·s +
+ +$authors$ diff --git a/site/templates/default.html b/site/templates/default.html index 80a7efa..21e03ec 100644 --- a/site/templates/default.html +++ b/site/templates/default.html @@ -1,34 +1,92 @@ - - - - - DGNum - $title$ - - - -
- - -
-
-

$title$

- $body$ -
+ + + + + + DGNum - $title$ + + + + + + + + +
+ +
+ +
+
+ $if(index)$ + $else$ + $if(title)$

$title$

$endif$ + $endif$ + + $if(in_content)$ +
+ $body$ +
+ $else$ + $body$ + $endif$ +
+
+ + + - - diff --git a/site/templates/division.html b/site/templates/division.html new file mode 100644 index 0000000..50d9326 --- /dev/null +++ b/site/templates/division.html @@ -0,0 +1,8 @@ +$body$ + +$if(posts)$ +
+
Liste des articles rattachés à ce pôle :
+ +$partial("templates/posts.html")$ +$endif$ diff --git a/site/templates/post.html b/site/templates/post.html index 9738ceb..800a507 100644 --- a/site/templates/post.html +++ b/site/templates/post.html @@ -2,18 +2,18 @@
Posté le $date$ $if(author)$ - $author$ + $author$ $endif$
-
+
$body$
diff --git a/site/templates/posts.html b/site/templates/posts.html index b060090..5332ec4 100644 --- a/site/templates/posts.html +++ b/site/templates/posts.html @@ -1,10 +1,7 @@ - +$for(posts)$ + + $date$ + + $title$ + +$endfor$ diff --git a/site/templates/tags.html b/site/templates/tags.html index 3fe1dea..f237045 100644 --- a/site/templates/tags.html +++ b/site/templates/tags.html @@ -1,3 +1,8 @@ - + + +$tags$