Add a shortcode to just get the URL of a code file

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-05-12 18:58:28 -07:00
parent 9c9ced66c3
commit 2c13bf93cb

View File

@ -0,0 +1,2 @@
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 0) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Params.submoduleLinks) }}
{{ .Scratch.Get "bestUrl" }}