Compare commits
2 Commits
3937ed4172
...
7d26aeff65
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d26aeff65 | |||
| a70cc32441 |
@@ -1,6 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.Language.Lang }}">
|
<html lang="{{ .Site.Language.Lang }}">
|
||||||
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
<div class="container"><hr class="header-divider"></div>
|
<div class="container"><hr class="header-divider"></div>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="theme-color" content="#1dc868">
|
<meta name="theme-color" content="#1dc868">
|
||||||
@@ -50,6 +49,13 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Params.custom_css }}
|
||||||
|
{{ range $customCss := .Params.custom_css }}
|
||||||
|
{{ $renderedCustomCss := page.Resources.Get $customCss | css.Sass (dict "includePaths" (slice "themes/vanilla/assets/scss")) | resources.Minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $renderedCustomCss.Permalink }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if hugo.IsServer }}
|
{{ if hugo.IsServer }}
|
||||||
<!-- KaTeX auto-rendering for when we don't have a post-processing step. -->
|
<!-- KaTeX auto-rendering for when we don't have a post-processing step. -->
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
|
||||||
@@ -98,4 +104,3 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
</head>
|
|
||||||
|
|||||||
26
layouts/writing/baseof.html
Normal file
26
layouts/writing/baseof.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.Language.Lang }}">
|
||||||
|
<head>
|
||||||
|
{{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $writingcss.Permalink }}">
|
||||||
|
{{- partial "head.html" . -}}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{ with .Params.body_start_partial }}
|
||||||
|
{{ partial . $ }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{- partial "header.html" . -}}
|
||||||
|
<div class="container"><hr class="header-divider"></div>
|
||||||
|
<main class="container">
|
||||||
|
|
||||||
|
{{- if .Draft -}}
|
||||||
|
{{- partial "warning.html" (i18n "postDraft") -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- block "main" . }}{{- end }}
|
||||||
|
</main>
|
||||||
|
{{- block "after" . }}{{- end }}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user