We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe384f commit 14202cdCopy full SHA for 14202cd
1 file changed
layouts/partials/posts/meta.html
@@ -1,7 +1,16 @@
1
<div class="post-meta">
2
- <span class="post-authors">
+<span class="post-authors">
3
{{- range .Params.author -}}
4
- <div class="post-author"><i class="fa-solid fa-user"></i> {{ . }}</div>
+ {{ $author := trim (index (findRE `[^<]*` . 1) 0) "\n\r " }}
5
+ {{ $handle := index (index (findRESubmatch `<(.*?)>` . 1) 0) 1 }}
6
+ <div class="post-author">
7
+ <i class="fa-solid fa-user"></i>
8
+ {{ if $handle }}
9
+ <a href="/authors/{{ $handle }}">{{ $author }}</a>
10
+ {{- else }}
11
+ {{- $author }}
12
+ {{- end }}
13
+ </div>
14
{{- end -}}
15
</span>
16
{{ if .Date }}
0 commit comments