aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2025-03-09 00:00:00 +0000
committertdro <tdro@noreply.example.com>2025-03-09 00:00:00 +0000
commit029b14c5708806476d336f9d5d21df436e5b5ccc (patch)
tree89de5f927244188c28bb07587fd8aaad380650a1
parent9139346cf8161228c6bd957e15673ae57ad93a24 (diff)
downloadcanory-029b14c5708806476d336f9d5d21df436e5b5ccc.tar.gz
canory-029b14c5708806476d336f9d5d21df436e5b5ccc.tar.bz2
canory-029b14c5708806476d336f9d5d21df436e5b5ccc.zip
themes/default/layouts/partials/function-generate-feeds: Once
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index 757552d..a8a98d0 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -247,7 +247,11 @@
)
$template
-}}
- {{- $writeToFile := $markdown.Permalink -}}
+
+ {{- if not (fileExists (print "public/" $path)) -}}
+ {{- $writeToFile := $markdown.Permalink -}}
+ {{- end -}}
+
{{- end -}}
{{- end -}}