From 9f36e506f6f66d4f6b597e59a4571d100c0e0866 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 11 Jun 2020 19:42:13 +0100 Subject: [PATCH 1/2] fixed rss? --- content/photo/5ee255ec/index.md | 12 ------------ content/photo/5ee2782a/index.md | 14 -------------- 2 files changed, 26 deletions(-) delete mode 100644 content/photo/5ee255ec/index.md delete mode 100644 content/photo/5ee2782a/index.md diff --git a/content/photo/5ee255ec/index.md b/content/photo/5ee255ec/index.md deleted file mode 100644 index f5e2aa56..00000000 --- a/content/photo/5ee255ec/index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -date: '2020-06-11 17:03:56' -draft: false -photo: - - 'https://jk.nipponalba.scot/media/file-20200611170355-1098.jpg' -posttype: photo -slug: 5ee255ec -thumbnail: - - 'https://jk.nipponalba.scot/media/file-20200611170355-1098.jpg' -visibility: public ---- -Quick photo test diff --git a/content/photo/5ee2782a/index.md b/content/photo/5ee2782a/index.md deleted file mode 100644 index 2f522c28..00000000 --- a/content/photo/5ee2782a/index.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -date: '2020-06-11 19:30:02' -draft: false -photo: - - 'https://jk.nipponalba.scot/media/file-20200611193001-1849.jpg' -posttype: photo -slug: 5ee2782a -thumbnail: - - 'https://jk.nipponalba.scot/media/file-20200611193001-1849.jpg' -visibility: public ---- -Hopefully this post is devoid of html tags and displays an image.. - -2nd line of text to see if any formatting at all is maintained! From 386c7e9d81c8d49ddb6c27ff414f0246182df16e Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 11 Jun 2020 19:57:33 +0100 Subject: [PATCH 2/2] fixed rss? --- layouts/_default/rss.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index b5488a33..9825b7fe 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -20,14 +20,15 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | plainify }} - ({{ .Permalink }}) + ({{ .Permalink }}) {{ range .Params.Photo }} {{ if not ( in . "http" ) }} - {{ $image_location := printf "static/%s" .}}{{$image := readFile $image_location }}{{$len := len $image}} + {{ else }} - {{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}} + {{ end }} {{ end }} + {{ end }}