add 'doctypes' to default front matter; make sidebar more configurable
This commit is contained in:
parent
de41337b22
commit
1d88a13f8d
2 changed files with 11 additions and 2 deletions
|
@ -5,6 +5,7 @@ img:
|
|||
teaser: ""
|
||||
domains: []
|
||||
topics: []
|
||||
doctypes: []
|
||||
date: {{ .Date }}
|
||||
author:
|
||||
draft: false
|
||||
|
|
|
@ -12,6 +12,12 @@
|
|||
{{- else if .Site.Params.defaultImage -}}
|
||||
<img width="100%" class="mt-3"
|
||||
src="{{ .Site.BaseURL }}img/{{ .Site.Params.defaultImage }}" alt="dummy">
|
||||
{{- else if .Params.Summary -}}
|
||||
<div class="card mt-3">
|
||||
<div class="card-body bg-light">
|
||||
<h5 class="card-text">{{ .Params.Summary }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
{{- $site := .Site -}}
|
||||
|
@ -31,7 +37,8 @@
|
|||
</div>
|
||||
{{- end }}
|
||||
|
||||
{{ with .Params.Topics -}}
|
||||
{{ if not .Site.Params.hideRelatedArticles -}}
|
||||
{{- with .Params.Topics -}}
|
||||
<div class="card mt-3">
|
||||
<div class="card-header">
|
||||
<h4 class="card-text">{{ i18n "related" }}</h4>
|
||||
|
@ -53,9 +60,10 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{ if .Site.Params.showSectionArticles -}}
|
||||
{{ if not .Site.Params.hideSectionArticles -}}
|
||||
<div class="card mt-3">
|
||||
{{- $section := or .Section "posts" -}}
|
||||
<div class="card-header">
|
||||
|
|
Loading…
Add table
Reference in a new issue