Add an unlisted example page with every prose element
Built with list = 'never' so it stays out of the homepage, RSS and sitemap; a per-page noindex param keeps it out of search engines.
2bb3794 parent: d59cce3 added
blog/content/example.md +126 -0 | new file mode 100644 | ||
| @@ -0,0 +1,126 @@ | ||
| 1 | ++++ | |
| 2 | +title = 'Example' | |
| 3 | +date = '2026-01-01T09:00:00+01:00' | |
| 4 | +description = 'Every element the prose styles support, on one page.' | |
| 5 | +summary = ' ' | |
| 6 | + | |
| 7 | +# Reachable by URL only. list = 'never' drops the page from every collection | |
| 8 | +# (.Pages, .RegularPages): homepage, section lists, RSS and sitemap | |
| 9 | +# never see it; render = 'always' still builds it. | |
| 10 | +[build] | |
| 11 | +list = 'never' | |
| 12 | +render = 'always' | |
| 13 | + | |
| 14 | +[params] | |
| 15 | +noindex = true | |
| 16 | ++++ | |
| 17 | + | |
| 18 | +A paragraph with **bold**, *italic*, ***both***, ~~strikethrough~~, `inline code`, a [link](https://mykiwi.blog), <kbd>Ctrl</kbd> + <kbd>K</kbd>, H<sub>2</sub>O, x<sup>2</sup>, and a footnote.[^1] | |
| 19 | + | |
| 20 | +## Headings | |
| 21 | + | |
| 22 | +### Third level | |
| 23 | + | |
| 24 | +#### Fourth level | |
| 25 | + | |
| 26 | +##### Fifth level | |
| 27 | + | |
| 28 | +###### Sixth level | |
| 29 | + | |
| 30 | +## Lists | |
| 31 | + | |
| 32 | +- Unordered | |
| 33 | + - Nested | |
| 34 | + - Deeper | |
| 35 | +- Another | |
| 36 | + | |
| 37 | +1. Ordered | |
| 38 | + 1. Nested | |
| 39 | +2. Second | |
| 40 | + | |
| 41 | +- [x] Done task | |
| 42 | +- [ ] Open task | |
| 43 | + | |
| 44 | +Term | |
| 45 | +: Definition list, if the renderer supports it. | |
| 46 | + | |
| 47 | +## Quote | |
| 48 | + | |
| 49 | +> A blockquote with *emphasis*. | |
| 50 | +> | |
| 51 | +> — Someone | |
| 52 | + | |
| 53 | +## Code | |
| 54 | + | |
| 55 | +```go | |
| 56 | +package main | |
| 57 | + | |
| 58 | +import "fmt" | |
| 59 | + | |
| 60 | +func main() { | |
| 61 | + fmt.Println("Hello, world") | |
| 62 | +} | |
| 63 | +``` | |
| 64 | + | |
| 65 | +```yaml | |
| 66 | +title: Example | |
| 67 | +list: [a, b, c] | |
| 68 | +``` | |
| 69 | + | |
| 70 | +```diff | |
| 71 | +- old | |
| 72 | ++ new | |
| 73 | +``` | |
| 74 | + | |
| 75 | +``` | |
| 76 | +no language | |
| 77 | +``` | |
| 78 | + | |
| 79 | + indented code block | |
| 80 | + | |
| 81 | +## Table | |
| 82 | + | |
| 83 | +| Left | Center | Right | | |
| 84 | +|:-----|:------:|------:| | |
| 85 | +| a | b | c | | |
| 86 | +| long cell content | `code` | 1234 | | |
| 87 | + | |
| 88 | +## Image | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | +## Rule | |
| 93 | + | |
| 94 | +--- | |
| 95 | + | |
| 96 | +## Alerts | |
| 97 | + | |
| 98 | +{{< alert note >}} | |
| 99 | +A **note** alert. | |
| 100 | +{{< /alert >}} | |
| 101 | + | |
| 102 | +{{< alert warning >}} | |
| 103 | +A warning alert. | |
| 104 | +{{< /alert >}} | |
| 105 | + | |
| 106 | +## Details | |
| 107 | + | |
| 108 | +<details> | |
| 109 | +<summary>Click to expand</summary> | |
| 110 | + | |
| 111 | +Hidden content, with `code` and a list: | |
| 112 | + | |
| 113 | +- one | |
| 114 | +- two | |
| 115 | + | |
| 116 | +</details> | |
| 117 | + | |
| 118 | +## Misc | |
| 119 | + | |
| 120 | +<mark>Highlighted</mark>, <abbr title="HyperText Markup Language">HTML</abbr>, <del>deleted</del>, <ins>inserted</ins>. | |
| 121 | + | |
| 122 | +A very long unbroken string to test overflow: `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | |
| 123 | + | |
| 124 | +日本語のテキスト、émojis 🎉, and “smart quotes” — dashes – and… ellipses. | |
| 125 | + | |
| 126 | +[^1]: The footnote text, with a [link](https://mykiwi.blog). | |
| new file mode 100644 | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | ++++ | ||
| 2 | +title = 'Example' | ||
| 3 | +date = '2026-01-01T09:00:00+01:00' | ||
| 4 | +description = 'Every element the prose styles support, on one page.' | ||
| 5 | +summary = ' ' | ||
| 6 | + | ||
| 7 | +# Reachable by URL only. list = 'never' drops the page from every collection | ||
| 8 | +# (.Pages, .RegularPages): homepage, section lists, RSS and sitemap | ||
| 9 | +# never see it; render = 'always' still builds it. | ||
| 10 | +[build] | ||
| 11 | +list = 'never' | ||
| 12 | +render = 'always' | ||
| 13 | + | ||
| 14 | +[params] | ||
| 15 | +noindex = true | ||
| 16 | ++++ | ||
| 17 | + | ||
| 18 | +A paragraph with **bold**, *italic*, ***both***, ~~strikethrough~~, `inline code`, a [link](https://mykiwi.blog), <kbd>Ctrl</kbd> + <kbd>K</kbd>, H<sub>2</sub>O, x<sup>2</sup>, and a footnote.[^1] | ||
| 19 | + | ||
| 20 | +## Headings | ||
| 21 | + | ||
| 22 | +### Third level | ||
| 23 | + | ||
| 24 | +#### Fourth level | ||
| 25 | + | ||
| 26 | +##### Fifth level | ||
| 27 | + | ||
| 28 | +###### Sixth level | ||
| 29 | + | ||
| 30 | +## Lists | ||
| 31 | + | ||
| 32 | +- Unordered | ||
| 33 | + - Nested | ||
| 34 | + - Deeper | ||
| 35 | +- Another | ||
| 36 | + | ||
| 37 | +1. Ordered | ||
| 38 | + 1. Nested | ||
| 39 | +2. Second | ||
| 40 | + | ||
| 41 | +- [x] Done task | ||
| 42 | +- [ ] Open task | ||
| 43 | + | ||
| 44 | +Term | ||
| 45 | +: Definition list, if the renderer supports it. | ||
| 46 | + | ||
| 47 | +## Quote | ||
| 48 | + | ||
| 49 | +> A blockquote with *emphasis*. | ||
| 50 | +> | ||
| 51 | +> — Someone | ||
| 52 | + | ||
| 53 | +## Code | ||
| 54 | + | ||
| 55 | +```go | ||
| 56 | +package main | ||
| 57 | + | ||
| 58 | +import "fmt" | ||
| 59 | + | ||
| 60 | +func main() { | ||
| 61 | + fmt.Println("Hello, world") | ||
| 62 | +} | ||
| 63 | +``` | ||
| 64 | + | ||
| 65 | +```yaml | ||
| 66 | +title: Example | ||
| 67 | +list: [a, b, c] | ||
| 68 | +``` | ||
| 69 | + | ||
| 70 | +```diff | ||
| 71 | +- old | ||
| 72 | ++ new | ||
| 73 | +``` | ||
| 74 | + | ||
| 75 | +``` | ||
| 76 | +no language | ||
| 77 | +``` | ||
| 78 | + | ||
| 79 | + indented code block | ||
| 80 | + | ||
| 81 | +## Table | ||
| 82 | + | ||
| 83 | +| Left | Center | Right | | ||
| 84 | +|:-----|:------:|------:| | ||
| 85 | +| a | b | c | | ||
| 86 | +| long cell content | `code` | 1234 | | ||
| 87 | + | ||
| 88 | +## Image | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + | ||
| 92 | +## Rule | ||
| 93 | + | ||
| 94 | +--- | ||
| 95 | + | ||
| 96 | +## Alerts | ||
| 97 | + | ||
| 98 | +{{< alert note >}} | ||
| 99 | +A **note** alert. | ||
| 100 | +{{< /alert >}} | ||
| 101 | + | ||
| 102 | +{{< alert warning >}} | ||
| 103 | +A warning alert. | ||
| 104 | +{{< /alert >}} | ||
| 105 | + | ||
| 106 | +## Details | ||
| 107 | + | ||
| 108 | +<details> | ||
| 109 | +<summary>Click to expand</summary> | ||
| 110 | + | ||
| 111 | +Hidden content, with `code` and a list: | ||
| 112 | + | ||
| 113 | +- one | ||
| 114 | +- two | ||
| 115 | + | ||
| 116 | +</details> | ||
| 117 | + | ||
| 118 | +## Misc | ||
| 119 | + | ||
| 120 | +<mark>Highlighted</mark>, <abbr title="HyperText Markup Language">HTML</abbr>, <del>deleted</del>, <ins>inserted</ins>. | ||
| 121 | + | ||
| 122 | +A very long unbroken string to test overflow: `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | ||
| 123 | + | ||
| 124 | +日本語のテキスト、émojis 🎉, and “smart quotes” — dashes – and… ellipses. | ||
| 125 | + | ||
| 126 | +[^1]: The footnote text, with a [link](https://mykiwi.blog). | ||
modified
blog/layouts/_default/baseof.html +1 -1 | @@ -128,7 +128,7 @@ | ||
| 128 | 128 | }); |
| 129 | 129 | })(); |
| 130 | 130 | </script> |
| 131 | - {{ if site.Params.noindex }} | |
| 131 | + {{ if or site.Params.noindex .Params.noindex }} | |
| 132 | 132 | <meta name="robots" content="noindex, nofollow"> |
| 133 | 133 | {{ end }} |
| 134 | 134 | |
| @@ -128,7 +128,7 @@ | |||
| 128 | }); | 128 | }); |
| 129 | })(); | 129 | })(); |
| 130 | </script> | 130 | </script> |
| 131 | - {{ if site.Params.noindex }} | 131 | + {{ if or site.Params.noindex .Params.noindex }} |
| 132 | <meta name="robots" content="noindex, nofollow"> | 132 | <meta name="robots" content="noindex, nofollow"> |
| 133 | {{ end }} | 133 | {{ end }} |
| 134 | 134 | ||