kemonomimi blog! we like to blog about silly things
Go to file
2023-09-04 11:36:12 +02:00
archetypes Initial commit: Added current work! 2023-05-29 23:37:18 +02:00
content yukijoou/make-a-website: Fixed typoes 2023-09-04 11:36:12 +02:00
layouts layouts: Use delimit for author list to make it cleaner 2023-05-31 19:15:21 +02:00
static style: A bunch of general improvements to the CSS 2023-09-04 11:29:26 +02:00
.gitignore meta: Added gitignore for emacs temporary files 2023-09-03 14:46:37 +02:00
.prettierrc Initial commit: Added current work! 2023-05-29 23:37:18 +02:00 meta: Made build script work even when no past build has been ran 2023-05-31 19:45:54 +02:00
config.toml config: Allowed "unsafe" markdown 2023-09-03 14:47:04 +02:00 meta: Added scripts for building and deploying the website 2023-05-31 19:36:05 +02:00 Initial commit: Added current work! 2023-05-29 23:37:18 +02:00

the kemonomimi blog

This is the source for the kemonomimi blog. This repo contains both the Hugo site, and the contents on the site.

Local setup

You'll need to install gohugo from your distro's repos.

Once you have that, start a test server with

 $ hugo serve --bind -D

To build the website, just run

 $ hugo

and you'll find the output in public/

Adding content

To create a blog post run:

 $ hugo new blog-name/

Then, edit content/blog-name/ in your favourite editor!

Creating a new blog

Create a folder for the blog

 $ mkdir content/blog-name

Create an index for the blog

 $ cat > content/blog-name/ << EOF
   title: "Your blog's name"
   authors: [ "name here" ]

   This is a blog introduction.

The home page currently doesn't auto-populate blogs, so you'll have to edit content/ to add your name to the index, and layouts/_default/baseof.html to add a link in the common header bar

You can now add blog posts and they'll automatically populate your blog's page.

Editing the template(s)

All the files related to the template are found in layouts/_default.

  • layouts/_default/baseof.html is the common base used for all pages
  • layouts/_default/list.html is the layout used for the blogs' home pages, that contain the blog post list
  • layouts/_default/single.html is the layout used for blog posts

There is also layouts/index.html that controls the layout of the home page

All those templates are filled with content from the content/ folder!

The common CSS file can be found at static/style.css