You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be cool having the possibility to handle HTML href in homeSubtitle. This way you can add stuff <MY POSITION> at <COMPANY HREF>.
My take would be adding an extra parameter called homeSubtitleWithHtml and then in index.html replace
{{- with .Site.Params.homeSubtitle }}
<p>{{.}}</p>
{{- end }}
with
{{ if .Site.Params.homeSubtitleWithHtml }}
{{- with .Site.Params.homeSubtitleWithHtml }}
{{. | safeHTML }}
{{- end }}
{{else}}
{{- with .Site.Params.homeSubtitle }}
<p>{{.}}</p>
{{- end }}
{{ end }}
Not sure if that's the best way to achieve this. If you like the approach, I can open a PR this way you can comment.
BTW, amazing job! It's really useful! Thx a lot! 👏
The text was updated successfully, but these errors were encountered:
fnobilia
changed the title
Support html in homeSubtitle
Support html in homeSubtitle in index.html
Aug 6, 2020
It would be cool having the possibility to handle HTML href in
homeSubtitle
. This way you can add stuff<MY POSITION> at <COMPANY HREF>
.My take would be adding an extra parameter called
homeSubtitleWithHtml
and then inindex.html
replacewith
Not sure if that's the best way to achieve this. If you like the approach, I can open a PR this way you can comment.
BTW, amazing job! It's really useful! Thx a lot! 👏
The text was updated successfully, but these errors were encountered: