hugo-theme-hyde-hyde/layouts/partials/header/meta.html

19 lines
835 B
HTML
Raw Normal View History

2018-07-16 03:22:00 +00:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="public" />
{{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
{{ hugo.Generator }}
{{ if .IsHome }}
{{ $.Scratch.Set "theTitle" .Site.Title }}
2018-07-20 20:32:00 +00:00
{{else}}
2018-12-05 23:48:12 +00:00
{{ $.Scratch.Set "theTitle" .Title}}
2018-07-20 20:32:00 +00:00
{{ $.Scratch.Add "theTitle" " • "}}
{{ $.Scratch.Add "theTitle" .Site.Title}}
{{ end }}
2018-07-20 20:32:00 +00:00
<title>{{ $.Scratch.Get "theTitle" }}</title>
{{ with .Site.Params.meta.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.meta.keywords }}<meta name="keywords" content="{{.}}">{{ end }}
2018-07-21 07:08:41 +00:00
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}