1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00

Tidy up js

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2022-07-11 17:42:10 +12:00
parent 650e553566
commit a266997126
13 changed files with 85 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
{% extends "main.html" %}
<!-- Content -->
<!-- For 404 tracking using Plausible -->
{% block libs %}
<script>plausible("404",{ props: { path: document.location.pathname } });</script>
{% endblock %}

View File

@@ -21,7 +21,6 @@
{% endblock %}
{% block analytics %}
<!-- <script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer></script> -->
<script src="/js/i-am-groot.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<!-- RightMessage -->
@@ -45,4 +44,26 @@
{% else %}
<title>{{ config.site_name }}</title>
{% endif %}
{% endblock %}
{% block extrahead %}
<!-- For widgetbot -->
<!-- <script src='https://cdn.jsdelivr.net/npm/@widgetbot/crate@3' async defer>
const button = new Crate({
server: '396055506072109067', // Funky Penguin
channel: '456689991326760973', // Cookbook channel
// username: 'Website Reader',
// color: '#000',
notifications: true,
indicator: true // most recent change
})
button.notify({
content: 'Need a 🤚? Hot, sweaty geeks are waiting to chat to you! Click 👇',
timeout: 100000
})
</script> -->
{% endblock %}