♻️ refactor: rename extra.desc to extra.header
This commit is contained in:
parent
644dd1a4ba
commit
de46a24d37
@ -1,12 +1,12 @@
|
|||||||
+++
|
+++
|
||||||
paginate_by = 4
|
paginate_by = 4
|
||||||
path = "posts"
|
path = "/"
|
||||||
title = "Posts"
|
title = "Posts"
|
||||||
sort_by = "date"
|
sort_by = "date"
|
||||||
template = "section.html"
|
template = "section.html"
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
desc = {title = "Hello! I'm tabi~", img = "$BASE_URL/img/main.webp" }
|
header = {title = "Hello! I'm tabi~", img = "$BASE_URL/img/main.webp" }
|
||||||
+++
|
+++
|
||||||
|
|
||||||
Tabi is a simple theme for [Zola](https://www.getzola.org/). It aims to be a personal page and home to blog posts. It features responsive design, dark and light modes, and high performance.
|
Tabi is a simple theme for [Zola](https://www.getzola.org/). It aims to be a personal page and home to blog posts. It features responsive design, dark and light modes, and high performance.
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
{% set section = get_section(path=section.extra.section_path) %}
|
{% set section = get_section(path=section.extra.section_path) %}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{%- if section.extra.desc %}
|
{%- if section.extra.header %}
|
||||||
{{ macros_page_desc::page_desc(desc=section.extra.desc, page=section) }}
|
{{ macros_page_desc::page_desc(desc=section.extra.header, page=section) }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
<main class="list">
|
<main class="list">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user