Skip to content

Releases: TimboKZ/blitz

v0.1.5 Release

v0.1.5 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 27 Nov 01:58

Refer to the official changelog for more info.

  • Removed unnecessary files from the portfolio template.
  • Made portfolio the default template.

v0.1.4 Release

v0.1.4 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 27 Nov 00:24

Refer to the official changelog for more info.

  • Made assets folder optional. Now, if the Blitz attempts to build the website and the assets folder does not exist, Blitz simply carries on without copying any assets.
  • Made use of the site_url parameter in the config (it was previously unused). Now, site_url is placed in front of all absolute URLs generated by Blitz. To avoid this behaviour and get absolute URLs without the host specified, simply set site_url to an empty string or remove it completely.
  • Added menus property 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:
    `yaml

    In 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):
    1. menu_title property specified in content file's front matter.
    2. Checks if title for the menu was defined in the config. If so, uses the value of title as 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.
    3. title property specified in content file's front matter.
    4. Finally, if none of the above exist, the file name of the content file is used.
  • Refactored the minimal template, now it contains just the blitz.yml and a single Pug template.
  • Added new templates called config and portfolio. Former contains just an example Blitz config and the latter is a simple portfolio website using Bootstrap.
  • Added integration tests for templates.

v0.1.3 Release

v0.1.3 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 15 Nov 19:28

Refer to the official changelog for more info.

  • Added config property validation. Blitz will now check the config for required properties and add them using default values if said properties are missing, or throw an error if the type of the property is invalid.
  • Made content for pages optional. If content is empty, Blitz is just going to render the file specified in template as if the content pointed to an empty file. Keep in mind, since uri is also optional you can now create pages using only 1 line, like so:
    `yaml

    In the config:

    pages:
    • template: 'index.pug'
    • template: 'help.pug'
      `

v0.1.2 Release

v0.1.2 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 15 Nov 01:47
  • Begun using front-matter package to extract front matter from files. As a consequence, the structure of Blitz content files has switched from:
    `

    ` To: ` --- --- `

v0.1.1 Release

v0.1.1 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 14 Nov 10:03

Refer to the official changelog for more info.

  • Changed project homepage to https://getblitz.io/.
  • Fix the bug where content for content files with empty front matter (i.e. no YAML before ---) would not be generated.
  • Added Travis CI config for easier unit/integration testing.

v0.1.0 Release

v0.1.0 Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 13 Nov 18:55

Refer to the official changelog for more info.

  • Added hash to Pug locals available on every page. It's generated randomly every time blitz build is run, and can
    be used to bypass browser's cache, like so:

    link(rel='stylesheet', href=asset('style.css?' + hash))
    //- Will force browser to ignore cache and download the file again, result: 
    //- <link rel="stylesheet" href="/assets/style.css?kNP2xjPl5Atk">
  • Added url() function to Pug locals. If called with no arguments, it returns the URL of the current page. Accepts
    page ID as the only argument, more about it below.

  • Added index page ID by default, available via url('index') in Pug. It points to the website root directory if
    explicit_html_extensions is set to false or to root index.html file otherwise. It's useful for Home/Index links.
    Keep in mind that index is produced regardless of whether the index page exists or not. This ID can be overwritten
    from the config.

  • Added page IDs to the config and the url() function to Pug locals. Now, you can specify an ID for a page and then
    reference it in your templates using url(<id>). Consider the example below:

    # In the config:
    pages:
      # ...
      - uri: '/docs'
        id: 'docs'
        # ...
    //- Somewhere in your Pug template:
    a(href=url(docs))= 'Link to documentation'
  • Made the template property of directories specified in child_directories optional. If it is not present, no files
    will be generated. This is useful if you just want to pass the content from all files in a directory without actually
    creating the pages.

  • Added child_pages and child_directories to Pug locals. Contain all named child pages and all named child directories
    respectively. Since both are arrays, one could iterate over them to retrieve content. If you're looking for an object that has all pages and directories named, use named_child_pages and named_child_directories.

  • Fixed order of menu items. Now items should appear in the same order as they were defined in the config.

v0.0.1 Alpha Release

v0.0.1 Alpha Release Pre-release
Pre-release

Choose a tag to compare

@TimboKZ TimboKZ released this 13 Nov 01:13

Refer to the official changelog for more info.

  • Initial release
  • Blitz config
  • Root pages
  • Child pages and directories
  • Menu with active menu points
  • Relative or absolute links supported
  • Explicit HTML extensions or directories (useful for offline browsing)
  • Project initialisation from a template
  • Assets support
  • Parent page support
  • Global variable support