From a62491c98c85ddb1c1acb0c53a3e050c6906a779 Mon Sep 17 00:00:00 2001 From: Baron Schwartz Date: Sat, 16 Feb 2019 20:44:03 -0500 Subject: render mailchimp html preview --- exampleSite/content/mailchimp/_index.md | 1 + layouts/_default/mailchimp.html | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 layouts/_default/mailchimp.html diff --git a/exampleSite/content/mailchimp/_index.md b/exampleSite/content/mailchimp/_index.md index 4593e53..1c53ad3 100644 --- a/exampleSite/content/mailchimp/_index.md +++ b/exampleSite/content/mailchimp/_index.md @@ -3,4 +3,5 @@ skip: true layout: mailchimp outputs: - rss +- html --- diff --git a/layouts/_default/mailchimp.html b/layouts/_default/mailchimp.html new file mode 100644 index 0000000..ca9e6b9 --- /dev/null +++ b/layouts/_default/mailchimp.html @@ -0,0 +1,38 @@ +{{ define "title" }}{{ .Section | title }} • {{ .Site.Title }}{{ end }} +{{ define "main" }} +
+
+ {{- $hdr := cond (or (in .Site.Params.classes "feature-nohdr") (in .Params.classes "feature-nohdr")) false true -}} + {{ range first 20 (where (where (where .Site.RegularPages "Section" "ne" "slides") ".Params.skip" "ne" "true") ".Date.Unix" "<" now.Unix) }} +
+ +
+ + {{ end }} +
+
+{{ end }} + +{{ define "pagination" }} +
+{{ end }} \ No newline at end of file -- cgit v1.2.3