diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2d9e9f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist +.idea diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d2bca13 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.PHONY: mkdist clean + +all: clean index now links + rm -rf dist/template.html + +watch: + while sleep 1 ; do \ + find ./src -iname '*.html' -o -name "*.css" \ + | entr -d make -f ./Makefile ; \ + done + +mkdist: + mkdir -p dist + +template: mkdist src/start.html src/nav.html src/side.html + cp -r src/styles dist + cat src/start.html src/nav.html src/side.html > dist/template.html + +index: template src/pages/index.html + cat dist/template.html src/pages/index.html src/end.html > dist/index.html + +now: template src/pages/now.html + cat dist/template.html src/pages/now.html src/end.html > dist/now.html + +links: template src/pages/links.html + cat dist/template.html src/pages/links.html src/end.html > dist/links.html + +clean: + rm -rf dist diff --git a/README.md b/README.md index 62961fc..a809f49 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ -# website +# Homepage + +My own private website hosted at https://rhetenor.de . + +Goal is to create an accessible homepage using only HTML5 + CSS . + +The static generation works mainly with GNU utils (cat, make, sh) and the blog is written in markdown converted with pandoc. + +## Usage + + * `make` to create the homepage, requires GNU utils + * `make watch` to update the homepage whenever a file in `src/` changes. Requires `entr` for file watching -My own private website hosted at https://rhetenor.de \ No newline at end of file diff --git a/src/blog/test/1.md b/src/blog/test/1.md new file mode 100644 index 0000000..17f6e90 --- /dev/null +++ b/src/blog/test/1.md @@ -0,0 +1,3 @@ +# hej +ein test +** toller blogpost ** diff --git a/src/blog/test/2.md b/src/blog/test/2.md new file mode 100644 index 0000000..7dda38e --- /dev/null +++ b/src/blog/test/2.md @@ -0,0 +1,4 @@ +# lol +another test + +** with an even better english blogpost ** oO diff --git a/src/blog/test/3.md b/src/blog/test/3.md new file mode 100644 index 0000000..14e6419 --- /dev/null +++ b/src/blog/test/3.md @@ -0,0 +1,2 @@ +i dont care about this + diff --git a/src/blog/test/out.html b/src/blog/test/out.html new file mode 100644 index 0000000..e68dcf3 --- /dev/null +++ b/src/blog/test/out.html @@ -0,0 +1,6 @@ +
ein test ** toller blogpost **
+another test
+** with an even better english blogpost ** oO
+i dont care about this
diff --git a/src/end.html b/src/end.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/src/end.html @@ -0,0 +1,2 @@ +