| | |
| | | {{ if (eq .Site.Params.reversepagetitle true) }} |
| | | {{ with .Title }} |
| | | {{ . }} | |
| | | |
| | | {{ end }} |
| | | {{- .Site.Params.author -}} |
| | | |
| | | |
| | | {{ else }} |
| | | {{- .Site.Params.author -}}{{ with .Title }} |
| | | | |
| | | {{ . }} |
| | | |
| | | |
| | | {{ end }} |
| | | |
| | | |
| | | {{ end }} |
| | | |
| | | </title> |
| | |
| | | name="description" |
| | | content="{{ if .Params.description }} |
| | | {{- .Params.description -}} |
| | | |
| | | |
| | | {{ else }} |
| | | {{- .Site.Params.description -}} |
| | | |
| | | |
| | | {{ end }}" |
| | | /> |
| | | {{ if .Params.redirectUrl }} |
| | | <meta http-equiv="refresh" content="1; url={{ .Params.redirectUrl }}" /> |
| | | |
| | | {{ end }} |
| | | {{- if .Site.Params.googleSiteVerify }} |
| | | <meta name="google-site-verification" content="{{ .Site.Params.googleSiteVerify }}" /> |
| | | |
| | | {{- end -}} |
| | | |
| | | |
| | |
| | | crossorigin="anonymous" |
| | | type="text/css" |
| | | /> |
| | | |
| | | {{ else }} |
| | | {{ $sassTemplate := resources.Get "scss/anatole.scss" }} |
| | | {{ $style := $sassTemplate | resources.ExecuteAsTemplate "scss/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }} |
| | |
| | | crossorigin="anonymous" |
| | | type="text/css" |
| | | /> |
| | | |
| | | {{ end }} |
| | | |
| | | {{ $markupHighlightStyle := resources.Get "css/markupHighlight.css" | resources.Minify | resources.Fingerprint }} |
| | |
| | | crossorigin="anonymous" |
| | | media="screen" |
| | | /> |
| | | |
| | | {{ end }} |
| | | {{ $style := resources.Get "fontawesome/css/fontawesome.min.css" | resources.Fingerprint }} |
| | | <link |
| | |
| | | crossorigin="anonymous" |
| | | type="text/css" |
| | | /> |
| | | |
| | | {{- end -}} |
| | | {{ if .Site.Params.googleFonts }} |
| | | {{ $baseUrl := "https://fonts.googleapis.com/css2?family=" }} |
| | |
| | | <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| | | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| | | <link href="{{ $url }}" rel="stylesheet" /> |
| | | |
| | | {{- end -}} |
| | | |
| | | |
| | |
| | | <!-- RSS --> |
| | | {{ with .OutputFormats.Get "rss" -}} |
| | | {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} |
| | | |
| | | |
| | | {{ end -}} |
| | | |
| | | |
| | |
| | | integrity="{{ $secureThemeSwitcherJS.Data.Integrity }}" |
| | | crossorigin="anonymous" |
| | | ></script> |
| | | |
| | | {{ end }} |
| | | |
| | | {{- $js := "" -}} |
| | | {{- range .Site.Params.customJs -}} |
| | | {{- if or (in . "http://") (in . "https://") -}} |
| | | <script src="{{ . | relURL }}"></script> |
| | | |
| | | {{- else -}} |
| | | {{- $customJS := resources.Get . -}} |
| | | {{- if $customJS -}} |
| | | {{- if eq $js "" -}} |
| | | {{- $js = $customJS -}} |
| | | |
| | | |
| | | {{- else -}} |
| | | {{- $js = slice $js $customJS | resources.Concat "js/custom.js" -}} |
| | | |
| | | |
| | | {{- end -}} |
| | | |
| | | |
| | | {{- end -}} |
| | | |
| | | |
| | | {{- end -}} |
| | | |
| | | |
| | | {{- end -}} |
| | | |
| | | {{- if ne $js "" -}} |
| | |
| | | integrity="{{ $secureJS.Data.Integrity }}" |
| | | crossorigin="anonymous" |
| | | ></script> |
| | | |
| | | {{- end -}} |
| | | |
| | | {{ if and hugo.IsProduction .Site.Params.plausibleAnalytics .Site.Params.plausibleAnalytics.domain }} |
| | | {{- partial "analytics/plausible" . -}} |
| | | |
| | | |
| | | {{ end }} |
| | | |
| | | {{ if and hugo.IsProduction .Site.Params.umami.serverURL .Site.Params.umami.id }} |
| | | {{- partial "analytics/umami" . -}} |
| | | |
| | | |
| | | {{ end }} |
| | | |
| | | |