vanilla-hugo/layouts/shortcodes/codeurl.html
Danila Fedorin 2c13bf93cb Add a shortcode to just get the URL of a code file
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-12 18:58:28 -07:00

3 lines
187 B
HTML

{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 0) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Params.submoduleLinks) }}
{{ .Scratch.Get "bestUrl" }}