Simplified setting the title tag, added author and date to posts, TODO make optional. Ordering of meta tags. Fixes for alternate outputs like RSS.

This commit is contained in:
Fredrik Jonsson 2017-05-17 22:44:15 +02:00
commit 90cb79d78a

View file

@ -2,12 +2,8 @@
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
{{ .Hugo.Generator }}
{{ with $.Param "contact" }}<meta name="contact" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="/css/styles.css{{ if $.Param "cacheBustCSS" }}?{{ readFile "/public/css/styles.css" | sha1 }}{{ end }}">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
{{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ .Name }}" href="{{ .Permalink | safeURL }}">
{{ end -}}
{{ with $.Param "contact" }}<meta name="contact" content="{{ . }}">{{ end -}}