diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-27 19:35:44 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-27 19:35:44 +0530 |
commit | 53964138f51dafa1966dffda6af90ffbff404546 (patch) | |
tree | 1ae59e2151d8f214bb6c586be1b7592dfe79a6f6 /layouts/partials | |
parent | 1317345f739c0e3131689c7e557966ab58e18764 (diff) |
added syntax highlight to pages that need it
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e528534..c6c621f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,9 @@ {{ else if eq .Kind "home" }} <link rel="stylesheet" type="text/css" href="/css/home.css"> {{ end }} + {{ if .Params.highlight }} + <link rel="stylesheet" type="text/css" href="/css/syntax.css"> + {{ end }} <title>{{ if .Title }}{{ .Title }}{{ if eq .Section "blog" }}{{ if not .IsPage }} Blog Posts{{ end }}{{ end }} | {{if .Site.Params.domain }}{{ .Site.Params.domain }}{{ else }}{{ .Site.Title }}{{ end }}{{ else }}{{ .Site.Title }}{{ end }}</title> </head> |