-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830d0fd
commit 1f94f4a
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,3 +140,4 @@ disableTextInHeader = false | |
# bing = "" | ||
# pinterest = "" | ||
# yandex = "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ with .Site.Params.isoCode | default (.Site.LanguageCode | default " en") }} {{- . -}} {{ end }}" dir="{{ if .Site.Params.rtl | default false -}} | ||
rtl | ||
{{- else -}} | ||
ltr | ||
{{- end }}" class="scroll-smooth" data-default-appearance="{{ .Site.Params.defaultAppearance | default " light" }}" | ||
data-auto-appearance="{{ .Site.Params.autoSwitchAppearance | default " true" }}"> | ||
{{- partial "head.html" . -}} | ||
|
||
<body | ||
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 max-w-7xl bg-neutral text-neutral-900 dark:bg-neutral-800 dark:text-neutral sm:px-14 md:px-24 lg:px-32"> | ||
<div id="the-top" class="absolute flex self-center"> | ||
<a class="px-3 py-1 text-sm -translate-y-8 rounded-b-lg bg-primary-200 focus:translate-y-0 dark:bg-neutral-600" | ||
href="#main-content"><span | ||
class="font-bold text-primary-600 ltr:pr-2 rtl:pl-2 dark:text-primary-400">↓</span>{{ i18n | ||
"nav.skip_to_main" }}</a> | ||
</div> | ||
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }} | ||
{{ if templates.Exists $header }} | ||
{{ partial $header . }} | ||
{{ else }} | ||
{{ partial "partials/header/basic.html" . }} | ||
{{ end }} | ||
<div class="relative flex flex-col grow"> | ||
<main id="main-content" class="grow"> | ||
{{ block "main" . }}{{ end }} | ||
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }} | ||
{{- partial "scroll-to-top.html" . -}} | ||
{{ end }} | ||
</main> | ||
{{- partial "footer.html" . -}} | ||
{{ if .Site.Params.enableSearch | default false }} | ||
{{- partial "search.html" . -}} | ||
{{ end }} | ||
</div> | ||
{{- template "partials/cookie-consent.html" . }} | ||
</body> | ||
{{ if .Site.Params.buymeacoffee.globalWidget | default false }} | ||
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" | ||
data-id="{{ .Site.Params.buymeacoffee.identifier }}" data-description="Support me on Buy me a coffee!" data-message="{{ .Site.Params.buymeacoffee.globalWidgetMessage | default "" }}" | ||
data-color="{{ .Site.Params.buymeacoffee.globalWidgetColor | default "#FFDD00" }}" data-position="{{ .Site.Params.buymeacoffee.globalWidgetPosition | default "Left" }}" data-x_margin="18" data-y_margin="18"></script> | ||
{{ end }} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ $scr := .Scratch }} | ||
{{ $js := site.Data.assets.js }} | ||
{{ $css := site.Data.assets.css }} | ||
{{ if ($scr.Get "use_cdn") }} | ||
{{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.cookieconsent.url $js.cookieconsent.version) $js.cookieconsent.sri | safeHTML }} | ||
{{ printf "<link rel=\"stylesheet\" href=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\">" (printf $css.cookieconsent.url $css.cookieconsent.version) $css.cookieconsent.sri | safeHTML }} | ||
{{ end }} | ||
<script> | ||
window.addEventListener("load", function(){ | ||
window.cookieconsent.initialise({ | ||
"palette": { | ||
"popup": { | ||
"background": "{{ $scr.Get "primary" }}", | ||
"text": "{{ $scr.Get "background" }}" | ||
}, | ||
"button": { | ||
"background": "{{ $scr.Get "background" }}", | ||
"text": "{{ $scr.Get "primary" }}" | ||
} | ||
}, | ||
"theme": "classic", | ||
"content": { | ||
"message": {{ i18n "cookie_message" | default "This website uses cookies to ensure you get the best experience on our website." }}, | ||
"dismiss": {{ i18n "cookie_dismiss" | default "Got it!" }}, | ||
"link": {{ i18n "cookie_learn" | default "Learn more" }}, | ||
"href": {{ with site.GetPage "/privacy.md" }}{{ printf "%s" .RelPermalink }}{{ else }}"https://www.cookiesandyou.com"{{ end }} | ||
} | ||
})}); | ||
</script> |