* Fix static/images symlink errors

* Fix RSSLink deprecation
* Fix https://github.com/gohugoio/hugoThemes/issues/682
This commit is contained in:
Tony Blyler 2019-08-25 21:32:33 -04:00
parent 82bbfc0251
commit 5ef28a4864
9 changed files with 16 additions and 14 deletions
layouts

View file

@ -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">

View file

@ -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" . }}

View file

@ -6,9 +6,9 @@
<title>{{ .Title }} &middot; {{ .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>