Update logic for Back Home, and also add metadata to homepage
This commit is contained in:
parent
378d0f14d6
commit
50be8a59ca
|
@ -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>
|
||||
|
|
|
@ -25,6 +25,17 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
.summary {
|
||||
padding-left: 3.5rem;
|
||||
color: #f1f3f7
|
||||
padding-left: 1.5rem;
|
||||
color: #f1f3f7;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
.metadata {
|
||||
padding-left: 0.5rem;
|
||||
border-top-style: none;
|
||||
border-bottom-style: none;
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
.metadata a {
|
||||
text-decoration: underline;
|
||||
color: pink;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue