Add option to show content in terms.html

This commit is contained in:
Thunder 2023-04-26 23:50:25 +08:00 committed by GitHub
parent 9726b8d806
commit 74e7e40de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,11 @@
{{ define "main" }} {{ define "main" }}
<div class="terms"> <div class="terms">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ with .Content }}
<div class="index-content">
{{ . }}
</div>
{{ end }}
<ul> <ul>
{{ $type := .Type }} {{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }} {{ range $key, $value := .Data.Terms.Alphabetical }}