Skip to content

Commit

Permalink
docs: channels
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Nov 16, 2024
1 parent decc3dc commit decfe36
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/configuration/publication.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,44 @@ export default {

:::

## `channels`

A keyed collection of configuration properties for different channels, which can be used to organise posts within your publication. For example:

::: code-group

```json [JSON]
{
"publication": {
"channels": {
"posts": {
"name": "Posts"
},
"pages": {
"name": "Pages"
}
}
}
}
```

```js [JavaScript]
export default {
publication: {
channels: {
posts: {
name: "Posts"
},
pages: {
name: "Pages"
}
}
}
}
```

:::

## `enrichPostData`

A boolean to determine if data about URLs referenced in new posts is fetched and appended to a post’s properties.
Expand Down
1 change: 1 addition & 0 deletions docs/configuration/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following tokens are only available for post files:

| Token | Description |
| :---- | :---------- |
| `channel` | Channel provided in `mp-channel` property, else default channel UID. Token only available if `publication.channels` is configured. |
| `slug` | Slug provided in `mp-slug` property, else slugified `name` property, else a 5 character string, for example `ycf9o` |

### Media file tokens
Expand Down
2 changes: 2 additions & 0 deletions docs/specifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The following [scopes](https://indieweb.org/scope) are supported:
### Extensions

* [x] [Category](https://github.com/indieweb/micropub-extensions/issues/5) query
* [x] [Channel](https://github.com/indieweb/micropub-extensions/issues/40) query
* [x] [Post list](https://github.com/indieweb/micropub-extensions/issues/4) query
* [x] [Supported properties](https://github.com/indieweb/micropub-extensions/issues/33) query
* [x] [Supported queries](https://github.com/indieweb/micropub-extensions/issues/7) query
Expand All @@ -71,6 +72,7 @@ The following [scopes](https://indieweb.org/scope) are supported:

### Server commands

* [x] `mp-channel`: Channel(s) to use for a published post
* [x] `mp-photo-alt`: Alternative text to use for a published photo
* [x] `mp-slug`: URL slug to use in published post
* [x] `mp-syndicate-to`: Which syndication targets to syndicate post to
Expand Down

0 comments on commit decfe36

Please sign in to comment.