From c9bbcb3bda9666eb02dd6ed2f12308de4394d60a Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 2 Aug 2022 21:41:28 -0400 Subject: themes/default/layouts/shortcodes: Add version shortcode --- content/default/messages/quickstart.md | 9 +++++---- themes/default/layouts/_default/home.sources.html | 2 +- themes/default/layouts/shortcodes/version.html | 13 +++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 themes/default/layouts/shortcodes/version.html 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 @@