diff --git a/content/markdown-syntax.md b/content/markdown-syntax.md index b172dc7..ce0ee83 100644 --- a/content/markdown-syntax.md +++ b/content/markdown-syntax.md @@ -5,7 +5,8 @@ description = "Sample article showcasing basic Markdown syntax and formatting fo [taxonomies] tags = ["markdown", "css", "html"] [extra] -cover_image = "images/markdown-syntax.png" +cover.image = "images/markdown-syntax.png" +cover.alt = "A Markdown logo" +++ This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Kita theme. diff --git a/templates/page.html b/templates/page.html index 31ff5d7..78965b9 100644 --- a/templates/page.html +++ b/templates/page.html @@ -6,12 +6,12 @@

{{ page.title }}

{% include "partials/page_info.html" %} - {% if page.extra.cover_image %} + {% if page.extra.cover.image %}
cover
{% endif %} diff --git a/templates/partials/head.html b/templates/partials/head.html index a49db6c..d6ba22d 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -36,9 +36,9 @@ - {% if page.extra.cover_image %} + {% if page.extra.cover.image %} - {% set image = page.extra.cover_image %} + {% set image = page.extra.cover.image %} {% elif config.extra.social_image %} diff --git a/templates/partials/page_list.html b/templates/partials/page_list.html index 598ab08..2cd6b0a 100644 --- a/templates/partials/page_list.html +++ b/templates/partials/page_list.html @@ -12,12 +12,12 @@
- {% if page.extra.cover_image %} + {% if page.extra.cover.image %}
cover
{% endif %}