aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/version.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-03-03 17:34:06 -0500
committertdro <tdro@noreply.example.com>2023-03-03 18:48:17 -0500
commitb0856bf1548a26c1c2924cc011f4a1ddc2707b5f (patch)
tree6449acc1cde1b7b2dbf463468e4e18e87fd1e83c /themes/default/layouts/shortcodes/version.html
parent20355368f64f8d2889832db28e352f80bce18783 (diff)
downloadcanory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.tar.gz
canory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.tar.bz2
canory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.zip
config: Support offline mode0.11.11
Default to offline. The configuration has to set the site's offline configuration to false for remote fetches to be allowed
Diffstat (limited to 'themes/default/layouts/shortcodes/version.html')
-rw-r--r--themes/default/layouts/shortcodes/version.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html
index f712c51..11e7685 100644
--- a/themes/default/layouts/shortcodes/version.html
+++ b/themes/default/layouts/shortcodes/version.html
@@ -1,18 +1,20 @@
-{{- $version := "0.11.10" -}}
+{{- $theme := "0.11.11" -}}
+{{- $generator := "0.108.0" -}}
+
{{- $number := default false (.Get "number" | default (.Get 0)) -}}
{{- $clone := default false (.Get "clone" | default (.Get 1)) -}}
{{- $hugo := default false (.Get "hugo" | default (.Get 2)) -}}
{{- if $number -}}
- {{ $version }}
+ {{ $theme }}
{{- end -}}
{{- if $hugo -}}
-0.108.0
+ {{ $generator }}
{{- end -}}
{{- if $clone -}}
```shell
-git clone --branch {{ $version }} https://www.thedroneely.com/git/thedroneely/canory
+git clone --branch {{ $theme }} https://www.thedroneely.com/git/thedroneely/canory
```
{{- end -}}