From 48952ecc19dcce9fba82ba64a1dc0b76b234d4ca Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 25 Jan 2017 17:55:10 +0100 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index e69de29..04aabd4 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,40 @@ +xd0.de Website +============== + +New page +-------- +```bash +$ hugo new site xd0.de +$ cd xd0.de/themes +$ git clone https://dev.xd0.de/hendrik/xd0.de.git --branch +$ cd .. +$ nano config.toml +$ hugo new post/foo.md +$ nano content/post/foo.md +$ hugo undraft content/post/foo.md + +$ hugo server --theme=hugo-theme-air --buildDrafts +``` + + +Hosting +------- +```bash +# build +$ hugo + +$ cd public + +# make repository +$ git init +$ git remote add origin $url + +# push branch:public +$ git checkout -b public +$ git add . +$ git commit -m "first commit" +$ git push -u origin public + +# open +$ git clone $url --branch public +``` \ No newline at end of file