Skip to content

Tupsula/tupsulafi-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tupsulafi-site

Hugo SSG of tupsula.fi version because Wordpress and PHP kinda sucks.

Site is currently running on https://tupsula.fi. Site is powered by Cloudflare's Pages. Site is also served under https://tupsula.pages.dev

Notes regarding site edits

CF Pages creates automatically websites of each branch. This follows logic https://<branch_name>.tupsula.pages.dev. After adding new features and/or changes, create pull request to master branch (remember to select correct branches). Keep in mind that free tier of CF Pages gives something like 500 builds per month. So if you're doing completely new features, develop site locally.

Basic text editing is done under /tupsula/content/. Just look sites that have been already made for examples.

If any issues arise, contact @sampozki.

Building

Go to site's folder and run:

hugo

Developing

Go to site's folder and run:

# Install submodules
git submodule update --init

hugo server

Install to your computer

Hugo needs go.

Go

Install go from go.dev/doc/install

Or follow:

wget https://go.dev/dl/go1.24.5.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version

Hugo

# Uses currently this version:
VERSION=0.148.2
wget https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_Linux-64bit.tar.gz
tar -xvzf hugo_extended_${VERSION}_Linux-64bit.tar.gz

# Installation location doesn't matter. Hugo is just a single bin file
sudo mv hugo /usr/local/bin/
sudo chmod +x /usr/local/bin/hugo

Cloudflare Pages

Site is currently running on top of Cloudflare Pages. It is connected to this repository. Everytimes master branch gets pushed it builds a new site.

Custom domain can be created with CNAME record.

Build configuration

  • Build command: hugo
  • Build output: public
  • Root directory: tupsula

Env variables

  • HUGO_ENV = production
  • HUGO_VERSION 0.148.2

TODO

  • Finish the site

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 80.4%
  • CSS 19.6%