feat: add analytics support
This commit is contained in:
@@ -8,6 +8,7 @@ ignoreErrors = ["error-remote-getjson"]
|
||||
|
||||
[params]
|
||||
description = "morthimer's Portfolio"
|
||||
|
||||
[params.Terminal]
|
||||
schema = "gruvbox_dark"
|
||||
|
||||
@@ -16,9 +17,9 @@ ignoreErrors = ["error-remote-getjson"]
|
||||
workDir = "www"
|
||||
profile = "profile.txt"
|
||||
|
||||
ps1Delay = 20
|
||||
stdoutDelay = 20
|
||||
commandDelay = 40
|
||||
ps1Delay = 10
|
||||
stdoutDelay = 15
|
||||
commandDelay = 20
|
||||
|
||||
titleDelay = 0
|
||||
contentDelay = 0
|
||||
@@ -52,4 +53,8 @@ ignoreErrors = ["error-remote-getjson"]
|
||||
["Awesome Content","https://github.com/sindresorhus/awesome"],
|
||||
["server-world.info","https://www.server-world.info/en/"],
|
||||
["The Brutalist Report", "https://brutalist.report/" ],
|
||||
]
|
||||
]
|
||||
|
||||
[params.analytics]
|
||||
src = "ANALYTICS_SRC_PLACEHOLDER"
|
||||
id = "ANALYTICS_ID_PLACEHOLDER"
|
||||
8
rootfs/home/morthimer/www/layouts/partials/head.html
Normal file
8
rootfs/home/morthimer/www/layouts/partials/head.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<head>
|
||||
<title>{{- if .IsHome }}{{ .Site.Title }}{{- else }}{{ .Title }}{{- end }}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||||
<script defer src="https://{{ $.Site.Params.analytics.src }}/script.js" data-website-id="{{ $.Site.Params.analytics.id }}"></script>
|
||||
{{ partial "partials/style.html" . }}
|
||||
</head>
|
||||
Reference in New Issue
Block a user