Skip to main content

compose_contact

Function compose_contact 

Source
pub fn compose_contact(store: &Store, fm: &Frontmatter) -> Result<String>
Expand description

contact<role> at <company-name> (last_touch: <date>). Resolves the company wiki-link to read the company’s name.

Each segment degrades gracefully when its field is absent: with no role the line opens Contact; with no resolvable company the at <company> segment is dropped; with no last_touch the trailing (last_touch: …) parenthetical is dropped. The company name is the resolved company file’s name field; if the link can’t be resolved (missing/unreadable target, or the target has no name) the link’s own display-or-leaf text is used.