From 598e5e9fb7ef7b40f9485e41813ee3a25f5d36b2 Mon Sep 17 00:00:00 2001 From: daudix Date: Fri, 19 Jul 2024 21:36:58 +0300 Subject: [PATCH] Remove description variable from article_list.html (fixes #33) Instead use the normal page content. This allows much richer blog descriptions! --- content/blog/_index.ar.md | 3 ++- content/blog/_index.md | 3 ++- content/blog/_index.ru.md | 3 ++- templates/article_list.html | 4 +--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/content/blog/_index.ar.md b/content/blog/_index.ar.md index b94398a..07b339c 100644 --- a/content/blog/_index.ar.md +++ b/content/blog/_index.ar.md @@ -1,7 +1,8 @@ +++ 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 = "article_list.html" page_template = "article.html" +++ + +Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo diff --git a/content/blog/_index.md b/content/blog/_index.md index d968c68..0c05693 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,7 +1,8 @@ +++ 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 = "article_list.html" page_template = "article.html" +++ + +Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo diff --git a/content/blog/_index.ru.md b/content/blog/_index.ru.md index 816d7b9..16ec24d 100644 --- a/content/blog/_index.ru.md +++ b/content/blog/_index.ru.md @@ -1,7 +1,8 @@ +++ 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 = "article_list.html" page_template = "article.html" +++ + +Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo diff --git a/templates/article_list.html b/templates/article_list.html index acae201..dd8312d 100644 --- a/templates/article_list.html +++ b/templates/article_list.html @@ -5,9 +5,7 @@ {%- set date_locale = macros_translate::translate(key="date_locale", default="en_US", language_strings=language_strings) -%}

{{ section.title }}

-{%- if section.description %} - {{ section.description | markdown | safe }} -{%- endif %} +{{ section.content | safe }}