Merge remote-tracking branch 'codex/master' into src
* codex/master: docs: update .all-contributorsrc [skip ci] docs: update README.md [skip ci] docs: update .all-contributorsrc [skip ci] docs: update README.md [skip ci] docs: Document showPageTitleInTOC in README.md and config.toml Allow for omitting date on post
This commit is contained in:
commit
50d5aa6743
|
@ -141,6 +141,15 @@
|
|||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "jdl031",
|
||||
"name": "James Lloyd",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/1720477?v=4",
|
||||
"profile": "https://github.com/jdl031",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7,
|
||||
|
|
|
@ -132,6 +132,19 @@ toc: false
|
|||
|
||||
The frontmatter above is the default for a new post, but all values can be changed.
|
||||
|
||||
### Configuring Table of Contents in blog posts
|
||||
|
||||
To display post title in Table of Contents in blog posts, set `showPageTitleInTOC`
|
||||
to `true` in the `[params]` section of `config.toml`.
|
||||
|
||||
```toml
|
||||
# config.toml
|
||||
|
||||
[params]
|
||||
# ...
|
||||
showPageTitleInTOC = true
|
||||
```
|
||||
|
||||
### Adding a new section menu
|
||||
|
||||
In your site's `config.toml`, add a new menu definition for say, "photos":
|
||||
|
@ -197,7 +210,7 @@ Check out the [CONTRIBUTORS.md file](https://github.com/jakewies/hugo-theme-code
|
|||
## Contributors ✨
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||
[![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-)
|
||||
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||
|
||||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
||||
|
@ -224,6 +237,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|||
<td align="center"><a href="https://github.com/SanchithHegde"><img src="https://avatars2.githubusercontent.com/u/22217505?v=4" width="100px;" alt=""/><br /><sub><b>Sanchith Hegde</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=SanchithHegde" title="Code">💻</a> <a href="https://github.com/jakewies/hugo-theme-codex/commits?author=SanchithHegde" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://soeren.codes"><img src="https://avatars1.githubusercontent.com/u/5760400?v=4" width="100px;" alt=""/><br /><sub><b>Sören Johanson</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=CER10TY" title="Code">💻</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://github.com/jdl031"><img src="https://avatars3.githubusercontent.com/u/1720477?v=4" width="100px;" alt=""/><br /><sub><b>James Lloyd</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=jdl031" title="Code">💻</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- markdownlint-enable -->
|
||||
|
|
|
@ -41,6 +41,9 @@ copyright = "© {year}"
|
|||
# twitterSite = "@<your handle>"
|
||||
# twitterAuthor = "@<your handle>"
|
||||
|
||||
# Set to true to display page title in table of contents in blog posts.
|
||||
showPageTitleInTOC = false
|
||||
|
||||
# This disables Hugo's default syntax highlighting in favor
|
||||
# of prismjs. If you wish to use Hugo's default syntax highlighting
|
||||
# over prismjs, remove this. You will also need to remove the prismjs
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
<div class="post">
|
||||
<header class="post__header">
|
||||
<h1 id="post__title">{{.Title}}</h1>
|
||||
<time datetime="{{ .Date }}" class="post__date"
|
||||
>{{ .Date.Format $dateFormat }}</time>
|
||||
{{ if .Date }}<time datetime="{{ .Date }}" class="post__date">{{ .Date.Format $dateFormat }}</time> {{ end }}
|
||||
</header>
|
||||
<article class="post__content">
|
||||
{{ partial "anchored-headings.html" .Content }}
|
||||
|
|
Loading…
Reference in New Issue