How do I make some text clickable in that file? I want the users to be able to click on a word(so it looks like a link) and then they come to that link on Wikipedia for example.
I have some text in the about box on my homepage, and want to make some text clickable so if they click on it, they come to a link. So I wanna add a link basically, like this: https://www.w3schools.com/html/html_links.asp But how can I do this in the config.toml file?
Okay but I don’t want the whole about text to be clickable, only one word. How can I do that?
And in my config.toml, it looks like this:
[params]
Name = “nameHere”
HeaderUsername = “somethingHere”
HeaderHostname = “somethinghere”
About = “some text about us”
I followed the github to setup it up and that works, so About works with capital A.
Alright I added exactly that and server runs without errors, but on the page it prints text instead of only the text that is underlined so you can click on it.
Now it worked! I made a mistake and had wrote it too quickly so I had {{ .Site.Params.About }} | markdownify instead of {{ .Site.Params.About | markdownify }}. Thanks a lot for the help guys! Appreciate it!
The stuff inside curly brackets or sets of curly brackets has special meaning to hugo.
In this case, that’s why putting markdownify outside the brackets had no effect.