aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/head.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-22 00:36:28 -0400
committertdro <tdro@noreply.example.com>2022-07-22 00:36:28 -0400
commited919681f324ed070445cfae8f1dd662b09f81b8 (patch)
tree7f0af59b4021907b24f77e9966e7a7145dc227a6 /themes/default/layouts/partials/head.html
parent19a6a9bef26c6c41f3f9b6f3ceda375a8a045a30 (diff)
downloadcanory-ed919681f324ed070445cfae8f1dd662b09f81b8.tar.gz
canory-ed919681f324ed070445cfae8f1dd662b09f81b8.tar.bz2
canory-ed919681f324ed070445cfae8f1dd662b09f81b8.zip
themes/default/layouts: Name spacing and template clean up
Diffstat (limited to 'themes/default/layouts/partials/head.html')
-rw-r--r--themes/default/layouts/partials/head.html77
1 files changed, 0 insertions, 77 deletions
diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html
deleted file mode 100644
index 509b177..0000000
--- a/themes/default/layouts/partials/head.html
+++ /dev/null
@@ -1,77 +0,0 @@
-{{- partial "generate-authors" . -}}
-{{- $data :=
- (dict
- "Author" (index .Site.Data ((or .Params.author .Site.Author.default.home) | default "default"))
- )
--}}
-
-<!-- HTML Meta Tags -->
-<meta charset="utf-8">
-<meta name="author" content="{{ partial "author-name.html" (dict "Data" $data) -}}">
-{{ if or .Params.Unlisted .Params.ExpiryDate -}}
-<meta name="robots" content="noindex,nofollow">
-{{- else -}}
-<meta name="robots" content="index,follow">
-{{- end }}
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<meta name="keywords" content="{{- partial "site-title.html" . -}}">
-{{ hugo.Generator }}
-{{ with .Site.Params.site.refresh -}}
-<meta http-equiv="refresh" content="{{ . }}">
-{{- end }}
-
-<!-- Search Engine Tags -->
-<meta itemprop="name" content="{{ partial "site-title.html" . -}}">
-<meta itemprop="description" content="{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}">
-<meta itemprop="image" content="{{ .Site.BaseURL }}/{{ partial "author-user.html" (dict "Data" $data) -}}/media/profile/picture.png">
-
-<!-- Open Graph Meta Tags -->
-<meta property="og:title" content="{{ partial "site-title.html" . -}}">
-<meta property="og:description" content="{{- partial "site-description.html" . -}}">
-<meta property="og:url" content="{{ .Permalink }}">
-<meta property="og:image" content="{{ .Site.BaseURL }}/{{ partial "author-user.html" (dict "Data" $data) -}}/media/profile/picture.png">
-<meta property="og:type" content="website">
-<meta property="article:published_time" content="{{ .Params.PublishDate }}">
-<meta property="article:modified_time " content="{{ .Params.LastMod }}">
-
-<!-- Twitter Meta Tags -->
-<meta name="twitter:card" content="summary_large_image">
-<meta name="twitter:title" content="{{ partial "site-title.html" . -}}">
-<meta name="twitter:description" content="{{- partial "site-description.html" . -}}">
-<meta name="twitter:image" content="{{ .Site.BaseURL }}/{{ partial "author-user.html" (dict "Data" $data) -}}/media/profile/picture.png">
-
-<!-- Search Verification -->
-{{- partial "head-search.html" . -}}
-
-<!-- Link Tags -->
-<link rel="home" href="{{ .Site.BaseURL }}/{{ partial "author-user.html" (dict "Data" $data) }}">
-
-<!-- Style Sheets & Scripts -->
-{{- $index := resources.Get "js/index.js" -}}
-{{- $default := resources.Get "css/default.css" -}}
-{{- $syntax := resources.Get "css/syntax-highlight-default.css" -}}
-
-{{- $js := $index | resources.Minify | fingerprint -}}
-{{- $css := slice $default $syntax | resources.Concat "css/bundle.css" | resources.Minify | fingerprint -}}
-
-{{ if .Site.Params.site.production }}
-<link rel="stylesheet" href="{{ $css.Permalink }}">
-<script src="{{ $js.Permalink }}"></script>
-{{ else }}
-<link rel="stylesheet" href="{{ $default.Permalink }}">
-<link rel="stylesheet" href="{{ $syntax.Permalink }}">
-<script src="{{ $index.Permalink }}"></script>
-{{ end }}
-
-<!-- Progressive Enhancement -->
-{{- partial "head-manifest.html" . -}}
-
-<!-- Content Security Policy -->
-{{- partial "head-csp.html" . -}}
-
-<!-- No Scripts -->
-<noscript>
- <style>
- {{ safeCSS (readFile "assets/css/noscript.css") }}
- </style>
-</noscript>