Home

Awesome

Nunjucks Bulma Starter Kit

Requirement

Fork

How to start

  1. download & unzip: https://github.com/benninkcorien/nunjucks-starter-kit/archive/master.zip or

    git clone https://github.com/benninkcorien/nunjucks-starter-kit.git

Run gulp minify if you want to minify your html files inside dist folder


Why?

Directory Layout

Here is the project structure:

Sample workflow

A. without auto-render

  1. edit pages in src

B. with auto-render

  1. run gulp watch

C. with auto-render & auto-reload (via browsersync)

  1. run gulp auto

Page variables

Set page title

{% set title = 'Page title' %} used in <title> tag

Set active menu item

thenav.active('pagename')

{% block nav %} {% import 'macros/nav-macro.njk' as thenav %} {{ thenav.active('about')}} {% endblock %}


Changelog

Added automated CSS/JS version numbering (via gulp).


Nunjucks official docs: https://mozilla.github.io/nunjucks