about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-06-27 01:09:47 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-06-27 01:09:47 +0900
commit85662893e031648e21e056eb46056f0c533e9812 (patch)
tree806ccf605be23074dcd28ba6e2558217f1208f2e
parent6b5b671957d80321b5d6018cde1d3a2a7ffa0847 (diff)
downloadpx-85662893e031648e21e056eb46056f0c533e9812.tar.gz
Bring back homepage redirect
-rw-r--r--.gitignore1
-rw-r--r--08/algae.jpgbin0 -> 8425516 bytes
-rw-r--r--08/index.xml1
-rw-r--r--Makefile11
-rw-r--r--index.xhtml6
5 files changed, 11 insertions, 8 deletions
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
--- /dev/null
+++ b/08/algae.jpg
Binary files differdiff --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 @@
   <post title="hydro homies" lang="en">
     <picture filename="barnacles" desc="barnacles on rocks and bridge columns"/>
     <picture filename="moss" desc="moss on rocks in a brook"/>
+    <picture filename="algae" desc="algae floating on a river"/>
     <time>2023-05-09T09:25:18Z</time>
   </post>
   <year>2023</year>
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 @@
+<html xmlns='http://www.w3.org/1999/xhtml'>
+  <meta http-equiv='cache-control' content='no-cache'/>
+  <meta http-equiv='refresh' content='0; url=/09'/>
+  <link rel='alternate' type='application/atom+xml' href='/atom.xml'/>
+  <link rel='icon' href='/favicon.svg'/>
+</html>