Add bootstrap, more shortcodes and initial dark mode

This commit is contained in:
2024-11-29 14:20:38 +01:00
parent 189a933839
commit 17de8b21e6
10 changed files with 48 additions and 17 deletions

View File

@@ -6,11 +6,11 @@
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}">
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#FF3DB4">
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/" | relURL }}favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/" | relURL }}favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/" | relURL }}favicon/favicon-16x16.png">
<link rel="manifest" href="{{ "/" | relURL }}favicon/manifest.json">
<link rel="mask-icon" href="{{ "/" | relURL }}favicon/safari-pinned-tab.svg" color="#FF3DB4">
<meta name="theme-color" content="#ffffff">
<!-- Styles -->
@@ -20,13 +20,18 @@
<!-- Uncomment to add custom styles -->
<!-- Modify the custom.scss file inside assets > css to use scss -->
<!-- {{ $custom_style := resources.Get "css/custom.scss" | toCSS | minify | fingerprint }}
<!-- {{ $custom_style := resources.Get "css/custom.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $custom_style.Permalink }}"/> -->
<!-- Modify the custom.css file inside static > css to use vanilla css -->
<!-- <link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css"> -->
{{ with site.Home.OutputFormats.Get "RSS" }}
<link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css">
<!-- Custom js -->
<script src="{{ "/" | relURL }}js/custom.js"></script>
<link rel="stylesheet" href="{{ "/" | relURL }}css/bootstrap.min.css">
{{ with .OutputFormats.Get "RSS" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{- if not hugo.IsServer -}}