Merge branch 'master' into PR-rss
This commit is contained in:
commit
ee2a55ad0b
2 changed files with 8 additions and 0 deletions
|
@ -107,6 +107,10 @@ paginate = 5
|
||||||
# Show reading time in minutes for posts
|
# Show reading time in minutes for posts
|
||||||
showReadingTime = false
|
showReadingTime = false
|
||||||
|
|
||||||
|
# Show table of contents at the top of your posts (defaults to false)
|
||||||
|
# Alternatively, add this param to post front matter for specific posts
|
||||||
|
# toc = true
|
||||||
|
|
||||||
# Show full page content in RSS feed items
|
# Show full page content in RSS feed items
|
||||||
#(default is Description or Summary metadata in the front matter)
|
#(default is Description or Summary metadata in the front matter)
|
||||||
# rssFullText = true
|
# rssFullText = true
|
||||||
|
|
|
@ -40,6 +40,10 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
|
{{ if or .Params.Toc $.Site.Params.Toc }}
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
|
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
|
||||||
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
{{ if eq .Type $.Site.Params.contentTypeName }}
|
||||||
|
|
Loading…
Reference in a new issue