diff options
Diffstat (limited to 'layouts/partials/author_card.html')
-rw-r--r-- | layouts/partials/author_card.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html index c2bbeab..e74ee98 100644 --- a/layouts/partials/author_card.html +++ b/layouts/partials/author_card.html @@ -3,14 +3,10 @@ <img src="{{ .avatar }}" class="br-100 w3" alt="{{ .name }}" /> </div> <div class="w-90-ns ph3-ns"> - <h5 class="f4 mv1 berkshire-swash"> - {{ with .homepage }} - <a href="{{ . }}" class="link color-inherit"> - {{ $.name }} - </a> - {{ else }} + <h5 class="f4 mv0 berkshire-swash"> + <a href="{{ (default .path .homepage) }}" class="link color-inherit"> {{ .name }} - {{ end }} + </a> </h5> <h6 class="f5 fw3 pa0 ma0">{{ .role | markdownify }}</h6> <p class="f6 lh-copy"> |