about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-09-02 10:52:26 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-09-02 10:52:26 +0700
commit82c10813791935d9022ecd13631c7bf557644860 (patch)
treed181c657fdf54fa2d5f2d080ab887022c32de4d1 /layouts
parent952aeedf4403babc7320218598b2a39343f3a915 (diff)
downloadblog-82c10813791935d9022ecd13631c7bf557644860.tar.gz
Add code highlight
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head-extra.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html
index 6d60ecd..e3f256f 100644
--- a/layouts/partials/head-extra.html
+++ b/layouts/partials/head-extra.html
@@ -2,3 +2,7 @@
 <link rel="icon" type="image/png" sizes="32x32" href={{ "/favicon-32x32.png" }}>
 <link rel="icon" type="image/png" sizes="16x16" href={{ "/favicon-16x16.png" }}>
 <link rel="manifest" href={{ "/site.webmanifest" }}>
+{{ $light := resources.Get "css/highlight.css" }}
+{{ $dark := resources.Get "css/highdark.css" }}
+{{ $code := slice $light $dark | resources.Concat "css/code.css" | minify | fingerprint }}
+<link rel="stylesheet" type="text/css" href="{{ $code.RelPermalink }}">