www_duniayetu/run.vsh

20 lines
361 B
V Shell
Raw Normal View History

2023-12-05 16:03:18 +00:00
#!/usr/bin/env -S v
2023-12-13 13:15:13 +00:00
import freeflowuniverse.crystallib.osal.zola
2023-12-05 12:58:10 +00:00
fn main() {
2023-12-13 13:15:13 +00:00
mut site := zola.new_site(
name: 'flowers4peace'
url: 'http://localhost:8089'
path_content: '${dir(@FILE)}/content'
path_build: '${dir(@FILE)}/build'
path_publish: '${dir(@FILE)}/public'
)!
2023-12-05 12:58:10 +00:00
2023-12-13 13:15:13 +00:00
site.prepare()!
site.generate()!
site.serve(
port: 8089
open: true
)!
}