gersonbenavides / ataraxia-zola

A personal theme for Zola focused on readability that aims to be simple, beautiful, and modern.
https://gersonbenavides.github.io/
Mozilla Public License 2.0
13 stars 6 forks source link

Adding links to tab_contents #7

Closed voidzero closed 1 year ago

voidzero commented 1 year ago

Right now I'm trying to add a link to tab_contents, but no matter what I try, I can't get it to work. If I put [example](www.example.com) inside the quotation characters, it doesn't render the code. If I try to put it outside of the quotes, the entire tab_nav_box building fails. Hope you can give me some suggestions.

voidzero commented 1 year ago

The content should be parsed as markdown in order for it to show imaged links (or any link for that matter). I got it to work by changing {{ content | safe }} in templates/shortcodes/tab_nav_box.html to:

{{ content | markdown(inline=true) | safe }}