add goatcounter support

This commit is contained in:
Norman Köhring 2023-05-24 16:40:44 +02:00
parent 6f7c2b6359
commit 58a4938c00

View file

@ -1,19 +1,25 @@
{% import "macros/macros.html" as post_macros %} {% import "macros/macros.html" as post_macros %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang = "en"> <html lang="en">
{% include "partials/header.html" %} {% include "partials/header.html" %}
<body> <body>
{% include "partials/nav.html" %} {% include "partials/nav.html" %}
<div class="content"> <div class="content">
{# Post page is the default #} {# Post page is the default #}
{% block main_content %} {% block main_content %}
Nothing here?! Nothing here?!
{% endblock main_content %} {% endblock main_content %}
</div> </div>
{% include "partials/footer.html" %} {% include "partials/footer.html" %}
{% if config.extra.goatcounterName %}
<script data-goatcounter="https://{{ config.extra.goatcounterName }}.goatcounter.com/count" async
src="//gc.zgo.at/count.js"></script>
{% endif %}
</body> </body>
</html> </html>