mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
🐛 fix: article shortcode across languages (#2130)
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
{{ $link := .Get "link" }}
|
||||||
{{ $parent := .Page.RelPermalink }}
|
{{ $parent := .Page.RelPermalink }}
|
||||||
<section class="space-y-10 w-full">
|
{{ with first 1 (where .Site.AllPages "RelPermalink" $link) }}
|
||||||
{{ $RelPermalink := .Get "link" }}
|
{{ $target := index . 0 }}
|
||||||
{{ range ( where .Site.RegularPages "RelPermalink" $RelPermalink | first 1 ) }}
|
{{ if ne $target.RelPermalink $parent }}
|
||||||
{{ if not (eq .RelPermalink $parent) }}
|
<section class="space-y-10 w-full">
|
||||||
{{ partial "article-link/simple.html" . }}
|
{{ partial "article-link/simple.html" $target }}
|
||||||
{{ end }}
|
</section>
|
||||||
{{end}}
|
{{ end }}
|
||||||
</section>
|
{{ end }}
|
||||||
Reference in New Issue
Block a user