Skip to content

Commit

Permalink
Add liquid unless statement tied to kudos: false in YAML headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-p-randall committed Nov 29, 2024
1 parent 6153f9b commit 2bb04e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/tinylytics.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% unless page.kudos == false %}
<h3 id="kudos">Kudos</h3>
<p>
Did you enjoy this? Let me know: <button class="tinylytics_kudos"></button>
Expand All @@ -6,4 +7,5 @@ <h3 id="kudos">Kudos</h3>
<p>
Perhaps even <a href="#comments">leave a comment below</a>?
</p>
{% endif %}
{% endif %}
{% endunless %}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
author_profile: true
kudos: false
# header:
# image: /assets/images/pocket-notebooks.jpg
# image_description: "ryan's pocket notebooks"
Expand Down

0 comments on commit 2bb04e6

Please sign in to comment.