edited post

This commit is contained in:
Morgan 2023-10-29 11:38:45 +09:00
parent d68dca04b8
commit fb7f277291
5 changed files with 4 additions and 49 deletions

View File

@ -68,17 +68,13 @@ params:
url: "mailto:me@morgan.kr"
assets:
# disableHLJS: true # to disable highlight.js
# disableFingerprinting: true
favicon: "https://blog.morgan.kr/favicon.ico"
# favicon16x16: "<link / abs url>"
# favicon32x32: "<link / abs url>"
apple_touch_icon: "https://blog.morgan.kr/favicon.ico"
safari_pinned_tab: "https://blog.morgan.kr/favicon.ico"
label:
icon: /favicon.ico
iconHeight: 1
iconHeight: 32
analytics:
google:

View File

@ -1,4 +1,4 @@
git add .
git add $(git rev-parse --show-toplevel)
git commit -m 'edited post'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,44 +1,4 @@
{{- /* theme-toggle is enabled */}}
{{- if (not site.Params.disableThemeToggle) }}
{{- /* theme is light */}}
{{- if (eq site.Params.defaultTheme "light") }}
<script>
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
}
</script>
{{- /* theme is dark */}}
{{- else if (eq site.Params.defaultTheme "dark") }}
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
{{- else }}
{{- /* theme is auto */}}
<script>
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
} else if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}
</script>
{{- end }}
{{- /* theme-toggle is disabled and theme is auto */}}
{{- else if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark"))}}
<script>
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}
</script>
{{- end }}
{{ /* Math KaTeX }}
{{ if or .Params.math true}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
@ -58,9 +18,8 @@
<header class="header">
<nav class="nav">
<div class="logo">
{{- $label_text := (site.Params.label.text | default site.Title) }}
{{- if site.Title }}
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }}">
{{- if site.Params.label.icon }}
{{- $img := resources.Get site.Params.label.icon }}
{{- if $img }}