From 2dd6ff7b0aaaf7469973c8e88fd6b814428120af Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 8 Sep 2022 23:36:02 +0800 Subject: [PATCH] add newsletter example --- exampleSite/config.default.yml | 3 +++ .../content/newsletter/001-hello-world/index.md | 7 +++++++ exampleSite/content/newsletter/_index.md | 13 +++++++++++++ exampleSite/content/newsletter/archives.md | 5 +++++ 4 files changed, 28 insertions(+) create mode 100644 exampleSite/content/newsletter/001-hello-world/index.md create mode 100644 exampleSite/content/newsletter/_index.md create mode 100644 exampleSite/content/newsletter/archives.md diff --git a/exampleSite/config.default.yml b/exampleSite/config.default.yml index 567ed4a..38e30d1 100644 --- a/exampleSite/config.default.yml +++ b/exampleSite/config.default.yml @@ -130,6 +130,9 @@ languages: - name: Docs url: /docs/ weight: 1 + - name: Newsletter + url: /newsletter/ + weight: 1 - name: Tags url: /tags/ weight: 4 diff --git a/exampleSite/content/newsletter/001-hello-world/index.md b/exampleSite/content/newsletter/001-hello-world/index.md new file mode 100644 index 0000000..810650d --- /dev/null +++ b/exampleSite/content/newsletter/001-hello-world/index.md @@ -0,0 +1,7 @@ +--- +title: "My Newsletter: Hello World" +date: 2022-09-07 +issueno: "001" +--- + +Welcome to PaperModX. diff --git a/exampleSite/content/newsletter/_index.md b/exampleSite/content/newsletter/_index.md new file mode 100644 index 0000000..b67aa37 --- /dev/null +++ b/exampleSite/content/newsletter/_index.md @@ -0,0 +1,13 @@ +--- +title: My Newsletter +subtitle: What do you want to write? +description: | + This is the template for creating a newsletter in PaperModX. +type: newsletter +cascade: + - _target: + kind: page + type: newsletter + titlePrefix: "My Newsletter: " + newsletterName: "My Newsletter" +--- diff --git a/exampleSite/content/newsletter/archives.md b/exampleSite/content/newsletter/archives.md new file mode 100644 index 0000000..3bb09e4 --- /dev/null +++ b/exampleSite/content/newsletter/archives.md @@ -0,0 +1,5 @@ +--- +title: "My Newsletter Archives" +layout: archives +hidden: true +---