Closed jcoffa closed 12 months ago
This would allow links and line-breaks to be used:
[params] description = 'A portfolio for <a href="https://www.my-company.com">work</a><br>A tech blog for fun'
Which would render like:
I believe the change could be small as well; the description can be piped into the safeHTML function inside layouts/sidebar/title.html like so:
safeHTML
layouts/sidebar/title.html
<div class="sidebar-about"> <!-- ... --> <p class="lead"> {{ with .Site.Params.description }}{{. | safeHTML}}{{end}} <!-- ^^^^^^^^^^ new change --> </p> </div>
Thank you, @jcoffa! Great suggestion, and an easy copy/paste solution.
This would allow links and line-breaks to be used:
Which would render like:
I believe the change could be small as well; the description can be piped into the
safeHTML
function insidelayouts/sidebar/title.html
like so: