mirror of
https://gitlab.com/EternalWanderer/voidcruiser.nl
synced 2024-11-29 04:13:51 +01:00
More site specific things to site repo
This commit is contained in:
parent
8d0e8a5b88
commit
ed72df31df
32
layouts/_default/index.html
Normal file
32
layouts/_default/index.html
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content -}}
|
||||||
|
<div class="posts">
|
||||||
|
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
||||||
|
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }}
|
||||||
|
|
||||||
|
{{ $PageContext := . }}
|
||||||
|
{{ if .IsHome }}
|
||||||
|
{{ $PageContext = .Site }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||||
|
<table class="post-entry-meta">
|
||||||
|
{{ range first 5 .Paginator.Pages }}
|
||||||
|
<tr>
|
||||||
|
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
||||||
|
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
||||||
|
<td>{{ .Params.Author }}</td>
|
||||||
|
<td > {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
||||||
|
<!--
|
||||||
|
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||||
|
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||||
|
{{ end }}
|
||||||
|
-->
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</table>
|
||||||
|
<p><a class="button" href="/rambles">Read more</a></p>
|
||||||
|
</div>
|
||||||
|
{{ partial "stickers.html" }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
Loading…
Reference in a new issue