From 2e5507fbf78f83a856ef42e87418c179bc3002b5 Mon Sep 17 00:00:00 2001
From: Andre Heinecke
Date: Thu, 5 Jun 2025 23:21:39 +0200
Subject: [PATCH] Add legal and philosophy pages
---
Makefile | 9 +-
README.md | 6 +-
pandoc-template.html | 8 +-
src/index.md | 6 +-
src/legal.md | 41 ++++++++
src/philosophy.md | 238 +++++++++++++++++++++++++++++++++++++++++++
static/css/style.css | 135 ++++++++++++++++++++++++
7 files changed, 432 insertions(+), 11 deletions(-)
create mode 100644 src/legal.md
create mode 100644 src/philosophy.md
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 @@
ΞSUS
@@ -39,6 +40,7 @@
* ΞSUS (pronounced "Esus") - The wordplay: X IS US
We make our own reality through collaboration and shared observation.
+ Copyright 2025 ΞSUS. License CC-BY-SA-4. Legal Notice.