summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-03 21:45:55 +0200
committerxengineering <me@xengineering.eu>2025-04-03 21:50:55 +0200
commit34c0c109551c3a67bb89dcfbcd437a5ed812809f (patch)
tree09081730f4a582befff1d8615953455512301310
parentdb02eb87ce5e955f1c970ea3ce88745e03f0bb74 (diff)
downloadiot-contact-34c0c109551c3a67bb89dcfbcd437a5ed812809f.tar
iot-contact-34c0c109551c3a67bb89dcfbcd437a5ed812809f.tar.zst
iot-contact-34c0c109551c3a67bb89dcfbcd437a5ed812809f.zip
web: Add simple.css to website
This uses meson to copy the simple.css file to the build dir and references the CSS file in the HTML code.
-rw-r--r--meson.build2
-rw-r--r--web/content/meson.build5
-rw-r--r--web/layouts/baseof.html1
-rw-r--r--web/meson.build9
4 files changed, 13 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 537d067..494da4e 100644
--- a/meson.build
+++ b/meson.build
@@ -1,3 +1,5 @@
project('iot-contact')
+css = meson.current_source_dir() / 'simple.css' / 'simple.css'
+
subdir('web')
diff --git a/web/content/meson.build b/web/content/meson.build
new file mode 100644
index 0000000..75d3120
--- /dev/null
+++ b/web/content/meson.build
@@ -0,0 +1,5 @@
+configure_file(
+ input: css,
+ output: 'simple.css',
+ copy: true,
+)
diff --git a/web/layouts/baseof.html b/web/layouts/baseof.html
index 983e6e1..b52d039 100644
--- a/web/layouts/baseof.html
+++ b/web/layouts/baseof.html
@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" type="text/css" href="simple.css">
<title>{{ .Site.Title }}</title>
</head>
<body>
diff --git a/web/meson.build b/web/meson.build
index 3fcffed..20a4520 100644
--- a/web/meson.build
+++ b/web/meson.build
@@ -1,11 +1,12 @@
+subdir('content')
+
custom_target('website',
output: ['public'],
command: [
'hugo',
- '--source',
- meson.current_source_dir(),
- '--destination',
- meson.current_build_dir() / 'public',
+ '--source', meson.current_source_dir(),
+ '--destination', meson.current_build_dir() / 'public',
+ '--contentDir', meson.current_build_dir() / 'content',
],
depend_files: [
'hugo.toml',