From 0425f4b8e6e27923e7a43b24a05117eb62ac6786 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 24 May 2026 00:08:27 +0200 Subject: frontend: static: Add simple.css symlink This allows to develop the frontend with `hugo server` and its built-in page refresh on file change. For the actual build the file is copied to the build directory by Meson. --- frontend/meson.build | 2 -- frontend/static/meson.build | 2 +- frontend/static/simple.css | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) create mode 120000 frontend/static/simple.css diff --git a/frontend/meson.build b/frontend/meson.build index 4505fdb..6af84e5 100644 --- a/frontend/meson.build +++ b/frontend/meson.build @@ -4,8 +4,6 @@ hugo = find_program('hugo', required : true) hugo_source_targets = [] -css = meson.current_source_dir() / 'simple.css' / 'simple.css' - foreach hugo_source : [ 'hugo.toml', ] diff --git a/frontend/static/meson.build b/frontend/static/meson.build index b08b281..d7ee8fe 100644 --- a/frontend/static/meson.build +++ b/frontend/static/meson.build @@ -1 +1 @@ -hugo_source_targets += fs.copyfile(css) +hugo_source_targets += fs.copyfile('simple.css') diff --git a/frontend/static/simple.css b/frontend/static/simple.css new file mode 120000 index 0000000..8f905d1 --- /dev/null +++ b/frontend/static/simple.css @@ -0,0 +1 @@ +../simple.css/simple.css \ No newline at end of file -- cgit v1.3