Skip to content

Commit

Permalink
🔧 fixing section issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chrede88 committed Oct 16, 2024
1 parent ccce216 commit 0d1c628
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion exampleSite/content/blog/post1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/blog/post2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:.
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/blog/post3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:.
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/blog/post4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:.
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h4 class="mb-2 line-clamp-2 text-base font-semibold text-slate-700 antialiased
<div class="flex items-center -space-x-3">
{{ 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" ) }}
<img class="h-9 w-9 rounded-full border-2 border-slate-50 object-cover object-center" alt="{{ $name }}" src="{{ $imgPath.RelPermalink }}" />
Expand Down

0 comments on commit 0d1c628

Please sign in to comment.