💄 feat: change markdown description style
This commit is contained in:
parent
c6ec7c7505
commit
c29697c421
@ -6,5 +6,7 @@ sort_by = "date"
|
|||||||
template = "section.html"
|
template = "section.html"
|
||||||
|
|
||||||
[extra]
|
[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.
|
@ -60,28 +60,25 @@
|
|||||||
<h2>
|
<h2>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</h2>
|
</h2>
|
||||||
{% endmacro content %}
|
{% endmacro page_header %}
|
||||||
|
|
||||||
|
|
||||||
{% macro page_desc(desc) %}
|
{% macro page_desc(desc, page) %}
|
||||||
<div id="banner-container-home">
|
<div id="banner-container-home">
|
||||||
<div id="home-banner-text">
|
<div id="home-banner-text">
|
||||||
<h1>
|
<h1>
|
||||||
{{ desc.title }}
|
{{ desc.title }}
|
||||||
</h1>
|
</h1>
|
||||||
<p id="banner-home-subtitle">{{ desc.text }}</p>
|
<section id="banner-home-subtitle">
|
||||||
|
{{ page.content | safe }}
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container-home">
|
<div class="image-container-home">
|
||||||
<img alt="the owner" class="banner-home-img" src="{{ desc.img }}" />
|
<img alt="the owner" class="banner-home-img" src="{{ desc.img }}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro content %}
|
{% endmacro page_desc %}
|
||||||
|
|
||||||
{% macro index_content(page) %}
|
|
||||||
<section class="body">
|
|
||||||
{{ page.content | safe }}
|
|
||||||
</section>
|
|
||||||
{% endmacro content %}
|
|
||||||
|
|
||||||
{% macro content(page) %}
|
{% macro content(page) %}
|
||||||
<main>
|
<main>
|
||||||
|
@ -6,11 +6,9 @@
|
|||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{%- if section.extra.desc %}
|
{%- if section.extra.desc %}
|
||||||
{{ post_macros::page_desc(desc=section.extra.desc) }}
|
{{ post_macros::page_desc(desc=section.extra.desc, page=section) }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{{ post_macros::index_content(page=section) }}
|
|
||||||
|
|
||||||
<main class="list">
|
<main class="list">
|
||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
{{ post_macros::page_header(title=section.title) }}
|
{{ post_macros::page_header(title=section.title) }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user