Skip to content

Commit

Permalink
Add custom_dir to material theme, update Google Analytics property
Browse files Browse the repository at this point in the history
  • Loading branch information
krzemienski committed Jul 19, 2024
1 parent 7edfd86 commit 403a637
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ repo_name: krzemienski/awesome-video
repo_url: https://github.com/krzemienski/awesome-video
theme:
name: material
custom_dir: overrides
palette:
primary: red
accent: pink
extra:
analytics:
provider: google
property: G-383541848
property: G-VQCESB210D
social:
- type: github
link: https://github.com/krzemienski
Expand Down
9 changes: 9 additions & 0 deletions overrides/partials/integrations/analytics/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VQCESB210D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-VQCESB210D');
</script>
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs==1.2.3
mkdocs-material==4.0.2
mkdocs
mkdocs-material
jinja2==3.0.3

0 comments on commit 403a637

Please sign in to comment.