Skip to content

Commit

Permalink
♻️ refactor: rename extra.desc to extra.header
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Mar 1, 2023
1 parent 644dd1a commit de46a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions templates/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}

<main class="list">
Expand Down

0 comments on commit de46a24

Please sign in to comment.