From 5986899c4302daa59b9641285312acfb63c7a4fe Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 12 Nov 2020 00:32:07 +0100 Subject: [PATCH] List all posts --- config.toml | 2 +- layouts/eventtypes/term.html | 1 + layouts/index.html | 2 +- layouts/partials/summary-with-image.html | 2 +- layouts/partials/summary.html | 34 ++++++++++++++++++------ 5 files changed, 30 insertions(+), 11 deletions(-) diff --git a/config.toml b/config.toml index 14d8fd9..7c74cd3 100644 --- a/config.toml +++ b/config.toml @@ -51,7 +51,7 @@ archetypeDir = "../kollegen-posts/archetypes" # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" background_color_class = "bg-dark-blue" featured_image = "/images/070830-schatten.jpg" - recent_posts_number = 15 + recent_posts_number = 999 [[menu.main]] name = "Über" diff --git a/layouts/eventtypes/term.html b/layouts/eventtypes/term.html index 5a8881a..e54af48 100644 --- a/layouts/eventtypes/term.html +++ b/layouts/eventtypes/term.html @@ -27,6 +27,7 @@ {{ range .Pages }}
{{ partial "summary.html" . }} +
{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 8e80053..9c36290 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -86,7 +86,7 @@ {{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}} {{ with .Site.GetPage "section" $section_name }}

- {{ $.Param "recent_copy" | default (i18n "recentTitle" .) }} + Posts

{{ end }} diff --git a/layouts/partials/summary-with-image.html b/layouts/partials/summary-with-image.html index a61fea8..eea3a2e 100644 --- a/layouts/partials/summary-with-image.html +++ b/layouts/partials/summary-with-image.html @@ -18,7 +18,7 @@ {{ if $image_link }}
- image from {{ .Title }} + image from {{ .Title }}
{{ end }} diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html index 8fc0f39..12d05e5 100644 --- a/layouts/partials/summary.html +++ b/layouts/partials/summary.html @@ -1,4 +1,10 @@ -
+{{ $image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }} +{{ $image_link := ""}} +{{ with $image }} + {{ $image_link = $image.Permalink }} +{{ end }} + +
{{ if .Date }}
@@ -12,12 +18,24 @@
{{ end }} -

- - {{ .Title }} - -

-