Edit config/_default/module.yaml to install the hugolify-theme-persons module:
imports:
- path: github.com/hugolify/hugolify-theme-persons/v2
- path: github.com/hugolify/hugolify-theme/v2imports:
- path: github.com/hugolify/hugolify-theme-persons
- path: github.com/hugolify/hugolify-themeThe education field of hugolify-admin's persons collection (title, school, year, category) is listed in the sidebar of the person page by persons/education.html: one item per entry, its title, then its school and year. The heading is the education.title translation. The core theme publishes the same entries as structured data (hasCredential, alumniOf).
A site that overrides persons/sidebar.html places it itself:
{{ partial "persons/education.html" . }}
Each person page publishes a vCard (.vcf) next to it, named after the page slug, e.g. /team/jane-doe/jane-doe.vcf.
It is built from title, firstname, lastname, persons_statutes and contact (phone, fax, email).
The download link is added to the contact list of the person page by
persons/contact/vcard.html, the hook commons/contact/contacts.html looks for.
Nothing to wire.
To place it somewhere else, render it from the resource:
{{ with partial "persons/vcard.html" . }}
{{ partial "commons/contact/vcard.html" . }}
{{ end }}
commons/contact/vcard.html renders the contact.vcard label and the Lucide
contact-round icon; the resource itself gives .RelPermalink and .MediaType
if you would rather write your own markup.
Options, in config/_default/params.yaml:
persons:
vcard:
enable: true
organization: '' # ORG field, defaults to the site titleHugolify is free for personal or commercial projects (MIT license)