mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
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:
parent
4e646fe15e
commit
b2e76d6a90
@ -22,7 +22,7 @@
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
{{ with .Params.description }}
|
||||
{{ with or .Params.description .Params.subtitle }}
|
||||
<h3 class="article-subtitle">
|
||||
{{ . }}
|
||||
</h3>
|
||||
|
Loading…
Reference in New Issue
Block a user