From 5dfd106771734808ae2bc8061e9ba4f55bbf09c3 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Sat, 15 Feb 2020 19:10:41 +0100 Subject: [PATCH] change front page to have a timeline of posts --- assets/scss/_content.scss | 3 +-- layouts/index.html | 1 + layouts/partials/footer.html | 10 +++++++--- layouts/partials/timeline.html | 14 ++++++++++++++ 4 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/timeline.html diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index 2909a6a..61d1439 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -1,6 +1,5 @@ .content { - flex: 1; - display: flex; + display: block; margin-top: 1.6rem; margin-bottom: 3.2rem; diff --git a/layouts/index.html b/layouts/index.html index b829b61..3b53f4e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,4 @@ {{ define "content" }} {{ partial "home.html" . }} + {{ partial "timeline.html" . }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 94f1449..a3dcbe5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,9 +11,13 @@ {{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }} · {{ end }} - {{ i18n "powered_by" }} Hugo & Coder. - {{ if (and .Site.Params.commit .GitInfo) }} - [{{ .GitInfo.AbbreviatedHash }}] + {{ if not .Site.Params.hideCredits }} + {{ if not .Site.Params.hideCopyright }} · {{ end }} + {{ i18n "powered_by" }} Hugo & Coder-Timeline. + {{ end }} + {{ if .Site.Params.commit }} + {{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }} + [{{ getenv "GIT_COMMIT_SHA_SHORT" }}] {{ end }} diff --git a/layouts/partials/timeline.html b/layouts/partials/timeline.html new file mode 100644 index 0000000..eb3ae37 --- /dev/null +++ b/layouts/partials/timeline.html @@ -0,0 +1,14 @@ +
+

+ Projects +

+ + {{ partial "pagination.html" . }} +