mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-08-04 04:58:55 -04:00
Update theme
This commit is contained in:
parent
808aee6f64
commit
4e66d98adf
@ -1,28 +1,57 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="no-js" lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
<html
|
||||||
|
class="no-js"
|
||||||
|
lang="{{ with $.Site.LanguageCode }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
en-us
|
||||||
|
{{ end }}
|
||||||
|
">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
{{/* https://www.zachleat.com/web/preload/ */}}
|
{{/* https://www.zachleat.com/web/preload/ */}}
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-200.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
<link
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-400.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
rel="preload"
|
||||||
<link rel="preload" href="{{ "fonts/muli-latin-800.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
|
href="{{ "fonts/muli-latin-200.woff2" | absURL }}"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin />
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="{{ "fonts/muli-latin-400.woff2" | absURL }}"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin />
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="{{ "fonts/muli-latin-800.woff2" | absURL }}"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin />
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
|
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
|
||||||
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>
|
||||||
|
{{ block "title" . }}
|
||||||
|
{{ with .Title }}{{ . }} |{{ end }}{{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
</title>
|
||||||
|
|
||||||
|
<meta name="viewport" content="width=device-width,minimum-scale=1" />
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if hugo.IsProduction }}
|
||||||
<meta name="robots" content="index, follow">
|
<meta name="robots" content="index, follow" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link
|
||||||
|
rel="{{ .Rel }}"
|
||||||
|
type="{{ .MediaType.Type }}"
|
||||||
|
href="{{ .Permalink | safeURL }}" />
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ $isDev := eq hugo.Environment "development" }}
|
{{ $isDev := eq hugo.Environment "development" }}
|
||||||
@ -32,15 +61,29 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $stylesheet }}
|
{{ with $stylesheet }}
|
||||||
{{ if $isDev }}
|
{{ if $isDev }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" crossorigin="anonymous">
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ .RelPermalink }}"
|
||||||
|
crossorigin="anonymous" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ .RelPermalink }}"
|
||||||
|
integrity="{{ .Data.Integrity }}"
|
||||||
|
crossorigin="anonymous" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $.Scratch.Set "stylesheet" . }}
|
{{ $.Scratch.Set "stylesheet" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<meta name="description"
|
|
||||||
content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="{{ with .Description }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ with .Site.Params.description }}{{ . }}{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
" />
|
||||||
|
|
||||||
{{ block "scripts" . }}
|
{{ block "scripts" . }}
|
||||||
{{- partial "site-scripts.html" . -}}
|
{{- partial "site-scripts.html" . -}}
|
||||||
@ -51,13 +94,16 @@
|
|||||||
{{- template "_internal/schema.html" . -}}
|
{{- template "_internal/schema.html" . -}}
|
||||||
{{- partial "opengraph/twitter_cards.html" . -}}
|
{{- partial "opengraph/twitter_cards.html" . -}}
|
||||||
|
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ partial "gtag" . }}
|
{{ partial "gtag" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
|
<body
|
||||||
|
class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }}
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}">
|
||||||
{{ partial "hooks/after-body-start" . }}
|
{{ partial "hooks/after-body-start" . }}
|
||||||
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
|
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
|
||||||
{{ block "header" . }}{{ end }}
|
{{ block "header" . }}{{ end }}
|
||||||
@ -69,7 +115,5 @@
|
|||||||
|
|
||||||
{{ partial "hooks/before-body-end" . }}
|
{{ partial "hooks/before-body-end" . }}
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1 +1 @@
|
|||||||
# github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14
|
# github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6
|
||||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
|
|||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
require github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 // indirect
|
require github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6 // indirect
|
||||||
|
2
go.sum
2
go.sum
@ -49,3 +49,5 @@ github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 h1:wjpYa1cT
|
|||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 h1:K6tPFpi7W0zb89QIf+lNdgdTXfDFemU6NKk46MlX9lQ=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 h1:K6tPFpi7W0zb89QIf+lNdgdTXfDFemU6NKk46MlX9lQ=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
|
||||||
|
github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6 h1:yEoQecRBoLGfc7yTybMD3Mhm03bTScZFYPvwe0p75vA=
|
||||||
|
github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user