diff --git a/_includes/components/h-card.njk b/_includes/components/h-card.njk index 3151a6d..638510a 100644 --- a/_includes/components/h-card.njk +++ b/_includes/components/h-card.njk @@ -4,83 +4,98 @@ This is the canonical h-card component for the site. Include in sidebar widgets, author cards, etc. #} +{% set id = homepageConfig.identity if (homepageConfig and homepageConfig.identity) else {} %} +{% set authorName = id.name or site.author.name %} +{% set authorAvatar = id.avatar or site.author.avatar %} +{% set authorTitle = id.title or site.author.title %} +{% set authorBio = id.bio or site.author.bio %} +{% set authorUrl = id.url or site.author.url %} +{% set authorPronoun = id.pronoun or site.author.pronoun %} +{% set authorLocality = id.locality or site.author.locality %} +{% set authorCountry = id.country or site.author.country %} +{% set authorLocation = site.author.location %} +{% set authorOrg = id.org or site.author.org %} +{% set authorEmail = id.email or site.author.email %} +{% set authorKeyUrl = id.keyUrl or site.author.keyUrl %} +{% set authorCategories = id.categories if (id.categories and id.categories.length) else site.author.categories %} +{% set socialLinks = id.social if (id.social and id.social.length) else site.social %}