Skip to content

Commit 306b59f

Browse files
author
Kevin Bimonte
committed
other: possibly analytics
1 parent 4af125b commit 306b59f

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

base.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,20 @@ exclude_docs: |
4242
4343
theme:
4444
name: material
45-
# custom_dir: overrides
45+
custom_dir: overrides
4646
features:
47-
- navigation.prune
48-
- navigation.tabs
49-
- navigation.tabs.sticky
50-
- navigation.indexes
51-
- navigation.instant
52-
- navigation.top
53-
- content.code.copy
54-
- attr_list
55-
- md_in_html
56-
- pymdownx.blocks.caption
57-
- navigation.footer
58-
- content.action.edit
59-
- content.action.view
47+
- navigation.tabs # Top-level tabs
48+
- navigation.tabs.sticky # Keep tabs visible
49+
- navigation.indexes # Section index pages
50+
- navigation.instant # SPA-like navigation
51+
- navigation.top # Back to top button
52+
- navigation.footer # Previous/next links
53+
- content.action.edit # Edit Page in GitHub
54+
- content.action.view # View raw Page in GitHub
55+
- content.code.copy # Copy code
56+
- attr_list # Attribute Lists
57+
- md_in_html # Markdown in HTML
58+
- pymdownx.blocks.caption # Caption
6059

6160
palette:
6261
- scheme: default
@@ -74,6 +73,8 @@ theme:
7473
favicon: assets/favicon.ico
7574

7675
extra:
76+
analytics:
77+
provider: goattracker
7778
social:
7879
- icon: fontawesome/brands/github
7980
link: https://github.com/concourse

overrides/main.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block scripts %}
4+
5+
<script data-goatcounter="https://concourse.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
6+
7+
{{ super() }}
8+
9+
{% endblock %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
/* Wait for page to load and application to mount */
3+
document.addEventListener("DOMContentLoaded", function () {
4+
location$.subscribe(function (url) {
5+
window.goatcounter.count({
6+
path: url.pathname + url.search + url.hash,
7+
})
8+
})
9+
})
10+
</script>
11+
12+
<script data-goatcounter="https://concourse.goatcounter.com/count"
13+
async src="//gc.zgo.at/count.js"></script>

0 commit comments

Comments
 (0)