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, faPresentation,
faScaleBalanced, faScaleBalanced,
faUniversity, faUniversity,
faUser,
faUserAstronaut, faUserAstronaut,
faVideo, faVideo,
faW, faW,
@ -108,6 +109,7 @@ library.add(
faStackOverflow, faStackOverflow,
faSteam, faSteam,
faUniversity, faUniversity,
faUser,
faUserAstronaut, faUserAstronaut,
faVideo, faVideo,
faVimeo, faVimeo,

View file

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

View file

@ -33,6 +33,18 @@
{{/* Prefer full-text links over local ones */}} {{/* Prefer full-text links over local ones */}}
{{ $link := default .RelPermalink (index .Params "link") }} {{ $link := default .RelPermalink (index .Params "link") }}
<a href="{{ $link }}"><h3 class="card-title">{{ .Title }}</h3></a> <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"> <p class="card-text">
{{ .Summary }} {{ .Summary }}
<strong <strong