Skip to content

Commit 01f334e

Browse files
authored
Merge pull request #63 from TheRomanXpl0it/fix-about
Fix case sensitivity (kinda)
2 parents 0bd98f9 + f59af4e commit 01f334e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

content/posts/csaw-25-embedded-security-challenge-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tags:
2828
# please use the standard name in content/members
2929
authors:
3030
- nect
31-
- lorenzinco
31+
- Lorenzinco
3232
- kristoj
3333
- ver7ux
3434
---

layouts/members/single.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ <h2 class="author-name variant">{{ .Params.name | default .Params.title }}</h2>
5353
</article>
5454

5555
<hr>
56-
{{ $posts := where .Site.RegularPages "Params.authors" "intersect" (slice .Title) }}
56+
57+
{{ $author := lower .Title }}
58+
{{ $posts := slice }}
59+
60+
{{ range .Site.RegularPages }}
61+
{{ $pageAuthors := apply .Params.authors "lower" "." }}
62+
{{ if in $pageAuthors $author }}
63+
{{ $posts = $posts | append . }}
64+
{{ end }}
65+
{{ end }}
66+
5767
{{ $n := len $posts }}
5868

5969
<p class="member-published">

0 commit comments

Comments
 (0)