Update content to focus on the important parts.
This commit is contained in:
10
layouts/_shortcodes/article.html
Normal file
10
layouts/_shortcodes/article.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $link := .Get "link" }}
|
||||
{{ $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 }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user