Resource
A page resource (page.resources), a global resource (get_asset), a remote resource (get_remote), or the result of a pipe (to_css, fingerprint, resize, …).
Fields#
__rid- An internal identifier the site functions read the resource back by; do not print it.
data{integrity}: the integrity of a fingerprinted resource, else none.height- The height of an image in pixels, else none.
integrity- The Subresource Integrity hash after
fingerprint, e.g.sha256-…. media_type- Its media type.
name- The resource’s name: its path relative to the page bundle or
assets/, or thenamefront matter gives it. page_id- For a content file of a bundle (a page resource that is a page), that page’s
id. params- The
paramsfront matterresourcesgives it. permalink- Its absolute URL; publishes the resource.
rel_permalink- Its URL path; publishes the resource.
resource_type- The main type of its media type, e.g.
image. title- The title front matter
resourcesgives it, else the name. width- The width of an image in pixels, else none.