mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-09-19 12:23:43 +00:00
66249819 Replace .Data.Pages with .Pages 32f73caa Set permission of non-executable files to 0644 69018d07 Update README.md 3b9bc8ee Update README.md fa34f071 Update eSolia link 89573498 Fix the "edit this page" link d0704efb Use lang.Merge to "fill in the gaps" for untranslated pages 771ae9fc Merge commit '650fac3a4e7d256f4505402ab44cfc3c804b8dea' 177aab5b Fix "reflect: Zero(nil)" error in showcase git-subtree-dir: themes/gohugoioTheme git-subtree-split: 662498195c8ca49e235ced10ae899f1a82804021
50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
{{/* {{ define "header" }}{{ partial "page-header" . }}{{ end }} */}}
|
|
{{ define "main" }}
|
|
{{ $section_to_display := .Pages }}
|
|
<div class="w-100 ph4 pb5 pb6-ns pt1 pt3-ns">
|
|
|
|
<div class="flex">
|
|
<div class="dn db-l w-20">
|
|
{{ partial "nav-links-docs.html" . }}
|
|
</div>
|
|
|
|
<div class="w-100 w-80-l ph0 ph4-l">
|
|
<article class="w-100 nested-copy-line-height nested-links nested-img">
|
|
<h1 class="primary-color-dark f2">
|
|
{{ .Title }}
|
|
</h1>
|
|
</article>
|
|
<div class="pa3 pa4-ns w-100 v-top column-count-3-l column-gap-1-l">
|
|
{{ range $key, $value := .Data.Terms }}
|
|
<div class="break-inside-avoid-l nested-copy-line-height mb5">
|
|
<h2 class="f3">
|
|
<a href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}" class="link black hover-blue">
|
|
{{ $key }} <span class="f6 gray"> ↗</span>
|
|
</a>
|
|
</h2>
|
|
{{ range $value.Pages }}
|
|
<h3>
|
|
<a href="{{ .Permalink }}" class="link blue">
|
|
{{ .Title }}
|
|
</a>
|
|
</h3>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
{{ end }}
|