aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/version.html
blob: 48aed2cde26e01b014882da875dc6f844d3c74e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- $version := "0.11.8" -}}
{{- $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 -}}