From 752e62724b763dedb401f27528099831c46b98c7 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 30 Jan 2024 08:24:46 +0000 Subject: [PATCH] Update README --- .vscode/tasks.json | 12 ++++++++++++ README.md | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..78ae450 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "hugo", + "task": "server draft", + "group": "build", + "problemMatcher": [], + "label": "hugo: Serve draft site" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 752fa70..a6d2afb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,22 @@ # Leigh Hackspace Website - Hugo Edition +Hugo version: 0.122 + ## Dev Mode +To run the site locally you can do the following: + * Download [Hugo extended edition](https://github.com/gohugoio/hugo/releases/) (named hugo_extended). * Check out repo * Run `hugo serve -D --gc -w -F` (add -F to show content with future dates) * Goto `http://localhost:1313/` + +The site will be updated in realtime with any changes made to the site. + +## New Blog Post + +* Download and install Hugo +* Run `hugo new blog//name-of-post/index.md`, and a new file will be created in the right folder. +* Update the `author` and `author_email` values +* Add a `subtitle` +* Run Dev Mode (above), or `make serve` and view your post. \ No newline at end of file