From 9cbd118b16841145d5e18a5a18e7b638137ff46b Mon Sep 17 00:00:00 2001 From: Vrifox Date: Sat, 15 May 2021 10:10:56 +0200 Subject: [PATCH] =?UTF-8?q?The=20=E2=80=9EAbout=20me=E2=80=9C=20page=20is?= =?UTF-8?q?=20now=20the=20landing=20page;=20Capitalized=20menus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 28 ++++++---------------------- layouts/index.html | 25 ++++++++++++++++++++++--- layouts/partials/footer.html | 2 +- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/config.yaml b/config.yaml index 7a327c7..0ec230f 100644 --- a/config.yaml +++ b/config.yaml @@ -12,11 +12,6 @@ menu: url: / weight: 1 main: - - identifier: about - name: About - title: about - url: /about/ - weight: 1 - identifier: blog name: Blog title: blog @@ -36,33 +31,22 @@ menu: title: projects url: /projects/ weight: 5 - externallinks: - - identifier: git - name: git - title: git - url: https://code.cozy.town/vrifox - weight: 1 - - identifier: cozy.town - name: cozy.town - title: cozy.town - url: https://cozy.town - weight: 2 footer: - identifier: privacy - name: privacy + name: Privacy title: privacy url: /privacy/ - weight: 1 + weight: 3 - identifier: feed - name: feed (rss) + name: Feed (RSS) title: rss-feed url: /blog/index.xml - weight: 2 + weight: 4 - identifier: sourcecode - name: source code + name: Source Code title: source code url: https://code.cozy.town/vrifox/vrifox.cc - weight: 3 + weight: 5 markup: highlight: anchorLineNos: false diff --git a/layouts/index.html b/layouts/index.html index 3713c36..fb735cd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,26 @@ {{- define "main" }}
- {{- range first 8 (where .Site.RegularPages "Type" "post") }} -

{{ .Title }} {{ .Date.Format "2 January 2006" }}

- {{- end }} +

{{ .Title }}

+ {{- if eq .Params.type "post" }} +

{{ .Date.Format "2. January 2006" }}

+ {{- end }} + {{ .Content -}} +
{{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index fa3698c..547f869 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@