diff options
author | tdro <tdro@noreply.example.com> | 2022-10-20 20:09:26 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-10-20 20:09:26 -0400 |
commit | e3e7444c2f1d190d73584e1dae17bb0e20b4635a (patch) | |
tree | e9ce00b5798986c8332e4dac4784c03cd404bb6a | |
parent | dfd3948104821c5daf388955977c2b101afe7b7b (diff) | |
download | canory-0.11.4.tar.gz canory-0.11.4.tar.bz2 canory-0.11.4.zip |
themes/default/layouts/partials/generate-feeds: image -> favicon and raw -> markdown0.11.4
grep -lri "raw: " public/data/generates/content | xargs sed --in-place 's|raw: |markdown: |g'
grep -lri "image: " public/data/generates/content | xargs sed --in-place 's|image: |favicon: |g'
6 files changed, 9 insertions, 9 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 1211c3f..97ec9c2 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -21,10 +21,10 @@ {{- $alternate := .Data.name -}} {{- $sourceset := $image.AltRelPermalink -}} -{{- with .Params.feed.image -}} +{{- with .Params.feed.favicon -}} {{- $width = "64" -}} {{- $height = "64" -}} - {{- $source = $.Params.feed.image -}} + {{- $source = $.Params.feed.favicon -}} {{- $alternate = $.Params.feed.name -}} {{- end -}} diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html index b03f673..d2c3c6f 100644 --- a/themes/default/layouts/partials/author-picture.html +++ b/themes/default/layouts/partials/author-picture.html @@ -22,10 +22,10 @@ {{- $alternate := $author.name -}} {{- $sourceset := $image.AltRelPermalink -}} -{{- with .Params.feed.image -}} +{{- with .Params.feed.favicon -}} {{- $width = "64" -}} {{- $height = "64" -}} - {{- $source = $.Params.feed.image -}} + {{- $source = $.Params.feed.favicon -}} {{- $alternate = $.Params.feed.name -}} {{- $sourceset = "" -}} {{- end -}} diff --git a/themes/default/layouts/partials/following-list.html b/themes/default/layouts/partials/following-list.html index 4f364d3..d638487 100644 --- a/themes/default/layouts/partials/following-list.html +++ b/themes/default/layouts/partials/following-list.html @@ -12,7 +12,7 @@ {{- $unique = $unique | append (dict "Domain" .Params.feed.domain - "Favicon" .Params.feed.image + "Favicon" .Params.feed.favicon "Home" .Params.feed.home "Name" .Params.feed.name ) diff --git a/themes/default/layouts/partials/generate-feeds.html b/themes/default/layouts/partials/generate-feeds.html index cb53e17..a6cd906 100644 --- a/themes/default/layouts/partials/generate-feeds.html +++ b/themes/default/layouts/partials/generate-feeds.html @@ -231,11 +231,11 @@ "description" (or .FeedSourceDescription .FeedSourceTitle "No source description found.") "domain" .FeedSourceDomain "enclosure" .FeedEnclosure - "image" $imageSource.RelPermalink + "favicon" $imageSource.RelPermalink "home" .FeedSourceHome "link" .FeedLink + "markdown" (strings.TrimLeft "/" $path) "name" .FeedName - "raw" (strings.TrimLeft "/" $path) "self" (print $author.user "/feeds/" $file "/") "tags" "[rss]" ) diff --git a/themes/default/layouts/partials/meta-markdown.html b/themes/default/layouts/partials/meta-markdown.html index 3b082d3..ca8ff37 100644 --- a/themes/default/layouts/partials/meta-markdown.html +++ b/themes/default/layouts/partials/meta-markdown.html @@ -5,7 +5,7 @@ {{- $title := $href -}} {{- with .Params.feed -}} - {{- $href = print $.Site.BaseURL "/" $.Params.feed.raw -}} + {{- $href = print $.Site.BaseURL "/" $.Params.feed.markdown -}} {{- $title = $href -}} {{- end -}} diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html index 3412572..3c3f173 100644 --- a/themes/default/layouts/shortcodes/version.html +++ b/themes/default/layouts/shortcodes/version.html @@ -1,4 +1,4 @@ -{{- $version := "0.11.3" -}} +{{- $version := "0.11.4" -}} {{- $number := default false (.Get "number" | default (.Get 0)) -}} {{- $clone := default false (.Get "clone" | default (.Get 1)) -}} |