- links: Page with a link collection posted as metadata only.
- links_index: Root page for the browseable archive of annotated external links in the site
The Links feature allows to annotate external links with extra metadata, like an abstract, tags, a URL with an archived version of the site, or other related links.
You can add a links
list to the metadata of the page, containing a dict for
each external link to annotate in the page.
See metadata documentation for a reference on the links
field.
You can create a data page with a links
list and a data-type: links
to have the data page render as a collection of links.
This is the full list of supported links metadata:
url: str
: the link URLarchive: str
: URL to an archived version of the sitetitle: str
: short title for the linkabstract: str
: long description or abstract for the linktags: List[str]
: tags for this linkrelated: List[Dict[str, str]]
: other related links, as a list of dicts withtitle
andurl
keys
The template used to render link collections is data-links.html
, which works
both on data-only link collections, and on .links
-generated pages.
If you add a name.links
file, empty or containing some metadata, it will be
rendered as a hierarchy of index pages one for each link tag found.
data-links.html
is used as default template for .links
-generated pages.