This commit is contained in:
commit
9b5aba0061
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
||||
[submodule "themes/bar-filipo.de-theme"]
|
||||
path = themes/bar-filipo.de-theme
|
||||
url = git@git.oxygin.net:jsauer/bar-filipo.de-theme.git
|
||||
[submodule "themes/plausible-hugo"]
|
||||
path = themes/plausible-hugo
|
||||
url = https://github.com/divinerites/plausible-hugo.git
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
## -----------------------------------------------
|
||||
|
||||
title = 'Bar Filipo'
|
||||
theme = "bar-filipo.de-theme"
|
||||
theme = ['bar-filipo.de-theme', 'plausible-hugo']
|
||||
copyright = "2024"
|
||||
|
||||
## -----------------------------------------------
|
||||
@ -42,3 +42,10 @@ disableKinds = ["taxonomy", "section"]
|
||||
[Params.privacy]
|
||||
url = "datenschutz"
|
||||
label = "Datenschutz"
|
||||
|
||||
[Params.plausible]
|
||||
enable = true
|
||||
domain = "bar-filipo.de"
|
||||
selfhosted_domain = "plausible.oxygin.net"
|
||||
gitstar = false
|
||||
outbound_link = true
|
||||
|
||||
@ -4,10 +4,10 @@
|
||||
<ul class="icons">
|
||||
{{ with .Site.Params.social.github }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-github"><span class="label">Github</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.twitter }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.instagram }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-instagram"><span class="label">Instagram</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.instagram }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-instagram" onclick="ClickOnInstagram()"><span class="label">Instagram</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.linkedin }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-linkedin"><span class="label">LinkedIn</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.email }}<li><a target="_blank" href="mailto:{{.}}" class="fav icon style2 fa-envelope"><span class="label">Email</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.whatsapp }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-whatsapp"><span class="label">WhatsApp</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.email }}<li><a target="_blank" href="mailto:{{.}}" class="fav icon style2 fa-envelope" onclick="ClickOnMail()"><span class="label">Email</span></a></li>{{end}}
|
||||
{{ with .Site.Params.social.whatsapp }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-whatsapp" onclick="ClickOnWhatsApp()"><span class="label">WhatsApp</span></a></li>{{end}}
|
||||
</ul>
|
||||
{{ with .Site.Params.imprint }}
|
||||
<a href="{{ .Site.BaseURL }}/{{ .url }}">{{ .label }}</a>
|
||||
|
||||
43
layouts/partials/head.html
Normal file
43
layouts/partials/head.html
Normal file
@ -0,0 +1,43 @@
|
||||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
{{ if .Site.Params.favicon }}
|
||||
{{ partial "favicon" }}
|
||||
{{ end }}
|
||||
|
||||
<!-- CSS -->
|
||||
{{ $opts := dict "targetPath" "css/main.css" "enableSourceMap" (not hugo.IsProduction) }}
|
||||
{{ $sass := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | toCSS $opts }}
|
||||
{{ $css := resources.Match "css/*.css" | resources.Concat "css/bundle.css" }}
|
||||
{{ with slice $sass $css | resources.Concat "css/main.css" }}
|
||||
{{ if hugo.IsDevelopment }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{ else }}
|
||||
{{ with . | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with resources.Get "sass/noscript.scss" }}
|
||||
{{ $opts := dict "targetPath" "css/noscript.css" "enableSourceMap" (not hugo.IsProduction) }}
|
||||
{{ with . | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS $opts }}
|
||||
{{ if hugo.IsDevelopment }}
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
</noscript>
|
||||
{{ else }}
|
||||
{{ with . | minify | fingerprint }}
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
</noscript>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "plausible_head.html" . }}
|
||||
</head>
|
||||
9
layouts/partials/plausible_js.html
Normal file
9
layouts/partials/plausible_js.html
Normal file
@ -0,0 +1,9 @@
|
||||
function ClickOnInstagram() {
|
||||
plausible('Instagram');
|
||||
}
|
||||
function ClickOnMail() {
|
||||
plausible('Mail');
|
||||
}
|
||||
function ClickOnWhatsApp() {
|
||||
plausible('WhatsApp');
|
||||
}
|
||||
1
themes/plausible-hugo
Submodule
1
themes/plausible-hugo
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 156a0478888cf1fe23d8f65b98e122865770d2d6
|
||||
Loading…
x
Reference in New Issue
Block a user