mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-27 06:16:09 +00:00
feat: add support for showSummary in article shortcode
This commit is contained in:
3 files changed
+128
-1
No files matched your search
@@ -1,10 +1,12 @@
|
||||
{{ $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">
|
||||
{{ partial "article-link/simple.html" $target }}
|
||||
{{ $context := dict "target" $target "showSummary" $showSummary }}
|
||||
{{ partial "article-link/_shortcode.html" $context }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user