Skip to content

About

Persons section for Hugolify

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

hugolify-theme-persons

Install

Edit config/_default/module.yaml to install the hugolify-theme-persons module:

V2

imports:
  - path: github.com/hugolify/hugolify-theme-persons/v2
  - path: github.com/hugolify/hugolify-theme/v2

V1

imports:
  - path: github.com/hugolify/hugolify-theme-persons
  - path: github.com/hugolify/hugolify-theme

Education

The 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" . }}

vCard

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 title

Documentation

https://www.hugolify.io/docs/

Licensing

Hugolify is free for personal or commercial projects (MIT license)

About

Persons section for Hugolify

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages