From e3e74648583e2f169d20a8640f6dac49fb4a7ee4 Mon Sep 17 00:00:00 2001 From: samaradel Date: Mon, 11 Dec 2023 16:08:42 +0200 Subject: [PATCH] test RSS --- config.toml | 4 +- content/blog/_index.md | 3 + templates/partials/head.html | 179 ++++++++++++++++------------------- 3 files changed, 89 insertions(+), 97 deletions(-) diff --git a/config.toml b/config.toml index 10babaf7f..dc2f9c527 100644 --- a/config.toml +++ b/config.toml @@ -6,12 +6,12 @@ title = "ThreeFold" description="Our global digital backbone" # When set to "true", a feed is automatically generated. -# generate_feed = true +generate_feed = true # The filename to use for the feed. Used as the template filename, too. # Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed. # There is also a built-in template "rss.xml" that renders an RSS 2.0 feed. -# feed_filename = "index.xml" +feed_filename = "atom.xml" # The number of articles to include in the feed. All items are included if # this limit is not set (the default). diff --git a/content/blog/_index.md b/content/blog/_index.md index 07496f1ac..6c310417d 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,7 +1,9 @@ --- title: "Blog" paginate_by: 9 + # paginate_reversed: false + sort_by: "date" insert_anchor_links: "left" #base_url: "posts" @@ -10,6 +12,7 @@ insert_anchor_links: "left" template: "layouts/blog.html" page_template: "blogPage.html" #transparent: true +generate_feed: true extra: imgPath: images/threefold_img2.png --- diff --git a/templates/partials/head.html b/templates/partials/head.html index 60eff64a9..4ccb839c0 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -3,87 +3,80 @@ {% set xFmPart2 = ',x_0,z_1/' %} {% set fallbackImg = 'typewriter-monochrome_2242164_6260x4374.jpg' %} {% set zolaVer = '0.13.0' %} - - - {% block title %} - {{ config.title }} - - - - {% if section.title %} - {{ section.title }} - - {% elif page.title %} - {{ page.title }} - - {%endif%} + + {% block title %} + {{ config.title }} + + + {% if section.title %} + {{ section.title }} + + {% elif page.title %} + {{ page.title }} + + {%endif%} {%if section.extra.imgPath %} - - - - {% elif page.extra.imgPath %} - - - - {%endif%} + + + + {% elif page.extra.imgPath %} + + + + {%endif%} {%if section.description%} - - - - {%elif page.description%} - - - - {%endif%} - - - - {% endblock title %} - - - - - + - - + + - - - - - + + + + - - - + + - - - - + + + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - \ No newline at end of file + + + + {% block rss %} + + {% endblock %} +