Hi! Im new to hugo and webdev. How can I find all my tags in content of page and make them bold when rendering?
Hiya! We don’t teach webdev here. We do have a couple of resources to help you get started elsehwere:
Good luck!
Is this all what you got? Im not new to programming lol, you can even consider me as your senior appertince brother to gods sake what u linked is totally useless.
Are you wanting to have a ‘tag’ (i.e. a word prefixed by a # symbol) within the content of a page displayed as bold? Do you also want it to be a link?
Depending on how frequent this is, you may be best off doing it manually (as in, just formatting this as markdown). Otherwise in your theme, you could do some regex magic on .Content
before it’s rendered. (I reckon this thread gives some good ideas on how to proceed.)
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.