From 162e87ebdad0bfeb8971028536fa2b6a8f5ac87a Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Sat, 8 Apr 2023 19:43:40 +0200 Subject: [PATCH] improve blog --- config.toml | 9 ++++--- content/blog/fifth.md | 8 +++--- content/blog/first/index.md | 8 +++--- content/blog/fourth.md | 8 +++--- content/blog/huit.md | 8 +++--- content/blog/neuf.md | 8 +++--- content/blog/second.md | 8 +++--- content/blog/sept.md | 8 +++--- content/blog/sixth.md | 8 +++--- content/notes/_index.md | 6 ++--- content/notes/fourth.md | 8 +++--- content/notes/second.md | 8 +++--- content/notes/sept.md | 8 +++--- content/notes/sixth.md | 8 +++--- content/notes/third.md | 8 +++--- content/static/apropos.md | 2 +- static/custom.css | 13 ++++++--- templates/base.html | 45 ++++++++++--------------------- templates/blog-list.html | 6 ++--- templates/blog-page.html | 22 ++++++++++++++- templates/index.html | 21 +++++++-------- templates/macros/card.html | 14 ++-------- templates/note-page.html | 31 +++++++++++++++++++++ templates/note.html | 47 ++++++++++++++++++++++++++++++++ templates/taxonomy_list.html | 20 +++++++++----- templates/taxonomy_single.html | 49 +++++++++++++++++++++------------- 26 files changed, 241 insertions(+), 148 deletions(-) create mode 100644 templates/note-page.html create mode 100644 templates/note.html diff --git a/config.toml b/config.toml index 304c780..bd9d561 100644 --- a/config.toml +++ b/config.toml @@ -12,9 +12,8 @@ build_search_index = true ignored_content = ["*.kate-swp"] taxonomies = [ - { name = "tags", feed = true}, - { name = "categorie", feed = true}, - { name = "type", feed = false}, + { name = "Dossier", feed = true, paginate_by = 9}, + { name = "Tag", feed = true, paginate_by = 9}, ] [markdown] @@ -25,3 +24,7 @@ highlight_code = true [extra] # Put all your custom variables here +friend_sites = [ + { name = "chosto", url = "https://blog.chosto.me" }, + { name = "deuxfleurs", url = "https://plume.deuxfleurs.fr/" }, +] diff --git a/content/blog/fifth.md b/content/blog/fifth.md index 75aded6..5840d5a 100644 --- a/content/blog/fifth.md +++ b/content/blog/fifth.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/blog/first/index.md b/content/blog/first/index.md index 502ef04..7e174c8 100644 --- a/content/blog/first/index.md +++ b/content/blog/first/index.md @@ -2,14 +2,14 @@ title = "Fabriquer son vélo cargo" date = 2023-02-15 [taxonomies] -tags = [ +Tag = [ "velo_cargo", "DIY", - "rust" + "Rust" ] -categorie = [ +Dossier = [ "Vélo-cargo", - "rust" + "Rust" ] [extra] image = "cover.jpg" diff --git a/content/blog/fourth.md b/content/blog/fourth.md index 75aded6..5840d5a 100644 --- a/content/blog/fourth.md +++ b/content/blog/fourth.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/blog/huit.md b/content/blog/huit.md index 75aded6..5840d5a 100644 --- a/content/blog/huit.md +++ b/content/blog/huit.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/blog/neuf.md b/content/blog/neuf.md index 75aded6..5840d5a 100644 --- a/content/blog/neuf.md +++ b/content/blog/neuf.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/blog/second.md b/content/blog/second.md index 1f6e825..2bb0ad0 100644 --- a/content/blog/second.md +++ b/content/blog/second.md @@ -2,13 +2,13 @@ title = "My second post" date = 2019-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ +Dossier = [ "Vélo-cargo", - "rust" + "Rust" ] [extra] image="placeholder.jpg" diff --git a/content/blog/sept.md b/content/blog/sept.md index 75aded6..5840d5a 100644 --- a/content/blog/sept.md +++ b/content/blog/sept.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/blog/sixth.md b/content/blog/sixth.md index 75aded6..5840d5a 100644 --- a/content/blog/sixth.md +++ b/content/blog/sixth.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/notes/_index.md b/content/notes/_index.md index b5598a5..8a003ee 100644 --- a/content/notes/_index.md +++ b/content/notes/_index.md @@ -1,9 +1,9 @@ +++ title = "List of notes posts" sort_by = "date" -template = "index.html" -page_template = "blog-page.html" +template = "note.html" +page_template = "note-page.html" -paginate_by = 4 +paginate_by = 10 +++ diff --git a/content/notes/fourth.md b/content/notes/fourth.md index 75aded6..5840d5a 100644 --- a/content/notes/fourth.md +++ b/content/notes/fourth.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/notes/second.md b/content/notes/second.md index 1f6e825..2bb0ad0 100644 --- a/content/notes/second.md +++ b/content/notes/second.md @@ -2,13 +2,13 @@ title = "My second post" date = 2019-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ +Dossier = [ "Vélo-cargo", - "rust" + "Rust" ] [extra] image="placeholder.jpg" diff --git a/content/notes/sept.md b/content/notes/sept.md index 75aded6..5840d5a 100644 --- a/content/notes/sept.md +++ b/content/notes/sept.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/notes/sixth.md b/content/notes/sixth.md index 75aded6..5840d5a 100644 --- a/content/notes/sixth.md +++ b/content/notes/sixth.md @@ -2,12 +2,12 @@ title = "My third post" date = 2012-11-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/notes/third.md b/content/notes/third.md index e0fa7af..15c1743 100644 --- a/content/notes/third.md +++ b/content/notes/third.md @@ -2,12 +2,12 @@ title = "My third post" date = 2023-04-28 [taxonomies] -tags = [ - "rust", +Tag = [ + "Rust", "cirque" ] -categorie = [ - "rust" +Dossier = [ + "Rust" ] [extra] image="/img/lantern.png" diff --git a/content/static/apropos.md b/content/static/apropos.md index 47b1cc4..0936f3e 100644 --- a/content/static/apropos.md +++ b/content/static/apropos.md @@ -8,7 +8,7 @@ title = "D'où je parle" ## Pourquoi ce blog -Convaincu par la philosophie des logiciels libres, je souhaite autant que possible partager mes expériences. +Convaincu par la philosophie des logiciels libres, je souhaite autant que possible parTager mes expériences. Ce blog à pour vocation d'y contribuer en parlant d'un peu de tout et surtout du n'importe quoi. Ce blog comporte une section **sites amis** parce que j'aime pouvoir naviguer sur internet sans utiliser un moteur de recherche. diff --git a/static/custom.css b/static/custom.css index 4f83293..2f689f2 100644 --- a/static/custom.css +++ b/static/custom.css @@ -72,8 +72,9 @@ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); } @media screen and (max-width: 768px) { - .overlay { - background-image: linear-gradient(to bottom, rgba(190, 184, 184, 0), rgb(190, 184, 184)); + .overlay { + background-color: #eff5fb; + color: #296fa8; display: flex; justify-content: center; padding: 1em; @@ -82,6 +83,9 @@ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); .overlay:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); + background-color: #e6e9f7; + border-color: rgba(0,0,0,0); + color: #3850b7; } @media screen and (min-width: 769px) { @@ -89,9 +93,10 @@ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); display: flex; align-items: center; position: relative; - right: 11em; + right: 4.5em; border-radius: 0.25em; padding: 1em; - background-image: linear-gradient(to right, rgba(190, 184, 184, 0), rgb(190, 184, 184)); + background-color: #eff1fa; + color: #3850b7; } } diff --git a/templates/base.html b/templates/base.html index 725817a..80b3a3d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,40 +30,21 @@