瀏覽代碼

Add comment on using TOC

Ref #42
enhancements
budparr 7 年之前
父節點
當前提交
1b62e7bf1b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      layouts/partials/menu-contextual.html

+ 6
- 1
layouts/partials/menu-contextual.html 查看文件

@@ -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>
@@ -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 }}

Loading…
取消
儲存