-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtola.toml
More file actions
97 lines (86 loc) · 2.98 KB
/
tola.toml
File metadata and controls
97 lines (86 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Tola configuration file (v0.7.0)
# https://github.com/tola-rs/tola-ssg
# Site metadata for feed generation and Typst templates
# Access in Typst via `#import "@tola/site:0.0.0": info`
# For custom fields, use `[site.info.extra]` and access via `info.extra.xxx`
[site.info]
title = "amy's blog"
author = "amy erskine"
email = "contact@amyerskine.me"
description = "my little blog"
language = "en"
url = "https://amy.is-a.dev"
# SEO configuration containing feed, sitemap, and OG tag settings
[site.seo]
auto_og = false # Auto-inject OG meta tags (can be overridden in Typst)
# Feed generation settings (RSS/Atom)
[site.seo.feed]
enable = true # Enable feed generation
path = "feed.xml" # Output path for feed file
format = "rss" # Feed format: rss | atom
# Sitemap generation settings
[site.seo.sitemap]
enable = true # Enable sitemap generation
path = "sitemap.xml" # Output path for sitemap file
[site.header]
# Inject a dummy script to prevent FOUC (Flash of Unstyled Content).
# The script blocks rendering briefly, giving CSS time to load.
no_fouc = true
# Favicon path (relative to site root).
icon = "assets/images/favicon.ico"
# CSS stylesheet paths (relative to site root).
styles = ["assets/styles/tailwind.css"]
# Script entries (relative to site root).
scripts = []
# Raw HTML elements to insert into head.
elements = []
[build.assets]
# Nested directories (preserve structure).
# Each directory is copied to `output/{basename}/`.
# Files inside can be referenced as `/{basename}/path/to/file`.
# Examples:
# - `"assets"` -> `/assets/xxx`
# - `"assets/styles"` -> `/styles/xxx`
# - `{ dir = "vendor", as = "lib" }` -> `/lib/xxx`
nested = [
"assets/posts",
"assets/styles",
"assets/images",
"assets/fonts",
"assets/88x31"
]
# Flatten files (copy to output root).
# Each file is copied directly to `output/{basename}`.
# Examples:
# - `"assets/CNAME"` -> `/CNAME`
# - `{ file = "icons/fav.ico", as = "favicon.ico" }` -> `/favicon.ico`
flatten = []
# CSS processor hook (Only tailwind now)
[build.hooks.css]
enable = true # Enable Tailwind CSS processing
# Output asset path (also used as Tailwind input file location)
path = "assets/styles/tailwind.css" # e.g. "assets/style/tailwind.css"
command = ["tailwindcss"] # e.g. ["npx", "tailwindcss"] if you want
[build.slug]
path = "safe"
fragment = "full"
separator = "dash"
case = "lower"
# Development server settings
[serve]
# Network interface to bind
# - `127.0.0.1` (default): localhost only
# - `0.0.0.0`: all interfaces (LAN accessible)
interface = "127.0.0.1"
port = 5277 # HTTP port number
watch = true # Enable file watcher for live reload
# Respect path_prefix from site.url during local development
# - `false` (default): Ignore prefix, access pages at `/`
# - `true`: Keep prefix, access at `/my-project/`
respect_prefix = false
[validate.pages]
enable = true # Enable page link validation
level = "error" # Failure level: error | warn
[validate.assets]
enable = true # Enable asset validation
level = "error" # Failure level: error | warn