Mirror of space-wizards/website-content
Find a file
2025-11-04 14:41:21 +01:00
.github/workflows Robots.txt (and actually link sitemap) (#76) 2025-09-05 02:40:15 +02:00
assets Liltenhead 109 2025-08-06 18:53:54 +02:00
content Remove Lemmy (and bump relevant dates) (#78) 2025-11-04 14:41:21 +01:00
data/home Nuke Media 2023-11-28 02:32:48 -08:00
layouts Remove Lemmy (and bump relevant dates) (#78) 2025-11-04 14:41:21 +01:00
static Landing page (#64) 2024-06-07 15:53:06 +02:00
Tools Progress Report 34: Manifest Destiny (#40) 2022-05-25 21:11:33 +02:00
.editorconfig Try GitHub actions for deploying the website 2021-02-01 20:16:41 +01:00
.gitattributes Work. 2017-06-25 10:09:35 +02:00
.gitignore Add .idea/ to .gitignore 2022-03-29 21:48:54 +02:00
config.yml Robots.txt (and actually link sitemap) (#76) 2025-09-05 02:40:15 +02:00
LICENSE.md aaaaah 2017-06-23 21:04:59 +02:00
package-lock.json Add account and privacy policy buttons (#71) 2025-01-15 23:20:05 +01:00
package.json Add account and privacy policy buttons (#71) 2025-01-15 23:20:05 +01:00
postcss.config.js New website look (#18) 2021-07-16 20:44:38 +02:00
README.md Remove mention of old publish script from reamde. 2022-05-03 10:33:10 +02:00
tsconfig.json Website modernization 2024-04-01 02:41:27 +02:00

Space-Wizards Hugo

This is the Hugo content used to build the website. You will obviously need to have hugo installed and on your PATH. Since I don't expect you to read Hugo's documentation to make a blog post I'll quickly write some stuff down for you here.

First though you need to init Git submodules so do that:

$ git submodule init

Building

You will need to have npm installed to build the website (CSS stuff, mostly). Once you have that run npm install in the project directory to let npm fetch the dependencies like bootstrap.

To build the site, run $ hugo inside the project. That's it. This dumps the output files into the /public/ folder. This isn't really practical for making sure your site's up to scratch though. If you want that, run $ hugo serve instead. It'll create a local (automatically updating) web server that you can connect to to make sure everything checks out.

The website automatically updates when master is pushed.

Writing Posts 101

To add a post, simply create a markdown file under /content/post/ that ends in .md. Sane naming please. Inside this file will be the content of the page, along with some other stuff defining title, date of creation, etc...

The content is just regular markdown, the title and stuff however is called "front matter" and is written in TOML inside +++ at the top of the markdown file.Tt looks like this:

+++
title = "doodad" # Title. Duh.
date = 1970-01-30 # Time. As this is TOML, any TOML date-time will do: https://github.com/toml-lang/toml#offset-date-time
author = "Urist McDude" # Your name.
reddit = "https://reddit.com/link/to/reddit/thread" # Optional, when provided with a link it'll show as "Join the discussion on Reddit" below the article.
tags = [
	"tag1",
	"tag2",
	...
]

categories = [
	"cat1",
	"cat2",
	...
]
# Google the difference between categories and tags, seriously Google results give much better results than I can explain here.
+++

Hi, I'm a blog post!

<!--more-->

And I'm behind the "Read more..." section! Clickbait!

Also important is the summary split, <!--more-->. Put this where you want the summary on the main page listing to split with a "Read More..." link. This happens automatically with Hugo, but Hugo isn't exactly smart about it so I advise you you do it yourself. See Hugo's documentation