diff options
| author | tdro <tdro@noreply.example.com> | 2022-06-14 17:27:01 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2022-06-14 17:27:01 -0400 |
| commit | 30776897e9e102704168a95ead7757b5c9a8b0eb (patch) | |
| tree | c502be4e5164c0eaf99c28d22a4c199d962df517 | |
| parent | 16b7179918f2b6aa760525962295c5106ce031cc (diff) | |
| download | canory-30776897e9e102704168a95ead7757b5c9a8b0eb.tar.gz canory-30776897e9e102704168a95ead7757b5c9a8b0eb.tar.bz2 canory-30776897e9e102704168a95ead7757b5c9a8b0eb.zip | |
themes/default/layouts/partials/feeds-generate: Add uniqueness to title file names
Add truncated hash of link to end. Titles can still change in unique
circumstances.
| -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 8408fd4..c56b865 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 := (.FeedTitle | truncate 50 "") | humanize | urlize -}} + {{- $name := print (.FeedTitle | truncate 50 "") "-" (.FeedLink | sha256 | truncate 8 "") | humanize | urlize -}} {{- $path := print "/data/generates/content/" $author.user "/feeds/" $name ".md" -}} {{- $description := .FeedDescriptionShort -}} |
