From 818b22078c9e106594fe5c0fbcdd4fb7248e15a6 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 13 Jun 2020 18:17:58 +0300 Subject: Added links to recipes, recipe archive, smol template changes --- content/food/archive.md | 6 ++++++ content/weblog/archive.md | 2 +- templates/archive.html | 20 -------------------- templates/base.html | 14 ++++++++++++-- templates/food_archive.html | 20 ++++++++++++++++++++ templates/index.html | 2 +- templates/weblog.html | 38 ++++++++++++++++++++++++-------------- templates/weblog_archive.html | 20 ++++++++++++++++++++ 8 files changed, 84 insertions(+), 38 deletions(-) create mode 100644 content/food/archive.md delete mode 100644 templates/archive.html create mode 100644 templates/food_archive.html create mode 100644 templates/weblog_archive.html diff --git a/content/food/archive.md b/content/food/archive.md new file mode 100644 index 0000000..940ab0c --- /dev/null +++ b/content/food/archive.md @@ -0,0 +1,6 @@ ++++ +sort_by = "date" +template = "food_archive.html" +paginate_by = 0 ++++ + diff --git a/content/weblog/archive.md b/content/weblog/archive.md index cfc0b4e..c90f85f 100644 --- a/content/weblog/archive.md +++ b/content/weblog/archive.md @@ -1,6 +1,6 @@ +++ sort_by = "date" -template = "archive.html" +template = "weblog_archive.html" paginate_by = 0 +++ diff --git a/templates/archive.html b/templates/archive.html deleted file mode 100644 index b06bdb2..0000000 --- a/templates/archive.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} -{% block title %} -Weblog archive - Yaroslav's weblog -{% endblock %} -{% block header %} -

Yaroslav's weblog archive

-{% endblock %} -{% block content %} -{% set section = get_section(path="weblog/_index.md") %} -
- {% for year, posts in section.pages | group_by(attribute="year") %} -

{{ year }}

- - {% endfor %} -
-{% endblock %} diff --git a/templates/base.html b/templates/base.html index ccb167a..2974335 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,9 +28,11 @@