Add original_url element to posts

This commit is contained in:
2024-03-13 16:14:27 +00:00
parent ee1a3c6481
commit 4bdc505167
7 changed files with 20 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ To run the site locally you can do the following:
* Run `hugo serve -D --gc -w -F` (add -F to show content with future dates) or `make serve` (if you have `make` installed)
* Go to `http://localhost:1313/` to view the local instance.
The site will be updated in real time with any changes made to the site.
The site will be updated in real-time with any changes made to the site.
## Making Changes
@@ -26,15 +26,18 @@ Branches are automatically deployed to [https://web-test.leighhack.org](https://
### New Blog Post
* Download and install Hugo
* Run `hugo new blog/<year>/name-of-post/index.md`, and a new file will be created in the right folder.
* Run `hugo new blog/<year>/name-of-post`, and a new folder will be created in the year folder with a `index.md` with the post.
* Update the `author` and `author_email` values
* Add a `subtitle`
* If you've posted the blog elsewhere, add the `original_url` value to link to your original post URL.
* Place any images in the folder that was created for your post.
* Set `listing_image` to the image you'll want on the blog listing page ([https://www.leighhack.org/blog/](https://www.leighhack.org/blog/))
* Run Dev Mode (above), or `make serve` and view your post.
### Updating Membership Plans
The membership plan data is held in a YAML file, this is used by the Hackspace API and other tools as well.
* Edit [data/memberships.yaml](data/memberships.yaml), follow the format of existing entries.
* Edit [data/memberships.yaml](data/memberships.yaml), following the format of existing entries.
* Links are standard URIs and can support any of the normal formats (mailto:, etc).