diff options
author | tdro <tdro@noreply.example.com> | 2022-08-02 21:41:28 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-02 21:41:28 -0400 |
commit | c9bbcb3bda9666eb02dd6ed2f12308de4394d60a (patch) | |
tree | 2e98b6e3769ecab43e0b367cf17c825bbc6af27e /themes/default/layouts/shortcodes/version.html | |
parent | fa873d922568ba116758e256606c7563aead08c9 (diff) | |
download | canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.tar.gz canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.tar.bz2 canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.zip |
themes/default/layouts/shortcodes: Add version shortcode
Diffstat (limited to 'themes/default/layouts/shortcodes/version.html')
-rw-r--r-- | themes/default/layouts/shortcodes/version.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html new file mode 100644 index 0000000..31857e2 --- /dev/null +++ b/themes/default/layouts/shortcodes/version.html @@ -0,0 +1,13 @@ +{{- $version := "0.10.11" -}} +{{- $number := default false (.Get "number" | default (.Get 0)) -}} +{{- $clone := default false (.Get "clone" | default (.Get 1)) -}} + +{{- if $number -}} + {{ $version }} +{{- end -}} + +{{- if $clone -}} +```shell +git clone --branch {{ $version }} https://www.thedroneely.com/git/thedroneely/canory +``` +{{- end -}} |