Browse Source

Add comment on using TOC

Ref #42
enhancements
budparr 6 years ago
parent
commit
1b62e7bf1b
No account linked to committer's email address
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      layouts/partials/menu-contextual.html

+ 6
- 1
layouts/partials/menu-contextual.html View File

{{/*
Use Hugo's native Table of contents feature. You must set `toc: true` in your parameters for this to show.
https://gohugo.io/content-management/toc/
*/}}

{{- if .Params.toc -}} {{- if .Params.toc -}}
<div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links"> <div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
<p class="f5 b mb3">What's in this {{ humanize .Type }}</p> <p class="f5 b mb3">What's in this {{ humanize .Type }}</p>


{{/* {{/*
Use Hugo's native related content feature to pull in content that may have similar parameters, like tags. etc. Use Hugo's native related content feature to pull in content that may have similar parameters, like tags. etc.
https://gohugo.io/content-management/related/
https://gohugo.io/content-management/related/
*/}} */}}


{{ $related := .Site.RegularPages.Related . | first 15 }} {{ $related := .Site.RegularPages.Related . | first 15 }}

Loading…
Cancel
Save