Merge pull request #20 from Junyi-99/feature-main
Add umami track icon in footer. Update exampleSite
This commit is contained in:
commit
af146e9d96
@ -6,7 +6,7 @@ theme = "anubis2"
|
||||
paginate = 3
|
||||
|
||||
disqusShortname = ""
|
||||
googleAnalytics = ""
|
||||
|
||||
|
||||
[author]
|
||||
name = "Junyi"
|
||||
@ -141,3 +141,13 @@ author = "authors"
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
|
||||
[params.UmamiAnalytics]
|
||||
enabled = true
|
||||
dnt = false
|
||||
id = "e4f661ff-9a8c-49d4-b3cc-2efe553e3973" # Website ID
|
||||
datacache = false
|
||||
url = "https://eu.umami.is/script.js"
|
||||
shareUrl = "https://eu.umami.is/share/RIETUMwZn4IBMIr8/hugo-theme-anubis2.netlify.app"
|
||||
|
@ -14,8 +14,11 @@
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
<div>
|
||||
<div style="display: flex; align-items: center; gap:8px">
|
||||
© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}
|
||||
{{ if .Site.Params.UmamiAnalytics.shareUrl }}
|
||||
<a style="display: flex; align-items: center; border-bottom: none; cursor: pointer; color: var(--pagination-link-color)" href="{{ .Site.Params.UmamiAnalytics.shareUrl }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-report-analytics"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M9 17v-5" /><path d="M12 17v-1" /><path d="M15 17v-3" /></svg></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div>
|
||||
{{ i18n "powered" }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/Junyi-99/hugo-theme-anubis2">Anubis2</a>.<br>
|
||||
|
Loading…
Reference in New Issue
Block a user