Browse Source

add makefile

main
Milan 4 weeks ago
parent
commit
a215141d4a
Signed by: petabyteboy GPG Key ID: A6DC6A7CB0B97859
6 changed files with 33 additions and 2 deletions
  1. +31
    -0
      Makefile
  2. +0
    -0
      files/avi.jpg
  3. +0
    -0
      files/style.css
  4. +0
    -0
      files/voyager-dark.webp
  5. +1
    -1
      index.md
  6. +1
    -1
      template.html

+ 31
- 0
Makefile View File

@ -0,0 +1,31 @@
outdir ?= ./public
all = $(addprefix ${outdir}/, $(addsuffix .html, $(basename $(wildcard *.md))))
files = $(addprefix ${outdir}/, $(wildcard files/*))
all: ${all} ${files}
show:
@echo ${all}
@echo ${static}
${outdir}:
mkdir -p ${outdir}
${outdir}/files:
mkdir -p ${outdir}/files
${outdir}/%.html: %.md template.html ${outdir}
pandoc --standalone --template template.html $< -o $@
${outdir}/files/%: files/% ${outdir}/files
cp $< $@
clean:
rm -r ${outdir}
start: ${all}
{ php -S 127.0.0.1:8123 -t ${outdir} & \
echo $$! > php.pid; }
stop:
kill `cat php.pid`

avi.jpg → files/avi.jpg View File


style.css → files/style.css View File


voyager-dark.webp → files/voyager-dark.webp View File


+ 1
- 1
index.md View File

@ -3,7 +3,7 @@ title: Milan // PetaByteDev
page-about: true
---
![Picture of Milan with blue hair](./avi.jpg)
![Picture of Milan with blue hair](./files/avi.jpg)
# Hi there, I'm Milan ✨


+ 1
- 1
template.html View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./files/style.css">
<title>$title$</title>
</head>
<body>


Loading…
Cancel
Save