Skip to content

Commit

Permalink
Merge pull request #3 from 3tilley/master
Browse files Browse the repository at this point in the history
Make edit post button optional
  • Loading branch information
cydave authored Nov 5, 2023
2 parents 577cab3 + dadbb5c commit 6dd8c05
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 6dd8c05

Please sign in to comment.