mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 06:21:13 +00:00
Update to Hugo v0.143.1
This commit is contained in:
parent
3282b231c0
commit
fd5c0865b5
18 changed files with 112 additions and 47 deletions
30
layouts/postroll/list.html
Normal file
30
layouts/postroll/list.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "header.html" . }}
|
||||
<main>
|
||||
<article>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ range .Pages }}
|
||||
<div class="postroll-item" style="text-align: left;">
|
||||
<p><a href="{{ .Params.url }}"><strong style="font-size: 1.7rem;">{{ .Title }}</strong></a> by <span class="postroll-author">{{ .Params.author }}</span></p>
|
||||
<p>{{ .Content }}</p>
|
||||
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
||||
{{ $pubdate := .Date.Format $singlePageDateFormat }}
|
||||
<p>Added: <span class="postroll-date"> {{ $pubdate }} </span></p>
|
||||
</div>
|
||||
<hr/>
|
||||
{{ end }}
|
||||
<style>
|
||||
.postroll-item {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
text-align: left;
|
||||
}
|
||||
.postroll-author, .postroll-date {
|
||||
color: #800000;
|
||||
}
|
||||
</style>
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue