aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-16 00:12:29 -0400
committertdro <tdro@noreply.example.com>2022-06-16 00:12:29 -0400
commit8e95569382078d730b6d1045e0f465d6e0c09497 (patch)
treeea0cad431d21692acd455e26c6040dd5be1503d7
parent9539ab364aed7d2a3725aa028205f79aefbc8d4e (diff)
downloadcanory-8e95569382078d730b6d1045e0f465d6e0c09497.tar.gz
canory-8e95569382078d730b6d1045e0f465d6e0c09497.tar.bz2
canory-8e95569382078d730b6d1045e0f465d6e0c09497.zip
themes/default/layouts/partials/feeds-generate: Split delimit instead of truncate
Truncate seems to have implicit html escaping?
-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 0ed11bf..e826339 100644
--- a/themes/default/layouts/partials/feeds-generate.html
+++ b/themes/default/layouts/partials/feeds-generate.html
@@ -184,7 +184,7 @@
{{- end -}}
{{- $template := resources.Get "templates/markdown-feed.yaml" -}}
- {{- $name := print (.FeedTitle | urlize | truncate 50 "") "-" (.FeedLink | sha256 | truncate 8 "") | humanize | urlize -}}
+ {{- $name := print (delimit (first 8 (split (.FeedTitle | urlize) "-")) "-" | humanize | urlize) "-" (.FeedLink | sha256 | truncate 8 "") | humanize | urlize -}}
{{- $path := print "/data/generates/content/" $author.user "/feeds/" $name ".md" -}}
{{- $description := .FeedDescriptionShort -}}