change front page to have a timeline of posts

This commit is contained in:
2020-02-15 19:10:41 +01:00
parent fcd8916343
commit 048766ff49
4 changed files with 17 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
{{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/13hannes11/hugo-coder-timeline">Coder-Timeline</a>.
{{ end }}
{{ if .Site.Params.commit }}
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}

View File

@@ -0,0 +1,14 @@
<section class="container list">
<h1 class="title">
Projects
</h1>
<ul>
{{ range .Paginator.Pages }}
<li>
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>