add syntax highlighting for code blocks

This commit is contained in:
zyl 2024-11-07 14:56:13 -08:00
parent a8d8096ba6
commit e3630208fa
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
8 changed files with 251 additions and 6 deletions

View file

@ -3,6 +3,7 @@ title: webdog
description: "static site builder for dogs"
sass_styles: [index.scss]
cdn_url: "https://i.zyl.gay"
code_theme: base16-ocean.dark # options: base16-ocean.dark, base16-eighties.dark, base16-mocha.dark, base16-ocean.light, InspiredGitHub, Solarized (dark), and Solarized (light)
resources:
blog:

View file

@ -10,7 +10,7 @@ extra:
welcome to webdog, the static site generator fit for a dog :3
```
```sh
git clone https://zyllian/webdog
cd webdog
cargo install .

View file

@ -166,3 +166,17 @@ abbr {
.flex-spacer {
flex-grow: 1;
}
.wd-codeblock {
position: relative;
.copy {
position: absolute;
top: 0;
right: 0;
}
& > pre {
padding: 8px;
}
}