From 049ba826dcf8616fc44ff916ed828d77d6664b94 Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Sat, 13 Apr 2024 21:49:01 -0500 Subject: [PATCH] Add option to hide author info Allows use of post layout for /about-feeds, which fixes a layout issue --- _includes/layouts/post.njk | 8 ++++---- content/about-feeds/index.md | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 722303d..8be2d65 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -5,17 +5,17 @@ layout: layouts/base.njk {%- css %}{% include "public/css/code.css" %}{% endcss %}

{{ title }}

- +{% if not hideMetadata %} - +{% endif %} {{ content | safe }}
{% include "mastodonComments.njk" %} diff --git a/content/about-feeds/index.md b/content/about-feeds/index.md index a984755..b895074 100644 --- a/content/about-feeds/index.md +++ b/content/about-feeds/index.md @@ -1,5 +1,6 @@ --- -layout: layouts/base.njk +layout: layouts/post.njk +hideMetadata: yep --- # How to use feeds.