commit 7b186398b89693b7c9e778f80523dbac494e8717
parent 32898bbb25f6700408a4c4d5558a4b47da890801
Author: Sven Möller <sven-moeller@outlook.de>
Date: Wed, 22 Dec 2021 07:12:46 +0100
Add folder for static content
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
@@ -3,19 +3,19 @@ DST_DIR ?= dst
SRCS := $(wildcard *.md)
DSTS := $(SRCS:%.md=$(DST_DIR)/%.html)
-.PHONY: all clean
+.PHONY: all static clean
-all: $(DSTS) $(DST_DIR)/style.css
+all: $(DSTS) static
$(DST_DIR)/%.html: %.md template.html | $(DST_DIR)
title=$$(sed -nE 's/^#\s+//p' $<); \
sed 's/\.md)/\.html)/g' $< | pandoc --template template.html --metadata title="$$title" -o $@
-$(DST_DIR)/style.css: style.css | $(DST_DIR)
- cp $< $@
-
$(DST_DIR):
mkdir -p $@
+static: | $(DST_DIR)
+ rsync -v static/* $(DST_DIR)
+
clean:
rm -rvf $(DST_DIR)
diff --git a/README.md b/README.md
@@ -29,7 +29,7 @@ Links with the extension `.md` will be changed to `.html`.
The `template.html` gets used by `pandoc` to convert the pages to `html`.
-The appearance of the website is defined in `style.css`.
+The contents of the `static` folder are copied to the target directory verbatim.
The `Makefile` contains the recipe for building the website from source.
diff --git a/favicon.ico b/static/favicon.ico
Binary files differ.
diff --git a/style.css b/static/style.css