Support subtitle param as subtitle if description not defined

Note: `or` returns the first non-empty argument or the last argument
This commit is contained in:
romainx 2020-10-09 21:20:32 +02:00
parent 4e646fe15e
commit b2e76d6a90

View File

@ -22,7 +22,7 @@
</a> </a>
</h2> </h2>
{{ with .Params.description }} {{ with or .Params.description .Params.subtitle }}
<h3 class="article-subtitle"> <h3 class="article-subtitle">
{{ . }} {{ . }}
</h3> </h3>