mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 16:14:05 +00:00
fix: Pages archive link
For case where *not* using content.archive.link to customize link.
This commit is contained in:
1 parent
6f36c1624c
commit
05bfd7c48d
1 file changed
+10
-1
@@ -101,10 +101,19 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
{{/* Archive link */}}
|
||||||
{{ $show_archive_link := $st.Params.content.archive.enable | default (gt $count $items_count) }}
|
{{ $show_archive_link := $st.Params.content.archive.enable | default (gt $count $items_count) }}
|
||||||
{{ if $show_archive_link }}
|
{{ if $show_archive_link }}
|
||||||
{{ $archive_link := ($st.Params.content.archive.link | relLangURL) | default $archive_page.RelPermalink }}
|
|
||||||
|
{{ $archive_link := "" }}
|
||||||
|
{{ if $st.Params.content.archive.link }}
|
||||||
|
{{ $archive_link = $st.Params.content.archive.link | relLangURL }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $archive_link = $archive_page.RelPermalink }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ $archive_text := $st.Params.content.archive.text | default (i18n $i18n) | default "See all" }}
|
{{ $archive_text := $st.Params.content.archive.text | default (i18n $i18n) | default "See all" }}
|
||||||
|
|
||||||
<div class="see-all">
|
<div class="see-all">
|
||||||
<a href="{{ $archive_link }}">
|
<a href="{{ $archive_link }}">
|
||||||
{{ $archive_text | emojify }}
|
{{ $archive_text | emojify }}
|
||||||
|
|||||||
Reference in new issue
Block a user