
I would like to add a link to my personal website in the footer, however it is not possible right now.
Ok, I just quickly think about this. Maybe the syntax would look like this.
config.toml
copyright = {Nishant Srivastava:https://www.example.com} - c2015-2020, All content is licensed under CC BY-SA
{Nishant Srivastava:https://www.example.com}
Can I do this?
you can try like this
copyright = "Nishant Srivastava - hosted in AWS. ©{year}, All Rights Reserved"
I just made the footer text markdonwify.
So, you can do this
...
copyright = "[Nishant Srivastava](https://www.example.com) - c2015~"
I think we can close this issue.
Feel free to reopen if something wrong.
This works, thanks for this!
Just a small thing though, the link opens in the same page instead of opening a new page. Can this be done?
I can't control the markdown syntax link right now.
It could be possible using rendering hooks.
But it will make the whole link to open external.
Hugo doc says
currently only possible to have one set of render hook templates, e.g. not per Type or Section. We may consider that in a future version. 鈫╋笌
If it's ok in your case(by default open links external) you can make a hook.
I just copy-pasted the official Hugo site document
layouts/_default/_markup/render-link.html
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>
I tried what @talz26 suggested and that worked too :thinking:
copyright = "<a target='_blank' rel='external noopener' href='https://example.com'>Author Name</a> - 漏2015 - {year}, All content is licensed under "
Oh, it also good
I didn't notice it.
Markdown makes a tag anyway.
That is the easest solution