From 5885f87261bfa5ace50f3451003e7c959d99c900 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sun, 14 Feb 2021 11:54:42 +0100 Subject: [PATCH] =?UTF-8?q?Breadcrumbs,=20v=C3=BDpis=20pomoc=C3=AD=20makra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/aktuality/_index.md | 1 + content/externi_weby/_index.md | 1 + templates/macros.html | 16 ++++++++++++++++ templates/page.html | 11 +---------- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/content/aktuality/_index.md b/content/aktuality/_index.md index b3f542f..e22275a 100644 --- a/content/aktuality/_index.md +++ b/content/aktuality/_index.md @@ -1,3 +1,4 @@ +++ +title = "Aktuality" +++ diff --git a/content/externi_weby/_index.md b/content/externi_weby/_index.md index d55e71e..6eafa8e 100644 --- a/content/externi_weby/_index.md +++ b/content/externi_weby/_index.md @@ -1,4 +1,5 @@ +++ +title = "Spřátelené weby" sort_by = "weight" +++ diff --git a/templates/macros.html b/templates/macros.html index 41bc380..9ac810f 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -8,6 +8,22 @@ {% endif %} {% endmacro list_items %} +{% macro breadcrumbs(page) %} + +{% endmacro breadcrumbs %} + {% macro list_posts(section) %} {% for post in section.pages %} -
- Home - -
- + {{ macro::breadcrumbs(page=page) }} {% endblock %} {% block content %}