Skip to content

Commit

Permalink
Add comment on using TOC
Browse files Browse the repository at this point in the history
Ref #42
  • Loading branch information
budparr committed Apr 9, 2018
1 parent c0adbe2 commit 1b62e7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layouts/partials/menu-contextual.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{/*
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 -}}
<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>
Expand All @@ -7,7 +12,7 @@

{{/*
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 }}
Expand Down

0 comments on commit 1b62e7b

Please sign in to comment.