diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 749cce6..56a3157 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,7 +3,7 @@ <head> <link href="https://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> @@ -13,6 +13,7 @@ {{- else -}} <title>{{ .Title }} · {{ .Site.Title }}</title> {{- end }} + <meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" /> <!-- CSS --> <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print"> @@ -25,8 +26,10 @@ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png"> <link rel="shortcut icon" href="/favicon.png"> - <!-- RSS --> - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <!-- RSS etc --> + {{ range .AlternativeOutputFormats -}} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{ end -}} {{ partial "hook_head_end.html" . }} </head> |