Skip to content

Commit

Permalink
Only show diffblog info on production build
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Aug 12, 2024
1 parent 20b1cfd commit 209534d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/blogpost.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ <h2>{{page.title}}</h2>

<br />
<hr />
{% if "production" == jekyll.environment %}
<script id="diffblog-plugin-script" async="false" src="https://diff.blog/static/js/diffblog_plugin_v1.js"></script>
<script>
document.getElementById("diffblog-plugin-script").addEventListener("load", function () {
Expand All @@ -32,6 +33,7 @@ <h2>{{page.title}}</h2>
);
});
</script>
{% endif %}
<br />
<!-- Stupid simple algorithm for related posts. Just find those that share at least x tags (defaults to 2). Can be overriden by the post property related_tags_count.
-->
Expand Down

0 comments on commit 209534d

Please sign in to comment.