From 6244379cb7947388ba6353c19d628b8025cdbdfb Mon Sep 17 00:00:00 2001 From: DKFN Date: Sat, 5 Oct 2019 22:43:16 +0200 Subject: [PATCH] Adds content to test and fix typo --- content/test-section/_index.md | 5 +++++ content/test-section/sub-section/_index.md | 6 ++++++ templates/section.html | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 content/test-section/_index.md create mode 100644 content/test-section/sub-section/_index.md diff --git a/content/test-section/_index.md b/content/test-section/_index.md new file mode 100644 index 0000000..9682cab --- /dev/null +++ b/content/test-section/_index.md @@ -0,0 +1,5 @@ ++++ +title = "Test section" + +description = "Test" ++++ \ No newline at end of file diff --git a/content/test-section/sub-section/_index.md b/content/test-section/sub-section/_index.md new file mode 100644 index 0000000..a441445 --- /dev/null +++ b/content/test-section/sub-section/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Sub Section" + +[extra] +zulma_title = "Hero title" ++++ \ No newline at end of file diff --git a/templates/section.html b/templates/section.html index 8e5cdc4..31446ab 100644 --- a/templates/section.html +++ b/templates/section.html @@ -10,7 +10,7 @@
- {% if section.section.extra.zulma_title %} + {% if section.extra.zulma_title %} {{ index_macros::hero(title=section.extra.zulma_title, primary=true) }} {% endif %}