INITphase for markdown files collects some meta-data (attributes) and defines the output links. A similar thing happens on the second set (images), where only output links are defined.
INITphase on the first set also collects tags and pages that define them.
RENDERphase is one that processes 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 get minified.
postsToRootand the second is a lambda in line #22 (removed for simplicity).
METAphase. In other words, we just collect more 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 the 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 the 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.