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 | |
parent | fa873d922568ba116758e256606c7563aead08c9 (diff) | |
download | canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.tar.gz canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.tar.bz2 canory-c9bbcb3bda9666eb02dd6ed2f12308de4394d60a.zip |
themes/default/layouts/shortcodes: Add version shortcode
-rw-r--r-- | content/default/messages/quickstart.md | 9 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.sources.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/shortcodes/version.html | 13 |
3 files changed, 19 insertions, 5 deletions
diff --git a/content/default/messages/quickstart.md b/content/default/messages/quickstart.md index 69b587a..00b35c1 100644 --- a/content/default/messages/quickstart.md +++ b/content/default/messages/quickstart.md @@ -8,10 +8,13 @@ author = "default" Somehow you've ended up here, funny how that works. I'm responsible for explaining how to get started. -GIT CLONE. EXECUTE HUGO TWICE. HUGO VERSION >= 0.101.0 +GIT CLONE. + +{{% version clone=true %}} + +EXECUTE HUGO TWICE. HUGO VERSION >= 0.101.0 ```shell -git clone --branch 0.9.37 https://www.thedroneely.com/git/thedroneely/canory cd canory hugo && hugo ``` @@ -25,5 +28,3 @@ busybox httpd -f -p 127.0.0.1:8125 php -S 127.0.0.1:8126 ruby -run -e httpd . -p 8127 ``` - -That concludes our automated community announcement. diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html index d2a05e7..9328920 100644 --- a/themes/default/layouts/_default/home.sources.html +++ b/themes/default/layouts/_default/home.sources.html @@ -93,7 +93,7 @@ <footer> <p> - Canory Version: 0.9.37 + Canory Version: {{ "{{% version number %}}" | markdownify }} · Dictionary Access by Paul Lutus: <a href="https://arachnoid.com/javascript/dictionary_access.js">GPLv2+ License</a> · Feather Icons by Cole Bemis: <a href="https://github.com/feathericons/feather/blob/8b5d6802fa8fd1eb3924b465ff718d2fa8d61efe/LICENSE">MIT License</a> · Tabler Icons by PaweÅ‚ Kuna: <a href="https://github.com/tabler/tabler-icons/blob/60f39297d0f785f2e8635faca6857b2260b2d164/LICENSE">MIT License</a> 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 -}} |