Dark mode
This commit is contained in:
parent
9217613600
commit
0183537207
1
build.sh
1
build.sh
|
@ -1,5 +1,6 @@
|
|||
#! /bin/sh
|
||||
|
||||
rm -rf $(dirname $0)/public
|
||||
docker run \
|
||||
--rm -i \
|
||||
-v $(realpath $(dirname $0)):/src \
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
<main id="content">
|
||||
{{ block "main" . }}{{end}}
|
||||
<p id="timestamp">Last modified: {{.Lastmod | time.Format "2006-Jan-02"}}</p>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
|
@ -40,6 +39,7 @@
|
|||
<li><a href="mailto:neale@woozle.org">Email</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p id="timestamp">Last modified: {{.Lastmod | time.Format "2006-Jan-02"}}</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
|
1
run.sh
1
run.sh
|
@ -13,5 +13,6 @@ docker run \
|
|||
--rm -i \
|
||||
-v $(realpath $(dirname $0)):/src \
|
||||
-u $(id -u):$(id -g) \
|
||||
-p 1313:1313 \
|
||||
klakegg/hugo:ext server \
|
||||
--baseURL "$baseURL"
|
||||
|
|
|
@ -159,4 +159,13 @@ button.big {
|
|||
max-width: 60%;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
background-image: url("../images/bg-dark.jpg");
|
||||
filter: invert(1);
|
||||
}
|
||||
img {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
Loading…
Reference in New Issue