Skip to content

Commit

Permalink
Add tinylytics and related kudos
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-p-randall committed Nov 23, 2024
1 parent 6861902 commit d35b4c8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ defaults:
path: "" # "_notes/**/*.md"
type: notes
values:
layout: "note"
layout: note
author_profile: false # true
comments: true
toc: true
Expand Down
3 changes: 2 additions & 1 deletion _includes/footer/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<script type="text/javascript" src="{{ site.baseurl }}/assets/js/plugins/bigfoot.min.js"></script>
<script type="text/javascript">
$.bigfoot({actionOriginalFN: "ignore", numberResetSelector: "article", positionContent: "true"});
</script>
</script>
<script src="https://tinylytics.app/embed/NP4BSz5EjtQyxN4P-Xo3.js?kudos=✨" defer></script>
2 changes: 1 addition & 1 deletion _includes/notes_graph.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions _includes/tinylytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h3 id="kudos">Kudos</h3>
Did you enjoy this? Let me know:
<p>
<button class="tinylytics_kudos"></button>
</p>
1 change: 1 addition & 0 deletions _layouts/bookmark-single-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
{% endif %}
{% comment %}{% include light-mode-only-notice.html %}{% endcomment %}
{{ content }}
{% include tinylytics.html %}
{% if page.categories contains "notes" %}
{% include notes-index-mention.html %}
{% else %}
Expand Down
1 change: 1 addition & 0 deletions _layouts/single-custom-related-categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
{% endif %}
{% comment %}{% include light-mode-only-notice.html %}{% endcomment %}
{{ content }}
{% include tinylytics.html %}
{% if page.categories contains "photonic-jukebox" %}
{% include p-j-info.html %}
{% else %}
Expand Down
1 change: 1 addition & 0 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
{% endif %}
{% comment %}{% include light-mode-only-notice.html %}{% endcomment %}
{{ content }}
{% include tinylytics.html %}
{% if page.categories contains "photonic-jukebox" %}
{% include p-j-info.html %}
{% else %}
Expand Down

0 comments on commit d35b4c8

Please sign in to comment.