Skip to content

Commit a2557a1

Browse files
committed
Properly style code blocks
1 parent 8947ea5 commit a2557a1

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ external_link_no_follow = true
1919
external_link_no_referrer = true
2020
smart_punctuation = true
2121
insert_anchor_links = "none"
22+
highlight_theme = "ayu-dark"
2223

2324
[search]
2425
include_title = true

content/blog/earth-wallpaper.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ SWAYBG_PID=""
1414

1515
while true
1616
do
17-
if [ -n "$SWAYBG_PID" ]; then
18-
sleep 600
19-
fi
17+
if [ -n "$SWAYBG_PID" ]; then
18+
sleep 600
19+
fi
2020

21-
curl --output "$HOME/Desktop/.bg.png" "https://view.eumetsat.int/geoserver/ows?service=WMS\
21+
curl --output "$HOME/Desktop/.bg.png" "https://view.eumetsat.int/geoserver/ows?service=WMS\
2222
&request=GetMap&version=1.3.0&layers=mtg_fd:rgb_geocolour\
2323
&styles=&format=image/png&crs=EPSG:4326\
2424
&bbox=30,-15,59,38\
2525
&width=2560&height=1440"
26-
27-
if [ -n "$SWAYBG_PID" ]; then
28-
kill "$SWAYBG_PID" 2>/dev/null
29-
fi
3026

31-
swaybg -i $HOME/Desktop/.bg.png &
32-
SWAYBG_PID=$!
27+
if [ -n "$SWAYBG_PID" ]; then
28+
kill "$SWAYBG_PID" 2>/dev/null
29+
fi
30+
31+
swaybg -i $HOME/Desktop/.bg.png &
32+
SWAYBG_PID=$!
3333
done
3434
```
3535

sass/blog-entry.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
font-size: inherit;
1212
font-weight: bold;
1313
}
14+
15+
16+
pre:has(> code) {
17+
border-radius: 0.5em;
18+
padding: 0.5em;
19+
overflow-x: scroll;
20+
}

0 commit comments

Comments
 (0)