From 5e66a94faba1e9f12a8c7938b0fc6ef56f496b9e Mon Sep 17 00:00:00 2001 From: Thies Lennart Alff Date: Mon, 8 Aug 2022 10:34:59 +0200 Subject: [PATCH] added posts layout to recipes --- layouts/recipes/li.html | 4 +++ layouts/recipes/list.html | 20 ++++++++++++++ layouts/recipes/single.html | 52 +++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 layouts/recipes/li.html create mode 100644 layouts/recipes/list.html create mode 100644 layouts/recipes/single.html diff --git a/layouts/recipes/li.html b/layouts/recipes/li.html new file mode 100644 index 0000000..9d8a659 --- /dev/null +++ b/layouts/recipes/li.html @@ -0,0 +1,4 @@ +
  • + {{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }} + {{ .Title }} +
  • diff --git a/layouts/recipes/list.html b/layouts/recipes/list.html new file mode 100644 index 0000000..231b182 --- /dev/null +++ b/layouts/recipes/list.html @@ -0,0 +1,20 @@ +{{ define "title" }} + {{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} +
    +

    + + {{ title (i18n (lower .Title)) | default .Title }} + +

    + {{ .Content }} + + + {{ partial "pagination.html" . }} +
    +{{ end }} diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html new file mode 100644 index 0000000..6c7509e --- /dev/null +++ b/layouts/recipes/single.html @@ -0,0 +1,52 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} +
    +
    +
    +
    +

    + + {{ .Title }} + +

    +
    + +
    + +
    + {{ if .Params.featuredImage }} + Featured image + {{ end }} + {{ .Content }} +
    + + + +
    + + {{ partial "posts/math.html" . }} +
    +{{ end }}