From 04aa7db9d53d5573d4e50559bfdfeec068d90205 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 1 Apr 2023 01:15:16 -0500 Subject: [PATCH] feat: Add people links to list items --- assets/scripts/fa-icons.js | 2 ++ assets/styles/mix-twbs.scss | 4 ++++ layouts/_default/list.html | 12 ++++++++++++ 3 files changed, 18 insertions(+) diff --git a/assets/scripts/fa-icons.js b/assets/scripts/fa-icons.js index bfab157..0111038 100644 --- a/assets/scripts/fa-icons.js +++ b/assets/scripts/fa-icons.js @@ -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, diff --git a/assets/styles/mix-twbs.scss b/assets/styles/mix-twbs.scss index 0fb7bbf..3f2f084 100644 --- a/assets/styles/mix-twbs.scss +++ b/assets/styles/mix-twbs.scss @@ -157,3 +157,7 @@ h1 { max-width: 33%; } } + +.card-link { + white-space: nowrap; +} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d5826ac..2c6edba 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -33,6 +33,18 @@ {{/* Prefer full-text links over local ones */}} {{ $link := default .RelPermalink (index .Params "link") }}

{{ .Title }}

+ + {{ range (.GetTerms "people") }} + {{ .LinkTitle }} + {{ end }} + +

{{ .Summary }}