Lego2012
6/12/2017 - 7:34 PM

terms.html Example

terms.html Example

{{ define "main" }}
        {{ $data := .Data }}
        <article>
            <div>
                {{ .Content }}
            </div>
        </article>
        <div>
            <section>
                {{ range $key, $value := .Data.Terms }}
                        <h2>
                            <a href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">
                                {{ $.Data.Singular | humanize }}: {{ $key }}
                            </a>
                        </h2>
                    {{ range $value.Pages }}
                        {{ partial "summary" . }}
                    {{ end }}
                {{ end }}
            </section>
        </div>
{{ end }}