tutorial

Configuration Deep Dive

site.yaml is the central configuration file for your Kiln site. This post covers all available options.

Site Metadata

title: My Kiln Site
                description: A blazingly fast static site generator
                baseUrl: https://example.com
                language: en
                theme: default
                

Collections

collections:
                  posts:
                    directory: content/posts
                    permalink: /blog/:slug/
                    sort: date desc
                    paginate: 10
                    feed: true
                    layout: post
                    taxonomies:
                      - tags
                      - categories
                  pages:
                    directory: content/pages
                    permalink: /:slug/
                    sort: weight asc
                    layout: page
                

Taxonomies

taxonomies:
                  tags:
                    permalink: /tags/:slug/
                    paginate: 20
                    layout: taxonomy
                  categories:
                    permalink: /categories/:slug/
                    paginate: 10
                    layout: taxonomy
                
menus:
                  main:
                    - title: Home
                      ref: posts/
                    - title: About
                      ref: pages/about
                    - title: External
                      url: https://example.com
                      external: true
                

Build Options

build:
                  outputDirectory: _site
                  cleanBefore: true
                  minifyHtml: false
                  minifyCss: false
                

Development

dev:
                  port: 5555
                  watch: true
                  liveReload: true
                

Advanced

markdown:
                  extensions:
                    - strikethrough
                    - tables
                    - task-lists
                
                feeds:
                  - collection: posts
                    permalink: /feed.xml
                

Full documentation at Kiln Docs

Understanding these options gives you full control over your Kiln site!