💄 feat: change markdown description style

main
serginogal 2 years ago
parent c6ec7c7505
commit c29697c421

@ -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.

@ -60,28 +60,25 @@
<h2>
{{ title }}
</h2>
{% endmacro content %}
{% endmacro page_header %}
{% macro page_desc(desc) %}
{% macro page_desc(desc, page) %}
<div id="banner-container-home">
<div id="home-banner-text">
<h1>
{{ desc.title }}
{{ desc.title }}
</h1>
<p id="banner-home-subtitle">{{ desc.text }}</p>
<section id="banner-home-subtitle">
{{ page.content | safe }}
</section>
</div>
<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>
{% endmacro content %}
{% endmacro page_desc %}
{% macro index_content(page) %}
<section class="body">
{{ page.content | safe }}
</section>
{% endmacro content %}
{% macro content(page) %}
<main>

@ -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) }}
<main class="list">
<div class="title-container">
{{ post_macros::page_header(title=section.title) }}

Loading…
Cancel
Save