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 }}
|
||||
@@ -1,14 +0,0 @@
|
||||
{{ define "main" }}
|
||||
<article class="h-full max-w-full flex flex-col items-center justify-center">
|
||||
<section class="mt-6">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<section>
|
||||
{{ partial "recent-articles/main.html" . }}
|
||||
</section>
|
||||
<footer class="pt-8">
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
|
||||
13
layouts/partials/home/custom.html
Normal file
13
layouts/partials/home/custom.html
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<article class="max-w-full prose dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<header>
|
||||
<h1>{{ . | emojify }}</h1>
|
||||
</header>
|
||||
{{ end }}
|
||||
<section>{{ .Content }}</section>
|
||||
</article>
|
||||
<section>
|
||||
{{ partial "recent-articles/main.html" . }}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user