Format templates
This commit is contained in:
@@ -12,10 +12,12 @@
|
||||
{{ if templates.Exists "partials/paige/body-first.html" }}
|
||||
{{ partial "paige/body-first.html" $page }}
|
||||
{{ end }}
|
||||
|
||||
<div class="container flex-fill">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ partial "paige/header.html" $page }}
|
||||
|
||||
<main>
|
||||
{{ if templates.Exists "partials/paige/main-first.html" }}
|
||||
{{ partial "paige/main-first.html" $page }}
|
||||
@@ -25,11 +27,14 @@
|
||||
{{ partial "paige/main-last.html" $page }}
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ partial "paige/footer.html" $page }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "paige/scripts.html" $page }}
|
||||
|
||||
{{ if templates.Exists "partials/paige/body-last.html" }}
|
||||
{{ partial "paige/body-last.html" $page }}
|
||||
{{ end }}
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
<article>
|
||||
{{ partial "paige/metadata.html" $page }}
|
||||
|
||||
<section>
|
||||
{{ if $page.Param "paige.home.image.url" }}
|
||||
{{ $class := cond ($stretch | not) "mw-100 rounded-4 shadow" "rounded-4 shadow w-100" }}
|
||||
@@ -21,9 +22,11 @@
|
||||
) }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Param "paige.home.greeting" }}
|
||||
<p class="display-5 fw-bold h2 text-center">{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Param "paige.home.blurb" }}
|
||||
<div class="container-fluid">
|
||||
<div class="justify-content-center row">
|
||||
@@ -34,6 +37,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
{{ partial "paige/toc.html" $page }}
|
||||
{{ partial "paige/content.html" $page }}
|
||||
{{ partial "paige/social.html" $page }}
|
||||
|
@@ -4,5 +4,6 @@
|
||||
{{ if $page.Param "paige.list.content.show" | not }}
|
||||
{{ partial "paige/article.html" $page }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/pages.html" $page }}
|
||||
{{ end }}
|
||||
|
@@ -2,15 +2,16 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ partial "paige/article.html" $page }}
|
||||
|
||||
{{ if $page.Pages }}
|
||||
<section>
|
||||
<ul class="list-inline text-center">
|
||||
{{ range (sort $page.Pages "Title") }}
|
||||
<li class="list-inline-item">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<ul class="list-inline text-center">
|
||||
{{ range (sort $page.Pages "Title") }}
|
||||
<li class="list-inline-item">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user