From de46a24d37eb47bafa379f7883b563303e67b520 Mon Sep 17 00:00:00 2001 From: welpo Date: Wed, 1 Mar 2023 12:34:10 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20rename=20extra?= =?UTF-8?q?.desc=20to=20extra.header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/_index.md | 4 ++-- templates/section.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index 44dcc9bcd..ed5befca2 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,12 +1,12 @@ +++ paginate_by = 4 -path = "posts" +path = "/" title = "Posts" sort_by = "date" template = "section.html" [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. diff --git a/templates/section.html b/templates/section.html index a56f69ba0..a2cc00c6e 100644 --- a/templates/section.html +++ b/templates/section.html @@ -5,8 +5,8 @@ {% set section = get_section(path=section.extra.section_path) %} {% endif -%} -{%- if section.extra.desc %} - {{ macros_page_desc::page_desc(desc=section.extra.desc, page=section) }} +{%- if section.extra.header %} + {{ macros_page_desc::page_desc(desc=section.extra.header, page=section) }} {% endif -%}