This include file generates a collection of link cards, typically used for displaying a set of important links on a page.
To use this include in your Jekyll theme, add the following line to your template:
{% include links.html %}
This include doesn’t accept direct parameters. Instead, it relies on page or site-wide variables:
Variable | Default | Description |
---|---|---|
page.links |
site.links |
The collection of links to display |
links
variable, first on the current page, then falling back to the site configuration.link-card.html
for each one.This include file depends on:
link-card.html
: Another include file that defines how each link card is displayed.To customize the appearance of the links collection:
link-card.html
include to change how individual links are displayed.links
collection either in your page front matter or in your site’s configuration.