diff options
Diffstat (limited to 'themes/default/layouts/partials/base-head.html')
-rw-r--r-- | themes/default/layouts/partials/base-head.html | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/themes/default/layouts/partials/base-head.html b/themes/default/layouts/partials/base-head.html deleted file mode 100644 index a32b08d..0000000 --- a/themes/default/layouts/partials/base-head.html +++ /dev/null @@ -1,72 +0,0 @@ -{{- $noindex := "" -}} -{{- $image := "" -}} -{{- $author := .Section -}} -{{- $kind := in (slice "home" "taxonomy" "term") .Page.Kind -}} - -{{- if not $kind -}} - {{- $image = print ("" | absURL) "/data/media/" $author "/" $author "-profile.png" -}} -{{- end -}} - -{{- with or .Params.Feed .Params.Unlisted .Params.ExpiryDate -}} - {{- $noindex = "noindex,nofollow" -}} -{{- end }} - -<!-- HTML Meta Tags --> -<meta charset="utf-8" /> -<meta name="author" content="{{ or $author $.Site.Title -}}" /> -<meta name="robots" content="{{ or $noindex .Site.Params.site.robots "index,follow" }}" /> -<meta name="viewport" content="width=device-width, initial-scale=1" /> -<meta name="keywords" content="{{- partial "base-title.html" . -}}" /> -<meta name="generator" content="Hugo {{ hugo.Version }}" /> - -<!-- Search Engine Tags --> -<meta itemprop="name" content="{{ partial "base-title.html" . -}}" /> -<meta itemprop="description" content="{{- partial "base-description.html" . -}}" /> -<meta itemprop="image" content="{{ $image }}" /> - -<!-- Open Graph Meta Tags --> -<meta property="og:title" content="{{ partial "base-title.html" . -}}" /> -<meta property="og:description" content="{{- partial "base-description.html" . -}}" /> -<meta property="og:url" content="{{ .Permalink }}" /> -<meta property="og:image" content="{{ $image }}" /> -<meta property="og:type" content="website" /> -<meta property="article:published_time" content="{{ (or .Params.PublishDate now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" /> -<meta property="article:modified_time " content="{{ (or .Params.LastMod now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" /> - -<!-- Twitter Meta Tags --> -<meta name="twitter:card" content="summary_large_image" /> -<meta name="twitter:title" content="{{ partial "base-title.html" . -}}" /> -<meta name="twitter:description" content="{{- partial "base-description.html" . -}}" /> -<meta name="twitter:image" content="{{ $image }}" /> - -<!-- Extra Meta Tags --> -<meta name='base-url' content="{{ "" | absURL }}" /> -<meta name='last-modified' content="{{ now.UTC.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}" /> - -<!-- Search Verification --> -{{- partial "base-search.html" . -}} - -<!-- Feed Discovery --> -{{- partial "base-discovery.html" . -}} - -<!-- Canonicalization --> -{{- partial "base-canonical.html" . -}} - -<!-- Styles --> -{{- partial "base-css.html" . -}} - -<!-- Scripts --> -{{- partial "base-js.html" . -}} - -<!-- Progressive Enhancement --> -{{- partial "base-manifest.html" . -}} - -<!-- Content Security Policy --> -{{- partial "base-csp.html" . -}} - -<!-- No Scripts --> -<noscript> - <style> - {{ safeCSS (readFile "assets/css/noscript.css") }} - </style> -</noscript> |