Go to file
Jimmy Cai aab65974e9 fix: failed to decode "languages" error
Renamed empty languages.toml to _languages.toml to avoid this problem
2023-07-12 10:32:28 +00:00
.devcontainer fix: container build error due to Codespace bug 2022-03-19 22:54:50 +00:00
.github/workflows ci: use Hugo 0.111.3 for update-theme action 2023-05-26 10:39:05 +02:00
.vscode feat: add --minify arg in the build command (#8) 2022-10-02 10:23:22 +02:00
config/_default fix: failed to decode "languages" error 2023-07-12 10:32:28 +00:00
content doc: add this reposity's link to hello world page 2022-03-06 09:29:45 +00:00
.gitignore Update theme & add gitignore 2021-10-16 08:23:34 +00:00
go.mod CI: Update theme 2022-10-30 02:19:12 +00:00
go.sum CI: Update theme 2022-10-30 02:19:12 +00:00
LICENSE chore: create license 2021-10-15 13:05:48 +02:00
README.md feat: add --minify arg in the build command (#8) 2022-10-02 10:23:22 +02:00

Hugo Theme Stack Starter Template

This is a quick start template for Hugo theme Stack. It uses Hugo modules feature to load the theme.

It comes with a basic theme structure and configuration. GitHub action has been set up to deploy the theme to a public GitHub page automatically. Also, there's a cron job to update the theme automatically everyday.

To get started:

  1. Click Use this template, and create your repository on GitHub. Step 1

  2. Once the repository is created, create a GitHub codespace asociated with it. Create codespace

  3. And voila! You're ready to go. The codespace has been configured with the latest version of Hugo extended, just run hugo server in the terminal and see your new site in action.

  4. Check config folder for the configuration files. You can edit them to suit your needs. Make sure to update the baseurl property in config/_default/config.toml to your site's URL.

  5. Once you're done editing the site, just commit it and push it. GitHub action will deploy the site automatically to GitHub page asociated with the repository. GitHub action


In case you don't want to use GitHub codespace, you can also run this template in your local machine. You need to install Git, Go and Hugo extended locally.

Update theme manually

Run:

hugo mod get -u github.com/CaiJimmy/hugo-theme-stack/v3
hugo mod tidy

This starter template has been configured with v3 version of theme. Due to the limitation of Go module, once the v4 or up version of theme is released, you need to update the theme manually. (Modifying config/module.toml file)

Deploy to another static page hostings

If you want to build this site using another static page hosting, you need to make sure they have Go installed in the machine.

Vercel

You need to overwrite build command to install manually Go:

amazon-linux-extras install golang1.11 && hugo --gc --minify

Make sure also to specify Hugo version in the environment variable HUGO_VERSION (Use the latest version of Hugo extended):

Environment variable