Sets default theme and removes Ko-fi
Sets the default theme to dark by adding the data-theme attribute to the html tag. Removes the Ko-fi integration.
This commit is contained in:
@@ -3,21 +3,21 @@
|
|||||||
|
|
||||||
{{/* allow website developer to enforce default dark mode */}}
|
{{/* allow website developer to enforce default dark mode */}}
|
||||||
{{- if eq $defaultColor "dark" -}}
|
{{- if eq $defaultColor "dark" -}}
|
||||||
<html lang="{{ .Site.LanguageCode }}" class="dark">
|
<html lang="{{ .Site.LanguageCode }}" class="dark" data-theme="dark">
|
||||||
{{- else if eq $defaultColor "light" -}}
|
{{- else if eq $defaultColor "light" -}}
|
||||||
<html lang="{{ .Site.LanguageCode }}" class="light">
|
<html lang="{{ .Site.LanguageCode }}" class="light" data-theme="light">
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<html lang="{{ .Site.LanguageCode }}">
|
<html lang="{{ .Site.LanguageCode }}" data-theme="dark">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
|
|
||||||
<body data-theme="{{ $defaultColor }}" class="notransition">
|
<body data-theme="{{ $defaultColor }}" class="notransition">
|
||||||
{{- partial "scriptsBodyStart.html" . -}}
|
{{- partial "scriptsBodyStart.html" . -}}
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
{{ partial "bio" . }}
|
{{ partial "bio" . }}
|
||||||
<main aria-label="Content">
|
<main aria-label="Content">
|
||||||
<h3 class="posts-item-note" aria-label="Recent Posts">{{ T "home.recent_posts" }}</h3>
|
<h3 class="posts-item-note" aria-label="Recent Posts">{{ T "home.recent_posts" }}</h3>
|
||||||
{{/* Show last 20 posts in reverse date order */}}
|
{{/* Show last 20 posts in reverse date order */}}
|
||||||
{{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt (len $posts) 5 }}
|
{{ if gt (len $posts) 5 }}
|
||||||
<p>
|
<p>
|
||||||
{{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }}
|
{{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }}
|
||||||
<a href="{{ $firstSection.Permalink }}">{{ T "home.see_all_posts" }}</a>
|
<a href="{{ $firstSection.Permalink }}">{{ T "home.see_all_posts" }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h3 class="posts-item-note" aria-label="Recent status/toots/micropost">{{ T "home.recent_posts" }}</h3>
|
<h3 class="posts-item-note" aria-label="Recent status/toots/micropost">{{ T "home.recent_posts" }}</h3>
|
||||||
@@ -41,15 +41,15 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt (len $posts) 5 }}
|
{{ if gt (len $posts) 5 }}
|
||||||
<p>
|
<p>
|
||||||
{{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }}
|
{{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }}
|
||||||
<a href="{{ $firstSection.Permalink }}">{{ T "home.see_all_posts" }}</a>
|
<a href="{{ $firstSection.Permalink }}">{{ T "home.see_all_posts" }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
{{- partial "scriptsBodyEnd.html" . -}}
|
{{- partial "scriptsBodyEnd.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
|
|
||||||
<script>
|
|
||||||
kofiWidgetOverlay.draw('fundor333', {
|
|
||||||
'type': 'floating-chat',
|
|
||||||
'floating-chat.donateButton.text': 'Support me',
|
|
||||||
'floating-chat.donateButton.background-color': '#5cb85c',
|
|
||||||
'floating-chat.donateButton.text-color': '#fff'
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{"Target":"add.min.168b9365a8bd3efdf631db70449d0d34d06f982a0790c1b777f8239b84888165.css","MediaType":"text/css","Data":{"Integrity":"sha256-FouTZai9Pv32MdtwRJ0NNNBvmCoHkMG3d/gjm4SIgWU="}}
|
{"Target":"add.min.1c9d7693af8759a9b5a45018bdb62663e078677565f40e191c5479ecba6f3520.css","MediaType":"text/css","Data":{"Integrity":"sha256-HJ12k6+HWam1pFAYvbYmY+B4Z3Vl9A4ZHFR57LpvNSA="}}
|
||||||
Reference in New Issue
Block a user