aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2023-04-09 21:01:11 +0000
committerKumar Damani <me@kumardamani.net>2023-04-09 21:01:46 +0000
commitcf259bfe2fdc33894f10083737776f79903a6fbe (patch)
treebf1ca4e246ec35d9df9f96f6612294b2aa08a773 /README.md
parent885fea1bd35d17ef4c4d5d75ffc6ac5c4df09e30 (diff)
nixos post
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9ef988c..6a81c04 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,31 @@
# Develop
```bash
+# Setup
+git submodule init
git submodule update --remote
+
+# Create new post
+docker run --rm -it \
+ -v $(pwd):/src \
+ klakegg/hugo:latest \
+ new content/post/<post-slug>/index.md
+
+# Run dev server
hugo server -D
+# OR for docker:
+docker run --rm -it \
+ -v $(pwd):/src \
+ -p 1313:1313 \
+ klakegg/hugo:latest \
+ server -D
```
# Build
```bash
hugo -D
-```
+# Docker:
+docker run --rm -it \
+ -v $(pwd):/src \
+ klakegg/hugo:latest
+``
+https://hub.docker.com/r/klakegg/hugo