mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
Update document metadata
This commit is contained in:
parent
8a2a3dd93e
commit
33eb987e91
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: Blog
|
||||
---
|
||||
|
||||
= Blog
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
{{- partial "head_extended.html" . -}}
|
||||
</head>
|
||||
<body>
|
||||
{{- partial "components/theme-button.html" . }}
|
||||
{{- partial "header.html" . -}}
|
||||
|
@ -1,74 +0,0 @@
|
||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ $.Site.Title }}</title>
|
||||
|
||||
{{- $stylesheets := slice }}
|
||||
|
||||
<!-- The main stylesheet being compiled. -->
|
||||
{{- $main := resources.Get "scss/main.scss" | resources.ToCSS }}
|
||||
|
||||
{{- /* Combine all of the custom schems in under one stylesheet */ -}}
|
||||
{{ $scheme_template := resources.Get "templates/theme.scss" }}
|
||||
{{- $themes := $scheme_template | resources.ExecuteAsTemplate "css/themes.css" . | resources.ToCSS }}
|
||||
{{- $prism := resources.Get "css/prism.css" -}}
|
||||
|
||||
{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the front. */ -}}
|
||||
{{ $stylesheets = $stylesheets | append $themes $prism $main }}
|
||||
|
||||
{{ $style := $stylesheets | resources.Concat "css/main.css" }}
|
||||
|
||||
{{- /* Only enable asset bundling in production */ -}}
|
||||
{{- if hugo.IsProduction }}
|
||||
{{- $style = $style | resources.Minify | resources.Fingerprint -}}
|
||||
{{- end }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" />
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.webp" />
|
||||
|
||||
{{- /* Some sane <meta> tags default */ -}}
|
||||
{{ hugo.Generator }}
|
||||
<meta charset="utf-8">
|
||||
|
||||
{{- with .Site.Author }}
|
||||
{{- $names := slice }}
|
||||
{{- range . }}{{ $names = $names | append .name }}{{ end }}
|
||||
<meta name="author" content="{{ delimit $names ", " (printf " %s " (i18n "and")) }}" />
|
||||
{{- end }}
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<meta name="description" content="{{ if (and (eq .Kind "home") .IsHome) }}{{ .Site.Title }}{{ else }}{{ .Summary | safeHTML }}{{ end }}" />
|
||||
{{- template "_internal/twitter_cards.html" . }}
|
||||
{{- template "_internal/opengraph.html" . }}
|
||||
|
||||
|
||||
{{- /* Linking all of the output formats for discovery. */ -}}
|
||||
{{- range .OutputFormats }}
|
||||
{{- printf "<link rel=%q type=%q href=%q />" .Rel .MediaType.Type .Permalink | safeHTML }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
{{- if hugo.IsProduction }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
{{- /* Persistent theme.
|
||||
It's a very small script so there's little effect on perceived performance. */ -}}
|
||||
<script>
|
||||
let theme = window.localStorage.getItem('theme');
|
||||
if (theme) {
|
||||
document.documentElement.dataset.theme = theme;
|
||||
}
|
||||
</script>
|
||||
|
||||
{{- /* Here's where the customized version should be. */ -}}
|
||||
{{- /* Prism.js */ -}}
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/components/prism-core.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/keep-markup/prism-keep-markup.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||
|
||||
{{- /* medium-zoom */ -}}
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.5/dist/medium-zoom.min.js"></script>
|
||||
<script>window.addEventListener('load', () => mediumZoom('article img', { 'background': 'rgba(0, 0, 0, 0.75)' }))</script>
|
||||
|
11
layouts/partials/head_extended.html
Normal file
11
layouts/partials/head_extended.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- /* Here's where the customized version should be. */ -}}
|
||||
{{- /* Prism.js */ -}}
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/components/prism-core.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/keep-markup/prism-keep-markup.min.js"></script>
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
||||
|
||||
{{- /* medium-zoom */ -}}
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.5/dist/medium-zoom.min.js"></script>
|
||||
<script>window.addEventListener('load', () => mediumZoom('article img', { 'background': 'rgba(0, 0, 0, 0.75)' }))</script>
|
||||
|
Loading…
Reference in New Issue
Block a user