Skip to content

Commit 7b2a3f9

Browse files
authored
Merge pull request #40 from rdela/pdfix
Use actual author for post-details search
2 parents 6c18ece + 95978e6 commit 7b2a3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_includes/templates/post-details.vto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="post-details">
22
{{ if author }}
3-
{{ set page = search.page(`type=author author="author"`) }}
3+
{{ set page = search.page(`type=author author="${author}"`) }}
44
{{ if page }}
55
<p>{{ i18n.post.by}} <a data-pagefind-filter="author" href="{{ page.url }}">{{ author }}</a></p>
66
{{ else }}

0 commit comments

Comments
 (0)