From d9c0478069790c884d8fc63cba841a8220cbe4da Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 25 Nov 2022 14:39:10 -0500 Subject: [PATCH] Blog post listing --- content/blog/_index.md | 2 +- templates/section.html | 32 +++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/content/blog/_index.md b/content/blog/_index.md index 5a1d15d..fd8afd6 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -2,7 +2,7 @@ title: Blog sort_by: date extra: - inject_blog_posts: true + section_embed_mode: blog_posts --- ## Blog posts diff --git a/templates/section.html b/templates/section.html index 4b583b3..f0f39db 100644 --- a/templates/section.html +++ b/templates/section.html @@ -12,5 +12,35 @@ {% include "components/heading-card.html" %} {% endblock page_start %} {% block content %} - {{ section.content | safe }} +{{ section.content | safe }} + +{# Handle various embed modes #} +{% if section.extra.section_embed_mode %} + + +{% if section.extra.section_embed_mode == "blog_posts" %} +{# +

{{title_year}}

+ + +{% endif %} +{% endif %} {% endblock content %} \ No newline at end of file