diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e43b0f9..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.DS_Store diff --git a/layouts/shortcodes/postlist.html b/layouts/shortcodes/postlist.html index b26e6e1..ad372b1 100644 --- a/layouts/shortcodes/postlist.html +++ b/layouts/shortcodes/postlist.html @@ -18,53 +18,14 @@ {{- end -}} {{- end -}} -{{- if (ne (.Get "limit") "") -}} - {{- $pgr = $pgr.Limit (int (.Get "limit")) -}} -{{- end -}} - -{{- if (eq (.Get "display") "content") -}} - {{ if templates.Exists "partials/_postlist/post-content-before.html" }} - {{ partial "_postlist/post-content-before.html" $pgr }} - {{ end }} -
- {{ range $pgr }} - {{ if templates.Exists "partials/_postlist/post-content.html" }} - {{ partial "_postlist/post-content.html" . }} - {{ else }} -
- {{ if .Title }} -

{{ .Title }}

- {{ if .Params.custom_summary }} -
-

{{ .Summary | safeHTML }}

-

- {{ else }} -
- {{ .Content }} -
- {{ end }} - {{ else }} -
- {{ .Content }} -
- {{ end }} -
- {{ end }} - {{ end }} -
- {{ if templates.Exists "partials/_postlist/post-content-after.html" }} - {{ partial "_postlist/post-content-after.html" $pgr }} - {{ end }} + \ No newline at end of file diff --git a/plugin.json b/plugin.json index f1dd227..168cf6f 100644 --- a/plugin.json +++ b/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.2.0", + "version": "1.1.0", "title": "Postlist", "description": "Shortcode for dynamically adding a list of posts", "includes": [