diff --git a/exampleSite/content/blog/post1/index.md b/exampleSite/content/blog/post1/index.md index e62262f..73aac7e 100644 --- a/exampleSite/content/blog/post1/index.md +++ b/exampleSite/content/blog/post1/index.md @@ -7,7 +7,7 @@ cardimage: photo1_card.jpeg featureimage: photo1.jpeg caption: Image caption authors: - - Christian: author.jpeg + - Christian: author.png --- Use the shortcode "figArray" to add images to your blog post. Add your images to a subfolder. Call the figArray shortcode using the following syntax: diff --git a/exampleSite/content/blog/post2/index.md b/exampleSite/content/blog/post2/index.md index 31ef39b..5cd3deb 100644 --- a/exampleSite/content/blog/post2/index.md +++ b/exampleSite/content/blog/post2/index.md @@ -6,8 +6,8 @@ cardimage: photo2_card.jpeg featureimage: photo2.jpeg caption: "Image caption :tada:" authors: - - Christian: author.jpeg - - John Doe: author.jpeg + - Christian: author.png + - John Doe: author.png --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id erat enim. Ut cursus magna sed luctus auctor. Sed eu augue dignissim, lobortis ipsum eu, dictum nisi. Integer varius ex maximus quam lobortis accumsan. Morbi mollis vulputate metus, aliquam feugiat arcu porta a. Quisque id justo ultricies, lacinia elit quis, pulvinar odio. Fusce feugiat at velit vitae lobortis. Nulla fringilla metus et sem mattis posuere :zap:. diff --git a/exampleSite/content/blog/post3/index.md b/exampleSite/content/blog/post3/index.md index 509f145..db4fc97 100644 --- a/exampleSite/content/blog/post3/index.md +++ b/exampleSite/content/blog/post3/index.md @@ -6,7 +6,7 @@ cardimage: photo3_card.jpeg featureimage: photo3.jpeg caption: "Image caption :tada:" authors: - - Christian: author.jpeg + - Christian: author.png --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id erat enim. Ut cursus magna sed luctus auctor. Sed eu augue dignissim, lobortis ipsum eu, dictum nisi. Integer varius ex maximus quam lobortis accumsan. Morbi mollis vulputate metus, aliquam feugiat arcu porta a. Quisque id justo ultricies, lacinia elit quis, pulvinar odio. Fusce feugiat at velit vitae lobortis. Nulla fringilla metus et sem mattis posuere :zap:. diff --git a/exampleSite/content/blog/post4/index.md b/exampleSite/content/blog/post4/index.md index afc17cc..7e50cab 100644 --- a/exampleSite/content/blog/post4/index.md +++ b/exampleSite/content/blog/post4/index.md @@ -3,7 +3,7 @@ title: Blog Post 4 summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id erat enim. Ut cursus magna sed luctus auctor. Sed eu augue dignissim, lobortis ipsum eu, dictum nisi. Integer varius ex maximus quam lobortis accumsan. Morbi mollis vulputate metus, aliquam feugiat arcu porta a. Quisque id justo ultricies, lacinia elit quis, pulvinar odio. Fusce feugiat at velit vitae lobortis. Nulla fringilla metus et sem mattis posuere. Nulla pellentesque quam sit amet est posuere, tincidunt auctor ligula bibendum. Donec dapibus lacinia nibh, convallis ultrices enim laoreet et. date: 2023-11-21 authors: - - Christian: author.jpeg + - Christian: author.png --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id erat enim. Ut cursus magna sed luctus auctor. Sed eu augue dignissim, lobortis ipsum eu, dictum nisi. Integer varius ex maximus quam lobortis accumsan. Morbi mollis vulputate metus, aliquam feugiat arcu porta a. Quisque id justo ultricies, lacinia elit quis, pulvinar odio. Fusce feugiat at velit vitae lobortis. Nulla fringilla metus et sem mattis posuere :zap:. diff --git a/layouts/_default/section.html b/layouts/_default/section.html index de3ba38..a68b547 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -37,7 +37,7 @@

{{ range $authors := .Params.authors }} {{ range $name, $image := $authors }} - {{ $imgPath := resources.GetMatch (print "/**/" $image) }} + {{ $imgPath := resources.GetMatch (print "*" $image) }} {{ with $imgPath }} {{ $imgPath = $imgPath.Filter (images.Process "resize 40x40 webp" ) }} {{ $name }}