INITphase for markdown files collect some meta-data (attributes) and define the output links. Similar thing happens on the second set (images), where only output links are defined.
INITphase on the first set also collect tags and pages that defines them.
RENDERphase is one that process markdown files to HTML (
render()operation), then applies the template, and finally, performs the HTML minification of the code.
RENDERphase, but the
IMGphase, where images gets minified.
postsToRootand the second is a lambda in line #22 (removed for simplicity).
METAphase. In other words, we just collect meta-data about the content.
INITphase is all about links. It defines page slugs from the page title and removes the
/post/prefix from the URL.
RENDERphase is the same as in previous example.
IMAGESprocess the images from the content folder. Note that images from the
/src/imagesare processed in
HELLOphase, defined in defaults by
index.jsonis some kind of meta-data file that needs to exist on website. It is executed before
RENDERphase. This is the only time in the pipeline when we have both the target links defined AND the content is still in Markdown.