From 79e4f94a6c74b190d6f3f09c45b70bc7acb0e24a Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 6 Jul 2025 09:37:09 +1000 Subject: [PATCH] Added limit option and display option --- .gitignore | 1 + layouts/partials/_postlist/post-content.html | 18 +++++++++++ layouts/shortcodes/postlist.html | 32 ++++++++++++++------ 3 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 .gitignore create mode 100644 layouts/partials/_postlist/post-content.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/layouts/partials/_postlist/post-content.html b/layouts/partials/_postlist/post-content.html new file mode 100644 index 0000000..e7a702e --- /dev/null +++ b/layouts/partials/_postlist/post-content.html @@ -0,0 +1,18 @@ +
+{{ if .Title }} +

{{ .Title }}

+ {{ if .Params.custom_summary }} +
+

{{ .Summary | safeHTML }}

+

+ {{ else }} +
+ {{ .Content }} +
+ {{ end }} +{{ else }} +
+ {{ .Content }} +
+{{ end }} +
\ No newline at end of file diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index ad372b1..d191a31 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -18,14 +18,26 @@ {{- end -}} {{- end -}} - \ No newline at end of file + +{{- end -}} \ No newline at end of file