diff --git a/content/_index.md b/content/_index.md index 84e555d..18d5875 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,5 +6,7 @@ sort_by = "date" template = "section.html" [extra] -desc = {title = "Hello! I'm tabi~", img = "https://avatars.githubusercontent.com/u/6399341", text = "Tabi is a simple theme for Zola. It aims to be a personal page and home to blog posts. It features responsive design, dark and light modes, and high performance." } +desc = {title = "Hello! I'm tabi~", img = "https://avatars.githubusercontent.com/u/6399341" } +++ + +Tabi is a simple theme for Zola. It aims to be a personal page and home to blog posts. It features responsive design, dark and light modes, and high performance. \ No newline at end of file diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 029cea6..55955af 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -60,28 +60,25 @@

{{ title }}

-{% endmacro content %} +{% endmacro page_header %} -{% macro page_desc(desc) %} +{% macro page_desc(desc, page) %} -{% endmacro content %} +{% endmacro page_desc %} -{% macro index_content(page) %} -
- {{ page.content | safe }} -
-{% endmacro content %} {% macro content(page) %}
diff --git a/templates/section.html b/templates/section.html index 3b7d2c8..3c9fe31 100644 --- a/templates/section.html +++ b/templates/section.html @@ -6,11 +6,9 @@ {% endif -%} {%- if section.extra.desc %} - {{ post_macros::page_desc(desc=section.extra.desc) }} + {{ post_macros::page_desc(desc=section.extra.desc, page=section) }} {% endif -%} -{{ post_macros::index_content(page=section) }} -
{{ post_macros::page_header(title=section.title) }}