From c6ec7c750588562c3a14c1ee0f2a7d00f467bbd6 Mon Sep 17 00:00:00 2001 From: serginogal Date: Fri, 3 Feb 2023 17:47:55 +0900 Subject: [PATCH] :sparkles: feat: add markdown support to index page --- templates/macros/macros.html | 6 ++++++ templates/section.html | 2 ++ 2 files changed, 8 insertions(+) diff --git a/templates/macros/macros.html b/templates/macros/macros.html index fa25568..029cea6 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -77,6 +77,12 @@ {% endmacro content %} +{% macro index_content(page) %} +
+ {{ page.content | safe }} +
+{% endmacro content %} + {% macro content(page) %}
diff --git a/templates/section.html b/templates/section.html index 01d1ff5..3b7d2c8 100644 --- a/templates/section.html +++ b/templates/section.html @@ -9,6 +9,8 @@ {{ post_macros::page_desc(desc=section.extra.desc) }} {% endif -%} +{{ post_macros::index_content(page=section) }} +
{{ post_macros::page_header(title=section.title) }}