feat: Add people links to list items

This commit is contained in:
Thomas A. Christensen II 2023-04-01 01:15:16 -05:00
parent d694639bef
commit 04aa7db9d5
Signed by: millironx
GPG key ID: 09335146883990B9
3 changed files with 18 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import {
faPresentation,
faScaleBalanced,
faUniversity,
faUser,
faUserAstronaut,
faVideo,
faW,
@ -108,6 +109,7 @@ library.add(
faStackOverflow,
faSteam,
faUniversity,
faUser,
faUserAstronaut,
faVideo,
faVimeo,

View file

@ -157,3 +157,7 @@ h1 {
max-width: 33%;
}
}
.card-link {
white-space: nowrap;
}

View file

@ -33,6 +33,18 @@
{{/* Prefer full-text links over local ones */}}
{{ $link := default .RelPermalink (index .Params "link") }}
<a href="{{ $link }}"><h3 class="card-title">{{ .Title }}</h3></a>
{{ range (.GetTerms "people") }}
<a
href="{{ .RelPermalink }}"
class="icon-link card-link {{ if eq .LinkTitle "Thomas A. Christensen II" }}
fw-bolder
{{ end }}"
><i class="fad fa-user"></i> {{ .LinkTitle }}</a
>
{{ end }}
<p class="card-text">
{{ .Summary }}
<strong