_config.yml support

Use _config.yml files, just like Jekyll. Import them inside your script tags and use them as you wish.


title: "Svekyll: blogging with the simplicity and tradition of Jekyll, the futuristic power of Svelte"
theme: cyberpunk

  provider: matomo
    site_id: 3
    url: "//a.p.public.do"

Then, use it inside your templates:

import { config } from '$lib/config';

console.log('Config', config.title);


<h1>{ config.title }</h1>

You can also use _config.toml files if you prefer TOML