convert markdown to html

This commit is contained in:
Malin Freeborn 2023-07-08 00:17:17 +02:00
parent bb691259bb
commit 65b5d1bd44
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
4 changed files with 45 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public

22
Makefile Normal file
View File

@ -0,0 +1,22 @@
output : all
public:
mkdir public
public/static: static
cp -r static public/
public/%.html : %.md
@cp start.html $@
@cat $< | sed 's#.md)#.html)#g' | pandoc -f markdown -t html5 -o- >> $@
@cat end.html >> $@
HTML := $(patsubst %.md,public/%.html,$(wildcard *.md))
all : public $(HTML) public/static
test:
echo $(HTML)
clean :
rm -rf public

6
end.html Normal file
View File

@ -0,0 +1,6 @@
</main>
</div>
</body>
</html>

16
start.html Normal file
View File

@ -0,0 +1,16 @@
<!doctype html>
<meta charset="UTF-8">
<html>
<head>
<link rel="icon" type="image/x-icon" href="/static/d.png">
<link rel="stylesheet" href="./static/reset.css">
<link rel="stylesheet" href="./static/main.css">
<title>Decentrala</title>
</head>
<body>
<div class="container">
<div class="header">
<h1 class="logo">DECENTRALA</h1>
</div>
<main>