Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
run: uv run zensical build
env:
GOATCOUNTER_URL: ${{ secrets.GOATCOUNTER_URL }}
STATCOUNTER_PROJECT_ID: ${{ secrets.STATCOUNTER_PROJECT_ID }}

- name: Deploy to GitHub Pages
run: |
Expand Down
10 changes: 10 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
<script data-goatcounter="{{ config.extra.goatcounter_url }}/count"
async src="//gc.zgo.at/count.js"></script>
{% endif %}
{% if config.extra.statcounter_project %}
<script type="text/javascript">
var sc_project={{ config.extra.statcounter_project }};
var sc_invisible=1;
var sc_security="15dbcfe9";
</script>
Comment thread
boscorat marked this conversation as resolved.
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
{% endif %}
{% endblock %}

{% block extrahead %}
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ extra_css:

extra:
goatcounter_url: !ENV [GOATCOUNTER_URL, '']
statcounter_project: !ENV [STATCOUNTER_PROJECT_ID, '']

nav:
- Home: index.md
Expand Down