Skip to main

Contact Macros

content/_includes/contact.macros.njk

Forms related to OddBird communication.

Macros

form()

Generate a contact form

Params:

  • next {url} = /contact/thanks/

    The landing page after form-submit

  • submit {string} = Send

    text for the submit button

  • name {string} = contact

    Name the form for special cases where a CSS hook is required

  • extraActions {string | none} = none

    Extra content for the action area, like a (markdown) link.

  • attrs {object} = [object Object]

    Attributes and values to apply in the form

social()

Generate a list of social-media icon-links

Params:

  • data {array}

    site-slug/user-id pairs

  • name {string}

    The name of the user

social context()

Add the visually hidden name of a site to the user name

Params:

  • user {string}

    The username, as it should be rendered (potentially with an @)

  • name {string}

    The site/service being used

See Also