Skip to main content

springheel.metatag module

Generate meta tags for link previews.

springheel.metatag.genMetaTags(title: str, url: str, description: str, image: str)List[str]

Create meta tags so the page will have link previews elsewhere.

Parameters
titlestr

The title of the page.

urlstr

The URL of the page.

descriptionstr

A description of the page. Defaults to the site description. For strips, this will be the commentary block (if available).

imagestr

Full URL to an image associated with the page. May be a comic page or a header banner.

Returns
list of str

The HTML meta tag elements that will go in the document head.