diff options
author | Baron Schwartz <xaprb@users.noreply.github.com> | 2019-01-22 23:24:15 +0300 |
---|---|---|
committer | Baron Schwartz <xaprb@users.noreply.github.com> | 2019-01-22 23:24:15 +0300 |
commit | c1cefaae764696ee88731f367601c567dd073cf0 (patch) | |
tree | 452b097a28d4eedb39435ebe1b6615f862c7f5d3 | |
parent | 6ca31937799b46b507201d952ed922c0db42c6f7 (diff) |
move search and mailchimp into _index.md, out of pagination; fix #56
-rw-r--r-- | exampleSite/content/mailchimp-features.md | 3 | ||||
-rw-r--r-- | exampleSite/content/mailchimp/_index.md (renamed from exampleSite/content/mailchimp.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/search-page.md | 10 | ||||
-rw-r--r-- | exampleSite/content/search/_index.md (renamed from exampleSite/content/search.md) | 1 |
4 files changed, 5 insertions, 9 deletions
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/_index.md index 4593e53..4593e53 100644 --- a/exampleSite/content/mailchimp.md +++ b/exampleSite/content/mailchimp/_index.md 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/_index.md index d4eaf2c..6874a90 100644 --- a/exampleSite/content/search.md +++ b/exampleSite/content/search/_index.md @@ -2,7 +2,6 @@ layout: search url: /search/ title: Search -skip: true classes: - feature-nosubtitle - feature-nohdr |