Skip to content

Commit 81795f3

Browse files
authored
Merge pull request #324 from Vimux/add-post-meta-info-to-docs
Add post meta information to docs
2 parents ec8a1a0 + 0abcf01 commit 81795f3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎exampleSite/content/docs/customization.md

+18
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,24 @@ Mainroad uses `#e22d30` as a default highlight color, but you may choose and set
6262
highlightColor = "#e22d30"
6363
```
6464

65+
### Post meta
66+
67+
Post meta is a feature that refers to including additional meta information (such as author name, categories, date,
68+
translations, etc.) on pages. It can be enabled via config using the `post_meta` key with a list of meta field names as
69+
value. Order matters here: rearrange fields if you want to.
70+
71+
```toml
72+
[Params]
73+
post_meta = ["author", "date", "categories", "translations"]
74+
```
75+
76+
Full list of available default post meta fields:
77+
78+
* `author`, `categories`, `date`, `translations`
79+
80+
In addition to the default meta fields, you can add your own by placing a custom partial under
81+
`layouts/partials/post_meta/<name>.html`.
82+
6583
### Thumbnail visibility
6684

6785
By default, a thumbnail image has shown for a list and single pages simultaneously. In some cases, you may want to show

0 commit comments

Comments
 (0)