Files
blowfish/layouts/shortcodes/article.html
2025-07-13 18:44:45 +08:00

13 lines
425 B
HTML

{{ $link := .Get "link" }}
{{ $showSummary := .Get "showSummary" }}
{{ $target := .Page }}
{{ if ne $link .Page.RelPermalink }}
{{ $target = index (first 1 (where .Site.AllPages "RelPermalink" $link)) 0 }}
{{ end }}
{{ if $target }}
<section class="space-y-10 w-full">
{{ $context := dict "target" $target "showSummary" $showSummary }}
{{ partial "article-link/_shortcode.html" $context }}
</section>
{{ end }}