First commit
Some checks failed
Blowfish Docs Deploy / build (push) Has been cancelled
Blowfish Docs Deploy / deploy (push) Has been cancelled
Test Build / Build Example Site (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Update Hugo version / updateBlowfish (push) Has been cancelled
Some checks failed
Blowfish Docs Deploy / build (push) Has been cancelled
Blowfish Docs Deploy / deploy (push) Has been cancelled
Test Build / Build Example Site (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Update Hugo version / updateBlowfish (push) Has been cancelled
Delete exampleSite Add initial content, images & docker-compose.yml Use extend-head.html for analytics Set remote url to gitea.novicelab.io Remove original .git due to "shallow update not allowed" error
This commit is contained in:
13
layouts/shortcodes/article.html
Normal file
13
layouts/shortcodes/article.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ $link := .Get "link" }}
|
||||
{{ $showSummary := .Get "showSummary" }}
|
||||
{{ $compactSummary := .Get "compactSummary" | default false }}
|
||||
{{ $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 "compactSummary" $compactSummary }}
|
||||
{{ partial "article-link/_shortcode.html" $context }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user