From 286bbee0473ed8016067281d8844a9ec8a30f55d Mon Sep 17 00:00:00 2001 From: hendr-ik Date: Mon, 28 Dec 2020 22:17:09 +0100 Subject: [PATCH] add must read marker for blog --- homepage/content/articles/0140-privacy-cookies.md | 3 ++- homepage/theme/templates/archives.html | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/homepage/content/articles/0140-privacy-cookies.md b/homepage/content/articles/0140-privacy-cookies.md index 13cd423..48d4d0c 100644 --- a/homepage/content/articles/0140-privacy-cookies.md +++ b/homepage/content/articles/0140-privacy-cookies.md @@ -1,10 +1,11 @@ -title: Privacy focus? Consider the cookie. +title: Privacy focus? Consider the cookie description: Using cookies does not necessarily equal tracking your users. Learn how you can use cookies to respect the privacy of your users. date: 2020-12-28 slug: privacy-cookies sitemap_priority: 0.7 image_url: /theme/images/offen-blog-0140-privacy-cookies.jpg author: Frederik Ring +must_read: True bottom_cta: quality ## Privacy focus? Consider the cookie diff --git a/homepage/theme/templates/archives.html b/homepage/theme/templates/archives.html index 73e2761..c4f4342 100644 --- a/homepage/theme/templates/archives.html +++ b/homepage/theme/templates/archives.html @@ -36,9 +36,15 @@
{{ article.date | strftime('%d %b %Y') }}{% if article.modified %}(article.updated {{ article.modified | strftime('%d %b %Y') }}){% endif %}, {{ article.author }}
-

- {{ article.title }} -

+

+ {% if not article.must_read %} + {{ article.title }} + {% else %} + + {{ article.title }} + + {% endif %} +

{{ article.description }} Read more