diff options
author | Tony Blyler <me@tonyblyler.com> | 2019-08-26 04:32:33 +0300 |
---|---|---|
committer | Tony Blyler <me@tonyblyler.com> | 2019-08-26 04:32:33 +0300 |
commit | 5ef28a4864a991062dfda21be2fa486076524874 (patch) | |
tree | 6de313c84616d51d0cf4e44c7e93c218b99363c6 /layouts | |
parent | 82bbfc025125821767845fd9106579bf318ff2cc (diff) |
* Fix static/images symlink errors
* Fix RSSLink deprecation
* Fix https://github.com/gohugoio/hugoThemes/issues/682
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 10 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
3 files changed, 10 insertions, 8 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6de1eee..5f41ace 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,7 +6,7 @@ {{ range .Pages }} <h3> <a href="{{ .RelPermalink }}"> - {{ .Title }} {{ if .GetParam "draft" }}DRAFT{{ end }} + {{ .Title }} {{ if .Param "draft" }}DRAFT{{ end }} </a> </h3> <div class="post-meta"> diff --git a/layouts/index.html b/layouts/index.html index 4be8db8..f3bb4ce 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,9 @@ {{ partial "header.html" . }} - {{ range first 10 .Data.Pages }} - {{ if eq .Type "post" }} - {{ .Render "summary" }} - {{ end }} + {{ $pages := .Pages }} + {{ if .IsHome }} + {{ $pages = .Site.RegularPages }} + {{ end }} + {{ range first 10 $pages }} + {{ .Render "summary" }} {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7b065b8..4312b90 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,9 +6,9 @@ <title>{{ .Title }} · {{ .Site.Title }}</title> <link rel="canonical" href="{{ .Permalink }}"> <link rel="stylesheet" type="text/css" href="/css/main.css" /> - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" /> - {{ end }} + {{ range .AlternativeOutputFormats -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} {{ partial "head.html" . }} </head> <body> |