From c1cefaae764696ee88731f367601c567dd073cf0 Mon Sep 17 00:00:00 2001 From: Baron Schwartz Date: Tue, 22 Jan 2019 15:24:15 -0500 Subject: move search and mailchimp into _index.md, out of pagination; fix #56 --- exampleSite/content/mailchimp-features.md | 3 +-- exampleSite/content/mailchimp.md | 6 ------ exampleSite/content/mailchimp/_index.md | 6 ++++++ exampleSite/content/search-page.md | 10 ++++------ exampleSite/content/search.md | 10 ---------- exampleSite/content/search/_index.md | 9 +++++++++ 6 files changed, 20 insertions(+), 24 deletions(-) delete mode 100644 exampleSite/content/mailchimp.md create mode 100644 exampleSite/content/mailchimp/_index.md delete mode 100644 exampleSite/content/search.md create mode 100644 exampleSite/content/search/_index.md diff --git a/exampleSite/content/mailchimp-features.md b/exampleSite/content/mailchimp-features.md index fa3fb16..4724d83 100644 --- a/exampleSite/content/mailchimp-features.md +++ b/exampleSite/content/mailchimp-features.md @@ -48,12 +48,11 @@ to override this. Simply add an excerpt in the `tldr` front matter property. To enable the RSS feed, you need to create a special `.md` file that won't appear as regular content, but will render an extra RSS feed file. Its content is ignored, and only its front matter is important. For example, you could -create it as `content/mailchimp.md` with the following contents, using YAML +create it as `content/mailchimp/_index.md` with the following contents, using YAML front matter: ```yaml --- -skip: true layout: mailchimp outputs: - rss diff --git a/exampleSite/content/mailchimp.md b/exampleSite/content/mailchimp.md deleted file mode 100644 index 4593e53..0000000 --- a/exampleSite/content/mailchimp.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -skip: true -layout: mailchimp -outputs: -- rss ---- diff --git a/exampleSite/content/mailchimp/_index.md b/exampleSite/content/mailchimp/_index.md new file mode 100644 index 0000000..4593e53 --- /dev/null +++ b/exampleSite/content/mailchimp/_index.md @@ -0,0 +1,6 @@ +--- +skip: true +layout: mailchimp +outputs: +- rss +--- diff --git a/exampleSite/content/search-page.md b/exampleSite/content/search-page.md index 45ee770..4af1552 100644 --- a/exampleSite/content/search-page.md +++ b/exampleSite/content/search-page.md @@ -19,7 +19,7 @@ To get Story's search to work, you need to take a couple of steps: 1. Create a piece of content with the URL you want. Story assumes you want `/search/` and adds an icon for that in the top menu automatically. So you - can simply create `content/search.md` and that should work. + can simply create `content/search/_index.md` and that should work. 2. Give this content the `search` layout, and a title. There doesn't need to be any Markdown content; the `search` layout ignores it. @@ -61,22 +61,20 @@ If you use TOML, use this: taxonomyTerm = ["HTML", "RSS"] ``` -There's more you can do. If you want to create a full-featured search page easily, just paste the following code into `content/search.md` +There's more you can do. If you want to create a full-featured search page easily, just paste the following code into `content/search/_index.md` ``` --- layout: search url: /search/ title: Search -skip: true classes: - feature-nosubtitle - feature-nohdr --- ``` -This illustrates a couple of additional features in Story: skipping the content -in lists and RSS feeds; displaying it without a subtitle; displaying it without -a header image. +This illustrates an additional layout feature in Story: +displaying it without a header image. Read next: [Story's mathematical equation typesetting features](/math/). diff --git a/exampleSite/content/search.md b/exampleSite/content/search.md deleted file mode 100644 index d4eaf2c..0000000 --- a/exampleSite/content/search.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: search -url: /search/ -title: Search -skip: true -classes: -- feature-nosubtitle -- feature-nohdr -- feature-depth ---- diff --git a/exampleSite/content/search/_index.md b/exampleSite/content/search/_index.md new file mode 100644 index 0000000..6874a90 --- /dev/null +++ b/exampleSite/content/search/_index.md @@ -0,0 +1,9 @@ +--- +layout: search +url: /search/ +title: Search +classes: +- feature-nosubtitle +- feature-nohdr +- feature-depth +--- -- cgit v1.2.3