mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 12:13:57 +00:00
See https://discord.com/channels/722225264733716590/738924091511144489/1406144559188283494 See https://gohugo.io/templates/new-templatesystem-overview/
12 lines
428 B
HTML
12 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>
|