2024-03-13 16:16:16 +00:00
2024-02-19 20:12:00 +00:00
2024-02-19 20:11:41 +00:00
2024-03-13 16:14:27 +00:00
2023-11-28 11:14:49 +00:00
2024-02-20 10:31:55 +00:00
2024-03-13 16:14:27 +00:00
2023-11-05 12:12:07 +00:00
2024-03-03 21:59:50 +00:00
2024-02-19 14:41:50 +00:00
2024-03-13 16:16:16 +00:00

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 (named hugo_extended).
  • Check out repo
  • 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.

Making Changes

All changes to the website must be done on a branch and pushed through the GitHub pull requests workflow. If you have any questions about this process then contact the Tech Infrastructure people.

Deployment

Branches are automatically deployed to https://web-test.leighhack.org with subfolders for each of the branches in the repository. Once merged into main it'll be deployed out to the live website.

Common Tasks

New Blog Post

  • Download and install Hugo (the extended edition)
  • 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/)
  • 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, following the format of existing entries.
  • Links are standard URIs and can support any of the normal formats (mailto:, etc).
Description
No description provided
Readme MIT 280 MiB
Languages
Sass 73.9%
HTML 15.5%
SCSS 6.4%
JavaScript 2%
Shell 1.3%
Other 0.8%