Template functions · Pages
path
Prefix a URL with the base path.
path "/url"Joins the -base path and the URL. Write every internal link and asset URL through path and the site works at / and under a subfolder, such as a GitHub Pages project site. Source .Path values already include the base.
Example
<link rel="stylesheet" href="{{ path "/css/styles.css" }}">
<!-- with -base /docs/ this becomes /docs/css/styles.css -->Other functions
data
sources
sort
filter
limit
offset
select
paginate
pages
page
hash
json
contains
html
js
css