change front page to have a timeline of posts

This commit is contained in:
2020-02-15 19:10:41 +01:00
parent 2b8d4c1143
commit 5dfd106771
4 changed files with 23 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
.content { .content {
flex: 1; display: block;
display: flex;
margin-top: 1.6rem; margin-top: 1.6rem;
margin-bottom: 3.2rem; margin-bottom: 3.2rem;

View File

@@ -1,3 +1,4 @@
{{ define "content" }} {{ define "content" }}
{{ partial "home.html" . }} {{ partial "home.html" . }}
{{ partial "timeline.html" . }}
{{ end }} {{ end }}

View File

@@ -11,9 +11,13 @@
{{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }} {{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }}
· ·
{{ end }} {{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. {{ if not .Site.Params.hideCredits }}
{{ if (and .Site.Params.commit .GitInfo) }} {{ if not .Site.Params.hideCopyright }} · {{ end }}
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</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 }}
[<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
{{ end }} {{ end }}
</section> </section>
</footer> </footer>

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>