diff --git a/Makefile b/Makefile index 5e04a6e..e53de20 100644 --- a/Makefile +++ b/Makefile @@ -8,18 +8,21 @@ STATIC_DIR = static STAGING_DIR = staging TEMPLATE = pandoc-template.html +MD_FILES := $(wildcard $(SRC_DIR)/*.md) +HTML_FILES := $(patsubst $(SRC_DIR)/%.md,$(STAGING_DIR)/%.html,$(MD_FILES)) + # Default target all: build # Build HTML from markdown -build: $(STAGING_DIR)/index.html copy-static +build: $(HTML_FILES) copy-static # Create staging directory $(STAGING_DIR): mkdir -p $(STAGING_DIR) # Convert markdown to HTML -$(STAGING_DIR)/index.html: $(SRC_DIR)/index.md $(TEMPLATE) | $(STAGING_DIR) +$(STAGING_DIR)/%.html: $(SRC_DIR)/%.md $(TEMPLATE) | $(STAGING_DIR) $(PANDOC) \ --from markdown \ --to html5 \ @@ -31,7 +34,7 @@ $(STAGING_DIR)/index.html: $(SRC_DIR)/index.md $(TEMPLATE) | $(STAGING_DIR) # Copy static files copy-static: | $(STAGING_DIR) - cp -r $(STATIC_DIR)/* $(STAGING_DIR)/ + rsync -avz --exclude='.*' --delete $(STATIC_DIR)/* $(STAGING_DIR)/ # Clean staging directory clean: diff --git a/README.md b/README.md index ae79e81..9583c8f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ -# name-website +# Website repository for esus.name + +[Link to Website](https://esus.name) For now this is where we are, establishing a name and this website should explain the name, and then link to more specialized parts of the project. As long as we have no specialized parts this -is the main website repo +is the main website repo. diff --git a/pandoc-template.html b/pandoc-template.html index 3c44207..5b79219 100644 --- a/pandoc-template.html +++ b/pandoc-template.html @@ -17,9 +17,10 @@
Copyright 2025 ΞSUS. License CC-BY-SA-4. Legal Notice.