diff options
| author | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
| commit | f8541ef965ca22e746b523eb418e47cb4f78f2d8 (patch) | |
| tree | 49e1540ed42595a44196817eadf97337587a2aea /layouts/partials/head | |
| parent | 038054b8206a9c25e84adeb0f0f355abd22d6143 (diff) | |
Upgrade to new template system from Hugo v0.146.0
Diffstat (limited to 'layouts/partials/head')
| -rw-r--r-- | layouts/partials/head/css.html | 21 | ||||
| -rw-r--r-- | layouts/partials/head/js.html | 16 | ||||
| -rw-r--r-- | layouts/partials/head/meta.html | 27 | ||||
| -rw-r--r-- | layouts/partials/head/seo.html | 46 |
4 files changed, 0 insertions, 110 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html deleted file mode 100644 index d4e894e..0000000 --- a/layouts/partials/head/css.html +++ /dev/null @@ -1,21 +0,0 @@ -{{- with resources.Get "css/main.css" -}} - {{- $allStylesheets := slice - . - (resources.Get "css/header.css") - (resources.Get "css/navmenu.css") - (resources.Get "css/footer.css") - (resources.Get "css/post-card.css") - (resources.Get "css/page.css") - (resources.Get "css/post.css") - (resources.Get "css/list-navigation.css") - (resources.Get "css/search.css") - -}} - {{- $cssBundle := $allStylesheets | resources.Concat "css/bundle.css" -}} - - {{- if hugo.IsDevelopment -}} - <link rel="stylesheet" href="{{ $cssBundle.RelPermalink }}"> - {{- else -}} - {{- $css := $cssBundle | minify | fingerprint -}} - <link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous"> - {{- end -}} -{{- end -}} diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html deleted file mode 100644 index 0baf831..0000000 --- a/layouts/partials/head/js.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- with resources.Get "js/main.js" }} - {{- $opts := dict - "minify" (not hugo.IsDevelopment) - "sourceMap" (cond hugo.IsDevelopment "external" "") - "targetPath" "js/main.js" - }} - {{- with . | js.Build $opts }} - {{- if hugo.IsDevelopment }} - <script defer src="{{ .RelPermalink }}"></script> - {{- else }} - {{- with . | fingerprint }} - <script defer src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> - {{- end }} - {{- end }} - {{- end }} -{{- end -}} diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html deleted file mode 100644 index f739838..0000000 --- a/layouts/partials/head/meta.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- /* Basic Meta */ -}} -<meta name="author" content="{{ site.Params.author.name | default site.Title }}"> -<meta name="robots" content="index, follow"> - -{{- /* Open Graph */ -}} -<meta property="og:title" content="{{ .Title | default site.Title }}"> -<meta property="og:description" content="{{ .Description | default .Summary }}"> -<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}"> -<meta property="og:url" content="{{ .Permalink }}"> -<meta property="og:site_name" content="{{ site.Title }}"> -{{- with site.Params.logo }} - <meta property="og:image" content="{{ . | absURL }}"> -{{- end }} -{{- if .IsPage }} - <meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- with .Lastmod }} - <meta property="article:modified_time" content="{{ .Format "2006-01-02T15:04:05Z07:00" }}"> - {{- end }} -{{- end }} - -{{- /* Twitter Card */ -}} -<meta name="twitter:card" content="summary_large_image"> -<meta name="twitter:title" content="{{ .Title | default site.Title }}"> -<meta name="twitter:description" content="{{ .Description | default .Summary }}"> -{{- with site.Params.logo }} - <meta name="twitter:image" content="{{ . | absURL }}"> -{{- end }} diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html deleted file mode 100644 index 628ea2c..0000000 --- a/layouts/partials/head/seo.html +++ /dev/null @@ -1,46 +0,0 @@ -<script type="application/ld+json"> -{ - "@context": "https://schema.org", - "@type": "{{ if .IsPage }}Article{{ else }}WebSite{{ end }}", - "url": {{ .Permalink }}, - "name": {{ with .Title }}{{ . }}{{ else }}{{ site.Title }}{{ end }}, - "headline": {{ with .Title }}{{ . }}{{ else }}{{ site.Title }}{{ end }}, - "description": {{ with .Description }}{{ . }}{{ else }}{{ site.Params.description | default site.Title }}{{ end }}, - {{- with .Params.images }} - "image": [ - {{- range $i, $image := . }} - {{- if $i }},{{ end }} - "{{ $image | absURL }}" - {{- end }} - ], - {{- else }} - {{- with site.Params.logo }} - "image": ["{{ . | absURL }}"], - {{- end }} - {{- end }} - {{- if .IsPage }} - "datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}", - {{- with .Lastmod }} - "dateModified": "{{ .Format "2006-01-02T15:04:05Z07:00" }}", - {{- end }} - {{- end }} - "author": { - "@type": "Person", - "name": "{{ site.Params.author.name | default site.Title }}" - }, - "publisher": { - "@type": "Organization", - "name": "{{ site.Title }}" - {{- with site.Params.logo }}, - "logo": { - "@type": "ImageObject", - "url": "{{ . | absURL }}" - } - {{- end }} - }, - "mainEntityOfPage": { - "@type": "WebPage", - "@id": {{ .Permalink }} - } -} -</script> |
