From: Daniel Date: Tue, 23 Jun 2020 00:14:25 +0000 (+0200) Subject: switches to markdown X-Git-Tag: markdown^2~9 X-Git-Url: https://git.thefekete.net/?p=thefekete.net.git;a=commitdiff_plain;h=d1e1cf8921f1eac16a74ed5a1c4787fa24766fe9 switches to markdown --- diff --git a/.gitignore b/.gitignore index e69de29..0b84df0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +*.html \ No newline at end of file diff --git a/Makefile b/Makefile index 8b9558d..a2f747b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ +M=$(wildcard *.md) +H=$(patsubst %.md,%.html,$M) + +all: $H + +%.html: %.md + markdown $< >$@ + view: xdg-open index.html -publish: +publish: all @git diff-index --quiet HEAD -- && test -z "$(git ls-files --others)" || ( \ 1>&2 echo "Index is dirty or there are uncommitted files!"; \ git status; \ @@ -10,4 +18,7 @@ publish: git archive --format=tgz HEAD \ | ssh root@thefekete.net "cd /var/www/thefekete.net && tar zxvf -" -.PHONY: publish view +clean: + rm -f $H + +.PHONY: all publish view clean diff --git a/index.html b/index.html deleted file mode 100644 index 515c9e8..0000000 --- a/index.html +++ /dev/null @@ -1,5 +0,0 @@ -

TheFekete's Net

- -

This is the first of many sentences.

- - diff --git a/index.md b/index.md new file mode 100644 index 0000000..fa14fac --- /dev/null +++ b/index.md @@ -0,0 +1,5 @@ +# The Fekete's Net + +This is the first sentence. + +![Trogdor](img/trogdor.png)