mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
bf5022d0d24033f03f2390c29c2047160cf6bd58
Prep for production deployment
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) ormake serve(if you havemakeinstalled) - Goto
http://localhost:1313/
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.
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. - Update the
authorandauthor_emailvalues - Add a
subtitle - Run Dev Mode (above), or
make serveand view your post.
Languages
Sass
73.9%
HTML
15.5%
SCSS
6.4%
JavaScript
2%
Shell
1.3%
Other
0.8%