Update head.html

Improve Styling
This commit is contained in:
Djordje Atlialp 2019-11-14 16:37:36 +01:00
parent a776f83fc1
commit d56680f496

View file

@ -1,23 +1,21 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" <meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}"> <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="description"
content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="keywords" content="{{ .Site.Params.keywords }}" /> <meta name="keywords" content="{{ .Site.Params.keywords }}" />
<meta name="robots" content="noodp" /> <meta name="robots" content="noodp" />
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" /> <meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
{{ block "title" . }} {{ block "title" . }}
<title> <title>
{{ if .IsHome }} {{ if .IsHome }}
{{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }} {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }}
{{ else }} {{ else }}
{{ .Title }} :: {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }} {{ .Title }} :: {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}
{{ end }} {{ end }}
</title> </title>
{{ end }} {{ end }}
<!-- CSS --> <!-- CSS -->
@ -29,9 +27,9 @@
<link rel="stylesheet" href="{{ $style.RelPermalink }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ range $val := $.Site.Params.customCSS }} {{ range $val := $.Site.Params.customCSS }}
{{ if gt (len $val) 0 }} {{ if gt (len $val) 0 }}
<link rel="stylesheet" type="text/css" href="{{ $val }}"> <link rel="stylesheet" type="text/css" href="{{ $val }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
<!-- Icons --> <!-- Icons -->
@ -41,9 +39,12 @@
{{- template "_internal/twitter_cards.html" . }} {{- template "_internal/twitter_cards.html" . }}
{{ range .Params.categories }} {{ range .Params.categories }}
<meta property="article:section" content="{{ . }}" />{{ end }} <meta property="article:section" content="{{ . }}" />
{{ end }}
{{ if isset .Params "date" }} {{ if isset .Params "date" }}
<meta property="article:published_time" content="{{ time .Date }}" />{{ end }} <meta property="article:published_time" content="{{ time .Date }}" />
{{ end }}
<!-- RSS --> <!-- RSS -->
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" -}}
@ -58,5 +59,5 @@
<!-- Custom head tags --> <!-- Custom head tags -->
{{- if templates.Exists "partials/extra-head.html" -}} {{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }} {{ partial "extra-head.html" . }}
{{- end }} {{- end }}