From 17ed382092c1d8595927cd03ac8157a43c681044 Mon Sep 17 00:00:00 2001 From: daudix-UFO Date: Fri, 20 Oct 2023 00:14:15 +0000 Subject: [PATCH] feat: Move blog title and description to the section index --- README.md | 2 -- config.toml | 2 -- content/blog/_index.md | 2 ++ templates/blog_list.html | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2a87d10..9095e74 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,6 @@ Set any color in `$primary-color` and reload, the primary color should be used n - `primary_color`: Primary color used in some browsers set in metadata, see [#primary-color](https://git.exozy.me/daudix/duckquill#primary-color) - `animated_favicon`: Specify if the favicon are animated GIF (true, false) -- `blog_title`: The title of the blog -- `blog_description`: The description of the blog, displayed right under the blog title - `date_format`: Allows setting custom date format in [Tera](https://keats.github.io/tera) format, all available variables are listed [here](https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html). Does not apply to comments - `hosting`: Where the website source are located, used on 404 page - `issues_url`: Link to site bug tracker, if present diff --git a/config.toml b/config.toml index 09463ef..e3d0dad 100644 --- a/config.toml +++ b/config.toml @@ -24,8 +24,6 @@ smart_punctuation = true [extra] primary_color = "#ff7800" animated_favicon = false -blog_description = "Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo" -blog_title = "Writings of Duck's Feet" date_format = "%d %B %Y" hosting = "Codeberg" issues_url = "https://git.exozy.me/daudix/duckquill/issues" diff --git a/content/blog/_index.md b/content/blog/_index.md index 676d150..113e1bf 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,4 +1,6 @@ +++ +title = "Writings of Duck's Feet" +description = "Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo" sort_by = "date" template = "blog_list.html" page_template = "blog.html" diff --git a/templates/blog_list.html b/templates/blog_list.html index c39ec7b..b91845b 100644 --- a/templates/blog_list.html +++ b/templates/blog_list.html @@ -1,9 +1,9 @@ {% extends "base.html" %} {% block content %} -

{{ config.extra.blog_title }}

+

{{ section.title }}

-

{{ config.extra.blog_description }}

+

{{ section.description }}

Filter by tag