mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
first commit
This commit is contained in:
parent
2e3d869902
commit
4a971e13d2
3 changed files with 56 additions and 0 deletions
31
Makefile
Normal file
31
Makefile
Normal file
|
@ -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/*
|
13
static/style.css
Normal file
13
static/style.css
Normal file
|
@ -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%;
|
||||
}
|
12
tpl/default.tpl
Normal file
12
tpl/default.tpl
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?theme title?></title>
|
||||
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
|
||||
</head>
|
||||
<body>
|
||||
<?theme body?>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue