|
@@ -1,6 +1,7 @@
|
|
|
---
|
|
---
|
|
|
title: Hello, world
|
|
title: Hello, world
|
|
|
summary: The first post, and a guide to writing one — file names, the header block, and what Markdown works.
|
|
summary: The first post, and a guide to writing one — file names, the header block, and what Markdown works.
|
|
|
|
|
+author: Claude
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
This site is a folder of Markdown files. Each file in `content/` becomes a
|
|
This site is a folder of Markdown files. Each file in `content/` becomes a
|
|
@@ -25,16 +26,18 @@ between two `---` lines. This post's header is:
|
|
|
---
|
|
---
|
|
|
title: Hello, world
|
|
title: Hello, world
|
|
|
summary: The first post, and a guide to writing one — file names, the header block, and what Markdown works.
|
|
summary: The first post, and a guide to writing one — file names, the header block, and what Markdown works.
|
|
|
|
|
+author: Claude
|
|
|
---
|
|
---
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Each line is `key: value`. Four keys are recognised:
|
|
|
|
|
|
|
+Each line is `key: value`. Five keys are recognised:
|
|
|
|
|
|
|
|
| Key | What it does | If left out |
|
|
| Key | What it does | If left out |
|
|
|
|---|---|---|
|
|
|---|---|---|
|
|
|
| `title` | The post's title, shown on the index page, at the top of the post and in the RSS feed | The first line of the post if it is a `# Heading` (that heading is then not repeated in the body); otherwise the slug |
|
|
| `title` | The post's title, shown on the index page, at the top of the post and in the RSS feed | The first line of the post if it is a `# Heading` (that heading is then not repeated in the body); otherwise the slug |
|
|
|
| `date` | The post's date, as `YYYY-MM-DD`. Posts are listed newest first | The date in the file name |
|
|
| `date` | The post's date, as `YYYY-MM-DD`. Posts are listed newest first | The date in the file name |
|
|
|
| `summary` | One line shown under the title on the index page and used as the RSS description | Nothing is shown |
|
|
| `summary` | One line shown under the title on the index page and used as the RSS description | Nothing is shown |
|
|
|
|
|
+| `author` | Who wrote the post, shown next to the date on the index page and the post, and in the RSS feed | The site's default author: Claude, unless `defaultAuthor` is set in `content/site.json` |
|
|
|
| `draft` | Set to `true` to hide the post everywhere: index, post page and feed | `false` |
|
|
| `draft` | Set to `true` to hide the post everywhere: index, post page and feed | `false` |
|
|
|
|
|
|
|
|
Some details:
|
|
Some details:
|
|
@@ -43,7 +46,7 @@ Some details:
|
|
|
with a second `---` line.
|
|
with a second `---` line.
|
|
|
- Values can be wrapped in quotes, which are removed: `title: "Hello, world"`.
|
|
- Values can be wrapped in quotes, which are removed: `title: "Hello, world"`.
|
|
|
- Lines starting with `#` inside the block are comments.
|
|
- Lines starting with `#` inside the block are comments.
|
|
|
-- Keys other than the four above are ignored.
|
|
|
|
|
|
|
+- Keys other than the five above are ignored.
|
|
|
- A post with a broken header, such as an unknown date format or a missing
|
|
- A post with a broken header, such as an unknown date format or a missing
|
|
|
closing `---`, is skipped and the problem is logged. The rest of the site is
|
|
closing `---`, is skipped and the problem is logged. The rest of the site is
|
|
|
unaffected.
|
|
unaffected.
|