Repos / s4g / a0a8735a4f
commit a0a8735a4fbeea533ef66e11ecfba769212d3ee4
Author: Nhân <hi@imnhan.com>
Date: Thu Jul 6 17:28:42 2023 +0700
use unique file extension for site metadata
So I can do "double click to open" like a normal person.
At least that's the plan though. GUI is not implemented yet.
diff --git a/main.go b/main.go
index 3b84b8b..db6a151 100644
--- a/main.go
+++ b/main.go
@@ -18,6 +18,7 @@
const DJOT_EXT = ".dj"
const FEED_PATH = "feed.xml"
+const SITE_FILENAME = "website.wbmkr2k"
func main() {
var port, folder string
@@ -102,7 +103,7 @@ func readSiteMetadata(fsys WritableFS) SiteMetadata {
ShowFooter: true,
GenerateHome: true,
}
- _, err := toml.DecodeFS(fsys, "website.toml", &sm)
+ _, err := toml.DecodeFS(fsys, SITE_FILENAME, &sm)
if err != nil {
panic(err)
}
diff --git a/www/website.toml b/www/website.wbmkr2k
similarity index 83%
rename from www/website.toml
rename to www/website.wbmkr2k
index 18cf5d1..947a0f1 100644
--- a/www/website.toml
+++ b/www/website.wbmkr2k
@@ -1,3 +1,6 @@
+# vim: ft=toml
+# -*- mode: toml; -*-
+
Address = "https://coolzone.example.com"
Name = "CoolZone"
Tagline = "Cool people only."