@echo "rm-src Deletes symlinks in $(SRC_DIR), checking for non-link data."
.PHONY:
-all: build/index.html
+all: $(BUILD_DIR)/all.html
-build/index.html: .buildlist
+$(BUILD_DIR)/all.html: .buildlist
xargs -n 1 make --no-print-directory < .buildlist
- scripts/index.sh > build/index.html
+ scripts/index.sh > build/all.html
+
+$(BUILD_DIR)/index.html: $(SRC_DIR)/index.md $(BUILD_DIR)/$(ASSETS_DIR)
+ @pandoc --defaults=./defaults/md-to-html-index.yml --output=$@ $<
+ @echo "Building $@ from $<..."
.buildlist:
@echo $(BUILD_LIST) | tr ' ' '\n' > .buildlist
+ @echo $(BUILD_DIR)/index.html >> .buildlist
$(BUILD_DIR)/$(ASSETS_DIR): $(SRC_DIR)/$(ASSETS_DIR)
mkdir -p $(BUILD_DIR)/$(ASSETS_DIR)
--- /dev/null
+from: markdown+wikilinks_title_before_pipe
+to: html5
+filters:
+ - ${.}/../filters/links-to-html.lua
+standalone: True
+css:
+ - ./assets/css/normalize.css
+ - ./assets/css/space-sakura.css
--- /dev/null
+---
+title: Index
+created: 20241229194426
+last_updated: 20241229194426
+---
+
+This is where you would write a home page.
+
+Here is a link to [all the pages in this demo](./all.html).
\ No newline at end of file
########
# MAIN #
########
-FILES="$(find "$BUILD_DIR" -type 'f' -and -name '*.html' -not -name "*index.html" | sort)"
+FILES="$(find "$BUILD_DIR" -type 'f' -and -name '*.html' -not -name "*all.html" | sort)"
make_boilerplate "$(make_ul "$FILES")"