Hello whiny.lol
This commit is contained in:
43
layouts/home.html
Executable file
43
layouts/home.html
Executable file
@@ -0,0 +1,43 @@
|
||||
{{ define "main" }}
|
||||
{{ if .Site.Params.version.dialog }}
|
||||
{{ partial "dialog.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<section class="hero">
|
||||
<div class="hero-inner width-page home prose">
|
||||
{{ .Summary }}
|
||||
|
||||
{{ if .Site.Params.version.notice }}
|
||||
{{ with .Site.Params.version.changelog }}
|
||||
{{ with $.Site.GetPage . }}
|
||||
<a class="link badge" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="container width-page">
|
||||
<section class="latest">
|
||||
<div>
|
||||
<h2 class="section-title">Latest post</h2>
|
||||
{{ range ( where .Site.RegularPages "Type" "posts" | first 1 ) }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 class="section-title">Latest review</h2>
|
||||
{{ range ( where .Site.RegularPages "Type" "reviews" | first 1 ) }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ with .ContentWithoutSummary }}
|
||||
<div class="prose">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user