From 85662893e031648e21e056eb46056f0c533e9812 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 27 Jun 2023 01:09:47 +0900 Subject: Bring back homepage redirect --- .gitignore | 1 - 08/algae.jpg | Bin 0 -> 8425516 bytes 08/index.xml | 1 + Makefile | 11 ++++------- index.xhtml | 6 ++++++ 5 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 08/algae.jpg create mode 100644 index.xhtml diff --git a/.gitignore b/.gitignore index 85b5dd0..3c32197 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ *.small.jpg -index.xhtml /index.xml /atom.xml /result diff --git a/08/algae.jpg b/08/algae.jpg new file mode 100644 index 0000000..1353f3e Binary files /dev/null and b/08/algae.jpg differ diff --git a/08/index.xml b/08/index.xml index 81cb7ab..9d3b1f4 100644 --- a/08/index.xml +++ b/08/index.xml @@ -25,6 +25,7 @@ + 2023 diff --git a/Makefile b/Makefile index 4f37502..63c5cd8 100644 --- a/Makefile +++ b/Makefile @@ -8,19 +8,16 @@ PREFIX ?= /tmp/px.cnx.gdn PICTURES := $(filter-out %.small.jpg $(PREFIX)/%.jpg, $(wildcard */*.jpg)) THUMBNAILS := $(patsubst %.jpg,%.small.jpg,$(PICTURES)) -DATA := $(wildcard */index.xml) index.xml +DATA := $(wildcard */index.xml) PAGES := $(patsubst %.xml,%.xhtml,$(DATA)) OUTPUTS := $(THUMBNAILS) $(PAGES) atom.xml -ALL := $(OUTPUTS) $(PICTURES) favicon.svg style.css +ALL := $(OUTPUTS) $(PICTURES) index.xhtml favicon.svg style.css all: $(OUTPUTS) %.small.jpg: %.jpg epeg -w 1024 -p -q 80 $< $@ -index.xml: 09/index.xml - ln -fs $< $@ - %.xhtml: %.xml page.xslt xsltproc page.xslt $< > $@ @@ -28,7 +25,7 @@ atom.xml: atom.xslt $(DATA) cc.svg by.svg sa.svg xsltproc atom.xslt > atom.xml clean: - rm -f atom.xml index.{xml,xhtml} */{index.xhtml,*.small.jpg} + rm -f atom.xml */{index.xhtml,*.small.jpg} $(PREFIX)/%: % install -Dm644 $< $@ @@ -38,6 +35,6 @@ install: all $(addprefix $(PREFIX)/,$(ALL)) uninstall: rm -fr $(PREFIX)/* -live: $(THUMBNAILS) index.xml atom.xml +live: $(THUMBNAILS) atom.xml .PHONY: all clean install uninstall live diff --git a/index.xhtml b/index.xhtml new file mode 100644 index 0000000..59363be --- /dev/null +++ b/index.xhtml @@ -0,0 +1,6 @@ + + + + + + -- cgit 1.4.1