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:
parent
9c9ced66c3
commit
2c13bf93cb
2
layouts/shortcodes/codeurl.html
Normal file
2
layouts/shortcodes/codeurl.html
Normal 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" }}
|
Loading…
Reference in New Issue
Block a user