From dadbb5cf00c980d5230ef8a2cb5da80ae6a7eb4d Mon Sep 17 00:00:00 2001 From: 3tilley <1138504+3tilley@users.noreply.github.com> Date: Thu, 2 Nov 2023 04:02:21 +0000 Subject: [PATCH] Make edit post button optional --- config.toml | 1 + templates/page.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 201fa2f..abf7195 100644 --- a/config.toml +++ b/config.toml @@ -32,6 +32,7 @@ show_word_count = false show_post_nav_links = true show_post_meta = true default_toc_open = false +show_post_edit_button = false edit_post_url = "https://github.com/cydave/zola-theme-papermod/tree/master" #copyright = "" date_format = "%Y-%m-%d" diff --git a/templates/page.html b/templates/page.html index 2c643f2..ec3c430 100644 --- a/templates/page.html +++ b/templates/page.html @@ -16,7 +16,9 @@

{{ page.title }}

{% if config.extra.papermod.show_post_meta | default(value=true) %}
{% include "partials/post_meta.html" %} - {% include "partials/edit_post.html" %} + {% if config.extra.papermod.show_post_edit_button %} + {% include "partials/edit_post.html" %} + {% endif %}
{% endif %}