feat: Move blog title and description to the section index

This commit is contained in:
daudix-UFO
2023-10-20 00:14:15 +00:00
parent b4c5428159
commit 17ed382092
4 changed files with 4 additions and 6 deletions

View File

@ -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) - `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) - `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 - `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 - `hosting`: Where the website source are located, used on 404 page
- `issues_url`: Link to site bug tracker, if present - `issues_url`: Link to site bug tracker, if present

View File

@ -24,8 +24,6 @@ smart_punctuation = true
[extra] [extra]
primary_color = "#ff7800" primary_color = "#ff7800"
animated_favicon = false 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" date_format = "%d %B %Y"
hosting = "Codeberg" hosting = "Codeberg"
issues_url = "https://git.exozy.me/daudix/duckquill/issues" issues_url = "https://git.exozy.me/daudix/duckquill/issues"

View File

@ -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" sort_by = "date"
template = "blog_list.html" template = "blog_list.html"
page_template = "blog.html" page_template = "blog.html"

View File

@ -1,9 +1,9 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1>{{ config.extra.blog_title }}</h1> <h1>{{ section.title }}</h1>
<p>{{ config.extra.blog_description }}</p> <p>{{ section.description }}</p>
<small> <small>
<a class="link-page" href="{{ config.base_url }}/tags">Filter by tag</a> <a class="link-page" href="{{ config.base_url }}/tags">Filter by tag</a>