From 4a971e13d2d063fed53ad3910e568ba7adfef241 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Fri, 13 Mar 2020 15:35:20 +0300 Subject: [PATCH] first commit --- Makefile | 31 +++++++++++++++++++++++++++++++ static/style.css | 13 +++++++++++++ tpl/default.tpl | 12 ++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 Makefile create mode 100644 static/style.css create mode 100644 tpl/default.tpl diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d3f5699 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +OUTDIR=out +PAGEDIR=pages +SRCDIR=src +TPLDIR=tpl + +_PNGS = $(shell find $(PAGEDIR) -name \*.png) +PNGS = $(patsubst $(PAGEDIR)/%,$(OUTDIR)/%,$(_PNGS)) + +_PAGES = $(shell find $(PAGEDIR) -name \*.md) +PAGES_HTML = $(patsubst $(PAGEDIR)/%.md,$(OUTDIR)/%.html,$(_PAGES)) + +_STATIC = $(shell find static/ -name \*) +OUT_STATIC = $(patsubst static/%,out/%,$(_STATIC)) + + +.SUFFIXES: +.PHONY: all + +all: $(PAGES_HTML) $(OUT_STATIC) + +$(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl + theme -t $(TPLDIR)/default.tpl -o $@ $< + +$(OUTDIR)/%: static/% + cp -r $< $@ + +$(OUTDIR): + mkdir $(OUTDIR) + +clean: + rm -rf out/* diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..b672e6f --- /dev/null +++ b/static/style.css @@ -0,0 +1,13 @@ +html { + background:#eeeeec; + min-height: 100%; +} + +body { + background: white; + border-left: 1px solid #babdb6; + border-right: 1px solid #babdb6; + max-width: 720pt; + margin: auto; + min-height: 100%; +} diff --git a/tpl/default.tpl b/tpl/default.tpl new file mode 100644 index 0000000..444cc23 --- /dev/null +++ b/tpl/default.tpl @@ -0,0 +1,12 @@ + + + + + + <?theme title?> + + + + + +