Skip to content

Commit

Permalink
Make edit post button optional
Browse files Browse the repository at this point in the history
  • Loading branch information
3tilley committed Nov 2, 2023
1 parent 577cab3 commit dadbb5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ <h1 class="post-title">{{ page.title }}</h1>
{% if config.extra.papermod.show_post_meta | default(value=true) %}
<div class="post-meta">
{% include "partials/post_meta.html" %}
{% include "partials/edit_post.html" %}
{% if config.extra.papermod.show_post_edit_button %}
{% include "partials/edit_post.html" %}
{% endif %}
</div>
{% endif %}
</header>
Expand Down

0 comments on commit dadbb5c

Please sign in to comment.