* Fix static/images symlink errors
* Fix RSSLink deprecation * Fix https://github.com/gohugoio/hugoThemes/issues/682
This commit is contained in:
parent
82bbfc0251
commit
5ef28a4864
9 changed files with 16 additions and 14 deletions
layouts
|
@ -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">
|
||||
|
|
|
@ -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" . }}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue