hugo-theme-fha/layouts/partials/head.html

33 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-09-01 14:27:23 +00:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ hugo.Generator }}
{{ with .Site.Params.description }}
<meta name="description" content="{{ . }}">
{{ end }}
{{ $bootstrapCss := "css/bootstrap.min.css" }}
2024-10-14 19:54:59 +00:00
<link rel="stylesheet" href="{{ $bootstrapCss | absURL }}" />
{{- if eq $.Site.Params.darklighttogglemode true -}}
{{ $varCss := resources.Get "css/variables.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $varCss.RelPermalink }}" />
{{- end -}}
{{ $mainCss := resources.Get "css/main.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $mainCss.RelPermalink }}" />
{{ $themeCss := resources.Get "css/theme.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $themeCss.RelPermalink }}" />
{{ $chromaCss := resources.Get "css/chroma.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $chromaCss.RelPermalink }}" />
{{- if eq $.Site.Params.enablecopycode true -}}
{{ $copyCss := resources.Get "css/copycodebtn.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $copyCss.RelPermalink }}" />
{{- end -}}
{{ partial "bootstrap-js.html" . }}
</head>