hugo-academic-mirror/modules/blox-bootstrap/layouts/shortcodes/staticref.html
2023-11-09 14:58:28 +00:00

11 lines
428 B
HTML

{{/*
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#link-to-a-page
Parameters
----------
#0 : positional
URL for the link (if local path, it is relative to the page folder).
#1 : optional, positional
Pass "newtab" as the second argument to open the link in a new tab.
*/}}
<a href="{{ .Get 0 | relURL }}"{{ if len .Params | eq 2 }} target="_blank"{{ end }}>{{ .Inner }}</a>