Spig.hello
defines the HELLO
phase with all the default operations that works on default structure: dealing with css, javascript, images, static etc. Content and layers are not covered.INIT
phase 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.INIT
phase on the first set also collect tags and pages that defines them.RENDER
phase is one that process markdown files to HTML (render()
operation), then applies the template, and finally, performs the HTML minification of the code.RENDER
phase, but the IMG
phase, where images gets minified.HELLO
, INIT
, RENDER
, IMG
.postsToRoot
and the second is a lambda in line #22 (removed for simplicity).META
phase. In other words, we just collect meta-data about the content.INIT
phase is all about links. It defines page slugs from the page title and removes the /post/
prefix from the URL.RENDER
phase is the same as in previous example.IMAGES
process the images from the content folder. Note that images from the /src/images
are processed in HELLO
phase, defined in defaults by Spig.hello()
.index.json
is some kind of meta-data file that needs to exist on website. It is executed before RENDER
phase. This is the only time in the pipeline when we have both the target links defined AND the content is still in Markdown.