summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/layouts/meson.build12
-rw-r--r--web/meson.build21
2 files changed, 33 insertions, 0 deletions
diff --git a/web/layouts/meson.build b/web/layouts/meson.build
new file mode 100644
index 0000000..e582474
--- /dev/null
+++ b/web/layouts/meson.build
@@ -0,0 +1,12 @@
+sources = [
+ 'baseof.html',
+ 'home.html',
+]
+
+foreach source : sources
+ configure_file(
+ input: source,
+ output: source,
+ copy: true,
+ )
+endforeach
diff --git a/web/meson.build b/web/meson.build
new file mode 100644
index 0000000..743aa77
--- /dev/null
+++ b/web/meson.build
@@ -0,0 +1,21 @@
+hugo_toml = 'hugo.toml'
+
+configure_file(
+ input: hugo_toml,
+ output: hugo_toml,
+ copy: true,
+)
+
+subdir('layouts')
+
+custom_target('website',
+ output: ['public'],
+ command: [
+ 'hugo',
+ '--source',
+ meson.current_build_dir(),
+ '--destination',
+ meson.current_build_dir() / 'public',
+ ],
+ build_by_default: true,
+)