v0.1.4 Release
Pre-release
Pre-release
Refer to the official changelog for more info.
- Made
assetsfolder optional. Now, if the Blitz attempts to build the website and theassetsfolder does not exist, Blitz simply carries on without copying any assets. - Made use of the
site_urlparameter in the config (it was previously unused). Now,site_urlis placed in front of all absolute URLs generated by Blitz. To avoid this behaviour and get absolute URLs without the host specified, simply setsite_urlto an empty string or remove it completely. - Added
menusproperty to child directories. Now, if you want all pages imported from a directory to appear in a specific menu, you can do something like this:
`yamlIn the config
pages:- template: 'blog.pug'
child_directories:- uri: '/'
name: 'posts'
template: 'post.pug'
directory: 'posts'Now you can specify menus:
menus:- name: 'name_of_menu_1'
- name: 'name_of_menu_2'
title: 'name_of_the_property_in_front_matter_to_use_as_title'
Here's where Blitz looks for thetitle` of a menu item (first property at the top, if none of the above exist the last one is used):
- uri: '/'
menu_titleproperty specified in content file's front matter.- Checks if
titlefor the menu was defined in the config. If so, uses the value oftitleas the property name to look for in the config. If property with such name was not defined in front matter, moves on to the next source. titleproperty specified in content file's front matter.- Finally, if none of the above exist, the file name of the content file is used.
- template: 'blog.pug'
- Refactored the
minimaltemplate, now it contains just theblitz.ymland a single Pug template. - Added new templates called
configandportfolio. Former contains just an example Blitz config and the latter is a simple portfolio website using Bootstrap. - Added integration tests for templates.