diff --git a/config.toml b/config.toml index 7c74cd3..14d8fd9 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 = 999 + recent_posts_number = 15 [[menu.main]] name = "Über" diff --git a/layouts/eventtypes/term.html b/layouts/eventtypes/term.html index e54af48..2434dff 100644 --- a/layouts/eventtypes/term.html +++ b/layouts/eventtypes/term.html @@ -25,8 +25,8 @@
{{ range .Pages }} -
- {{ partial "summary.html" . }} +
+ {{ partial "summary-with-thumbnail.html" . }}
{{ end }} diff --git a/layouts/partials/summary-with-thumbnail.html b/layouts/partials/summary-with-thumbnail.html new file mode 100644 index 0000000..a20c220 --- /dev/null +++ b/layouts/partials/summary-with-thumbnail.html @@ -0,0 +1,38 @@ +{{ $image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }} +{{ $image_link := ""}} +{{ with $image }} + {{ $image_link = $image.Permalink }} +{{ end }} + +
+
+
+
+
+ {{- .Params.Sports -}} +
+ {{ partial "formatted-date.html" . }} +
+
+
+ {{ if $image_link }} +
+ + image from {{ .Title }} + +
+ {{ end }} + + +
+
+