From 7f5c73bc0384f1a0ffec2701d4183e2208007b40 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 21 Dec 2022 00:20:05 -0500 Subject: themes/default/layouts/partials: Prevent feed fetches from multiplying By limiting to section. Add hugo option to version shortcode --- themes/default/layouts/shortcodes/version.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'themes/default/layouts/shortcodes/version.html') diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html index 48aed2c..debd59a 100644 --- a/themes/default/layouts/shortcodes/version.html +++ b/themes/default/layouts/shortcodes/version.html @@ -1,11 +1,16 @@ -{{- $version := "0.11.8" -}} +{{- $version := "0.11.9" -}} {{- $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 }} {{- end -}} +{{- if $hugo -}} +0.108.0 +{{- end -}} + {{- if $clone -}} ```shell git clone --branch {{ $version }} https://www.thedroneely.com/git/thedroneely/canory -- cgit v1.2.3