diff options
| author | tdro <tdro@noreply.example.com> | 2022-06-15 23:19:18 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2022-06-15 23:19:18 -0400 |
| commit | 9539ab364aed7d2a3725aa028205f79aefbc8d4e (patch) | |
| tree | 21cc65412e0c4990183d7abda790c331aff700a4 | |
| parent | b03fbdca3b70587cb46b28aadd30d42fe0b29f50 (diff) | |
| download | canory-9539ab364aed7d2a3725aa028205f79aefbc8d4e.tar.gz canory-9539ab364aed7d2a3725aa028205f79aefbc8d4e.tar.bz2 canory-9539ab364aed7d2a3725aa028205f79aefbc8d4e.zip | |
themes/default/layouts/partials/feeds-generate: Urlize title for files
So hashes don't slip through.
| -rw-r--r-- | themes/default/layouts/partials/feeds-generate.html | 2 |
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 268e159..0ed11bf 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 | truncate 50 "") "-" (.FeedLink | sha256 | truncate 8 "") | humanize | urlize -}} + {{- $name := print (.FeedTitle | urlize | truncate 50 "") "-" (.FeedLink | sha256 | truncate 8 "") | humanize | urlize -}} {{- $path := print "/data/generates/content/" $author.user "/feeds/" $name ".md" -}} {{- $description := .FeedDescriptionShort -}} |
