In my config.toml I define the text I want to appear in my footer columns. For example, I might do this:
[params]
footer_quote = ‘’’
### Einstein
* God does not play dice. *
’’’
Then in layouts/partials/footer.html I have:
{{with .Site.Params.footer_quote}}{{ . | print | markdownify }}{{ end }}
This does not work. The quotation is put inside of a …
block rather than be rendered by markdown.
Maybe I read things wrong, but i see examples just like the above, so I’m currently confused why it isn’t working.
If that is wrong, then what is the proper way to send params content through markdown in a template?
Well, I know why it isn’t working: For some reason Hugo converts multiline strings into pre and code blocks. If you use a plain string, markdownify works fine.
I guess the solution is either a fix for Hugo so you can use multiline quotes without the automatic pre and code markup, or maybe there is some workaround I don’t know of. I tried using print so far.