convert markdown to html
This commit is contained in:
parent
bb691259bb
commit
65b5d1bd44
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
public
|
22
Makefile
Normal file
22
Makefile
Normal 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
|
16
start.html
Normal file
16
start.html
Normal 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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user