diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index acfb606..497d805 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,10 +1,16 @@ +{{ .Hugo.Generator }} <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> + +<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }} - {{ if eq $isHomePage false }}{{ delimit .Keywords ", " }} - {{ .Site.Title }}{{ else }}{{ delimit .Site.Params.keywords ", " }}{{ end }}</title> <meta name="author" content="{{ with .Site.Params.name }}{{ . }}{{ end }}"> -<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}"> -{{ .Hugo.Generator }} -<title>{{ .Site.Title }}</title> +<meta name="description" content="{{ $isHomePage := eq .Title .Site.Title }}{{ if eq $isHomePage false }}{{ .Description }} - {{ end }}{{ .Site.Params.description }}"> +<meta name="keywords" content="{{ delimit .Keywords ", " }}"> + +<meta property="og:title" content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }} - {{ if eq $isHomePage false }}{{ delimit .Keywords ", " }} - {{ .Site.Title }}{{ else }}{{ delimit .Site.Params.keywords ", " }}{{ end }}"> +<meta property="og:description" content="{{ $isHomePage := eq .Title .Site.Title }}{{ if eq $isHomePage false }}{{ .Description }} - {{ end }}{{ .Site.Params.description }}"> + {{ "<!-- Site Icon -->" | safeHTML }} <link rel="shortcut icon" href="{{ .Site.BaseURL }}{{ .Site.Params.logo }}"> {{ "<!-- Load CSS config -->" | safeHTML }} |