Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: turn version into a partial so it can be reused more easily

Nick Craig-Wood99f3c8bc939b
diff --git a/Makefile b/Makefile
index 66511328c..aa1d146c5 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ tag: doc
@echo "Old tag is $(LAST_TAG)"
@echo "New tag is $(NEW_TAG)"
echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEW_TAG)\"\n" | gofmt > fs/version.go
- echo -n "$(NEW_TAG)" > docs/layouts/shortcodes/version.html
+ echo -n "$(NEW_TAG)" > docs/layouts/partials/version.html
git tag $(NEW_TAG)
@echo "Edit the new changelog in docs/content/changelog.md"
@echo " * $(NEW_TAG) -" `date -I` >> docs/content/changelog.md
diff --git a/docs/layouts/partials/version.html b/docs/layouts/partials/version.html
new file mode 100644
index 000000000..fe40bd64f
--- /dev/null
+++ b/docs/layouts/partials/version.html
@@ -0,0 +1 @@
+v1.39
\ No newline at end of file
diff --git a/docs/layouts/shortcodes/version.html b/docs/layouts/shortcodes/version.html
index fe40bd64f..8476e6e9e 100644
--- a/docs/layouts/shortcodes/version.html
+++ b/docs/layouts/shortcodes/version.html
@@ -1 +1 @@
-v1.39
\ No newline at end of file
+{{ partial "version.html" . }}