mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
change front page to have a timeline of posts
This commit is contained in:
@@ -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;
|
||||||
article {
|
article {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{ partial "home.html" . }}
|
{{ partial "home.html" . }}
|
||||||
|
{{ partial "timeline.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if not .Site.Params.hideCredits }}
|
{{ if not .Site.Params.hideCredits }}
|
||||||
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ if .Site.Params.commit }}
|
{{ if .Site.Params.commit }}
|
||||||
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
||||||
|
|||||||
14
layouts/partials/timeline.html
Normal file
14
layouts/partials/timeline.html
Normal 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>
|
||||||
Reference in New Issue
Block a user