diff --git a/config.yaml b/config.yaml index 8a141e1..9ba5083 100644 --- a/config.yaml +++ b/config.yaml @@ -47,6 +47,8 @@ languages: name: Stav služeb url: https://status.nolog.cz weight: 15 + params: + target: _blank - identifier: blog name: Blog @@ -82,6 +84,8 @@ languages: name: Status url: https://status.nolog.cz weight: 12 + params: + target: _blank - identifier: blog name: Blog diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 75a2c1b..d09c747 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,6 @@ {{- block "head" . }}{{ end }} {{ partial "meta_json_ld.html" . }} {{ partial "scripts.html" . }} - {{ partialCached "tracking.html" . }} -
- {{ i18n "cookieconsent_message" }} - {{ with site.Params.privacyPolicyUrl }}{{ i18n "privacy_policy" }}{{ end }} -
-
- - -
- diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 6161cd2..ff0cce5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -15,6 +15,9 @@ {{ if $isActive }} aria-current="page" {{ end }} + {{ with .Params.target }} + target="{{ . }}" + {{ end }} >{{ .Name }} {{ end }} diff --git a/layouts/partials/mobilemenu.html b/layouts/partials/mobilemenu.html deleted file mode 100644 index 855ba09..0000000 --- a/layouts/partials/mobilemenu.html +++ /dev/null @@ -1,35 +0,0 @@ -
-
- {{ i18n "menu_mobile" }} -
-
- {{ if site.IsMultiLingual }}{{ partial "language-selector.html" . }}{{ end }} -
- -
-
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 2c0b253..c502d4d 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -10,3 +10,7 @@ {{- $js := resources.Get "main.js" | js.Build | fingerprint -}} + +{{ if site.Params.plausibleSiteID -}} + +{{ end -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html deleted file mode 100644 index 6685436..0000000 --- a/layouts/partials/sidebar.html +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/layouts/partials/sidebar.old.html b/layouts/partials/sidebar.old.html deleted file mode 100644 index 44bfb6c..0000000 --- a/layouts/partials/sidebar.old.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $currentSection := .Section -}} -{{ $currentID := "" -}} -{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}} - diff --git a/layouts/partials/tracking.html b/layouts/partials/tracking.html deleted file mode 100644 index 91c412f..0000000 --- a/layouts/partials/tracking.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ $opts := dict - "minify" true - "params" (dict - "cookieConsent" site.Params.cookieConsent - "piwikTrackerUrl" site.Params.piwikTrackerUrl - "piwikSiteID" site.Params.piwikSiteID - "plausibleSiteID" site.Params.plausibleSiteID - "GoogleAnalytics" site.GoogleAnalytics) -}} -{{ if and site.Params.piwikTrackerUrl site.Params.piwikSiteID -}} -{{ $script := resources.Get "js/tracking.js" | js.Build $opts | fingerprint -}} - - -{{ end -}} - -{{ if site.Params.plausibleSiteID -}} - -{{ end -}} - -{{ if site.GoogleAnalytics -}} -{{ $script := resources.Get "js/tracking.js" | js.Build $opts | fingerprint -}} - -{{ template "_internal/google_analytics.html" . }} -{{ end -}}