diff options
author | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
commit | e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6 (patch) | |
tree | 3667043819ab91065019dfe3b4ff83ad625c2b49 /themes/default/layouts/partials/head.html | |
download | canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.gz canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.bz2 canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.zip |
config.yaml: Commission
Diffstat (limited to 'themes/default/layouts/partials/head.html')
-rw-r--r-- | themes/default/layouts/partials/head.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html new file mode 100644 index 0000000..856fb2f --- /dev/null +++ b/themes/default/layouts/partials/head.html @@ -0,0 +1,50 @@ +<!-- HTML Meta Tags --> +<meta charset="utf-8"> +<meta name="author" content="{{ partial "author-name.html" . -}}"> +{{ 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" . -}}"> + +<!-- 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 }}/images/{{ partial "meta-thumbnail-path.html" . }}.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 }}/images/{{ partial "meta-thumbnail-path.html" . }}.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 }}/images/{{ partial "meta-thumbnail-path.html" . }}.png"> + +<!-- Progressive Enhancement --> +{{- partial "manifest.html" . -}} + +<!-- Content Security Policy --> +{{- partial "csp.html" . -}} + +<!-- Style Sheets --> +<link rel="stylesheet" href="/css/default.css"> +<link rel="stylesheet" href="/css/syntax-highlight-default.css"> + +<!-- Scripts --> +<script src="/js/index.js"></script> + +<!-- No Scripts --> +<noscript> + <style> + {{ safeCSS (readFile "static/css/noscript.css") }} + </style> +</noscript> |