Update logic for Back Home, and also add metadata to homepage
This commit is contained in:
parent
378d0f14d6
commit
50be8a59ca
4 changed files with 16 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "head.html" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByLastmod.Reverse }}
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
{{ range where .Site.RegularPages "Section" "in" .Site.MainSections }}
|
||||
<section class="articles">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
|
||||
{{ partial "metadata.html" . }}
|
||||
<p class="summary">{{ .Summary }}</p>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ config change. -->
|
|||
{{- end }}
|
||||
</nav>
|
||||
<h1>{{ $.Site.Title }}</h1>
|
||||
{{ else if .IsPage }}
|
||||
{{ else }}
|
||||
<a href="/">Go Home</a>
|
||||
</nav>
|
||||
<p>{{ $.Site.Params.subtitle }}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue