mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

budparr
09.39.2018 c0adbe2422f7c03aaccdc4e5591c622e487a5c8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{{- 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>
      {{ .TableOfContents }}
  </div>
{{- end -}}
 
{{/*
  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/ 
*/}}
 
{{ $related := .Site.RegularPages.Related . | first 15 }}
 
{{ with $related }}
  <div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links">
    <p class="f5 b mb3">Related</p>
    <ul class="pa0 list">
       {{ range . }}
         <li  class="mb2">
          <a href="{{ .RelPermalink }}">
            {{- .Title -}}
          </a>
        </li>
        {{ end }}
    </ul>
</div>
{{ end }}