Set dark mode as default and 'removed' stars from the light mode

Actually, I just made them the same color, because of CSS limitations.
This commit is contained in:
2025-02-20 10:20:07 +00:00
parent d259bca4bd
commit 9d263a0e60
3 changed files with 1079 additions and 508 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
baseURL: "https://trude.dev" baseURL: "https://trude.dev"
title: trude.dev title: trude.dev
pagerSize: 5 pagination:
pagerSize: 5
theme: PaperMod theme: PaperMod
copyright: "Open-source - MIT License" copyright: "Open-source - MIT License"
#canonifyURLs: true #canonifyURLs: true
@@ -38,7 +39,7 @@ params:
author: "TrudeEH" author: "TrudeEH"
images: ["logo.svg"] images: ["logo.svg"]
DateFormat: "January 2, 2006" DateFormat: "January 2, 2006"
defaultTheme: auto # dark, light defaultTheme: dark # dark, light
disableThemeToggle: false disableThemeToggle: false
social: true social: true
mainSections: mainSections:

View File

@@ -17,9 +17,11 @@
{{- print " dark" }} {{- print " dark" }}
{{- end -}} {{- end -}}
" id="top"> " id="top">
{{ if .IsHome }}
<div id='stars'></div> <div id='stars'></div>
<div id='stars2'></div> <div id='stars2'></div>
<div id='stars3'></div> <div id='stars3'></div>
{{ end }}
{{- partialCached "header.html" . .Page -}} {{- partialCached "header.html" . .Page -}}
<main class="main"> <main class="main">
{{- block "main" . }}{{ end }} {{- block "main" . }}{{ end }}