aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/feeds-generate.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-14 17:07:09 -0400
committertdro <tdro@noreply.example.com>2022-06-14 17:07:09 -0400
commit16b7179918f2b6aa760525962295c5106ce031cc (patch)
treea3ce22eb04f6188e3e3da20f0f1fda1fc4f3dcac /themes/default/layouts/partials/feeds-generate.html
parentccd7bfb30d1d2e94fc4f0b9cada8f07404452376 (diff)
downloadcanory-16b7179918f2b6aa760525962295c5106ce031cc.tar.gz
canory-16b7179918f2b6aa760525962295c5106ce031cc.tar.bz2
canory-16b7179918f2b6aa760525962295c5106ce031cc.zip
themes/default/layouts/partials/feeds-generate: File humanize before urlize
Humanize instead of replace. Titles are not guaranteed to be unique.
Diffstat (limited to 'themes/default/layouts/partials/feeds-generate.html')
-rw-r--r--themes/default/layouts/partials/feeds-generate.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/feeds-generate.html b/themes/default/layouts/partials/feeds-generate.html
index b86d999..8408fd4 100644
--- a/themes/default/layouts/partials/feeds-generate.html
+++ b/themes/default/layouts/partials/feeds-generate.html
@@ -178,7 +178,7 @@
{{- end -}}
{{- $template := resources.Get "templates/markdown-feed.yaml" -}}
- {{- $name := urlize (replace (.FeedTitle | truncate 50 "") "/" "-") -}}
+ {{- $name := (.FeedTitle | truncate 50 "") | humanize | urlize -}}
{{- $path := print "/data/generates/content/" $author.user "/feeds/" $name ".md" -}}
{{- $description := .FeedDescriptionShort -}}