-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open links in new tab? #24
Comments
Hello @tenpast Try |
Hi @somratpro Thank you for your response. How do I escape the quotation marks (")? Otherwise when the .yml file is parsed by Hugo it will interpret the quotation mark as part of the yaml structure and mess up the file:
|
you can use single 'quote' |
Yes, that worked, I used a single quote for the yaml content delimiter. Thank you :) |
I'm adding this as a follow-up in case this question ever comes up again. Escaping single quotes has the disadvantage that any use of single quotes then becomes a problem (example, apostrophes). The way to make the above work with double quotes is to escape the double quotes with a back-slash (like so:
|
Hi, I'm trying to open some links from homepage.yml in a new tab. Example
In homepage.yml section:
content : " Some content [link](https://example.com] more content"
In partial.html:
{{ .content | markdownify }}
I have tried the
.../layouts/_default/_markup/render-link.html
workaround for Goldmark, but it does not work when passing the content through the short code as done in vex-hugo theme.Thanks for your help!
The text was updated successfully, but these errors were encountered: