page_summary.html: Make rendering the summary optional
Pages can control whether summaries are rendered for them in lists with the rendersSummary param.
This commit is contained in:
parent
b50f4c6a92
commit
db3f1f40fa
1 changed files with 5 additions and 3 deletions
|
@ -5,9 +5,11 @@
|
||||||
<p class="page-summary__subtitle">{{ . }}</p>
|
<p class="page-summary__subtitle">{{ . }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
<div class="page-summary__content">
|
{{ if (.Params.rendersSummary | default true) -}}
|
||||||
{{ .Summary }}
|
<div class="page-summary__content">
|
||||||
</div>
|
{{ .Summary }}
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
<footer class="page-summary__footer">
|
<footer class="page-summary__footer">
|
||||||
<a href="{{ .RelPermalink }}">More →</a>
|
<a href="{{ .RelPermalink }}">More →</a>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue