Adapt for v0.65
This commit is contained in:
parent
8751ee78e2
commit
8744509462
|
@ -1,4 +1,4 @@
|
|||
module:
|
||||
hugoVersion:
|
||||
extended: true
|
||||
min: "0.57.2"
|
||||
min: "0.65.0"
|
|
@ -1,6 +1,11 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := $pctx.RegularPages -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if eq $.Kind "taxonomyTerm" -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := $pctx.RegularPages -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if eq $.Kind "taxonomyTerm" -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank">{{ . }}</a></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partialCached "post_tags" . .Params.tags .Params.series }}
|
||||
{{ partialCached "post_tags" . (.GetTerms "tags") (.GetTerms "series") }}
|
||||
</article>
|
||||
{{ partialCached "authorbox" . (.Param "authorbox") }}
|
||||
</main>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{ if or .Params.tags .Params.series }}
|
||||
{{ if or (.GetTerms "tags") (.GetTerms "series") }}
|
||||
<div class="tags">
|
||||
<ul class="tags-list">
|
||||
{{ range .Params.series }}
|
||||
<li class="tag-item"><a class="tag-link" href="{{ "series/" | relLangURL }}{{ . | urlize }}/">{{ . }}</a></li>
|
||||
{{ range (.GetTerms "series") }}
|
||||
<li class="tag-item"><a class="tag-link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ range .Params.tags }}
|
||||
<li class="tag-item"><a class="tag-link p-category" href="{{ "tags/" | relLangURL }}{{ . | urlize }}/" rel="tag">{{ . }}</a></li>
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<li class="tag-item"><a class="tag-link p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Reference in New Issue