https://github.com/jlumbroso/hugo-stack-template
Template for a Hugo website hosted on GitHub Pages using the Stack theme by @CaiJimmy!
https://github.com/jlumbroso/hugo-stack-template
github-template
Last synced: 7 months ago
JSON representation
Template for a Hugo website hosted on GitHub Pages using the Stack theme by @CaiJimmy!
- Host: GitHub
- URL: https://github.com/jlumbroso/hugo-stack-template
- Owner: jlumbroso
- License: mit
- Created: 2023-02-12T02:39:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T03:03:35.000Z (over 2 years ago)
- Last Synced: 2025-01-29T22:33:15.744Z (8 months ago)
- Topics: github-template
- Language: Dockerfile
- Homepage: https://jlumbroso.github.io/hugo-stack-template/
- Size: 929 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hugo + GitHub Pages + GitHub Actions = โค๏ธ
This repository is a **self-contained template** to deploy a
[Hugo static site](https://gohugo.io/), hosted on [GitHub](https://github.com), and deployed to [GitHub Pages](https://pages.github.com)
hosting, using the continuous integration available through
[GitHub Actions](https://actions.github.com)โall for free.The theme used by this template is [Stack](https://github.com/CaiJimmy/hugo-theme-stack) ๐, "_Card-style Hugo theme designed for bloggers_" by [@CaiJimmy](https://github.com/CaiJimmy).
## โ๏ธ Quick Start
Launching a website with this template will take 5-10 minutes:
1. ๐ชช [**Register** a GitHub account](https://github.com/join) if you don't already have one.
2. ๐ช **Instantiate** this template repository [by clicking the green "Use this template" button above](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template).
3. ๐ฎ **Enable write permissions for GitHub Actions**, [by setting the permission level of `GITHUB_TOKEN` to "Read and write permissions", as described in the documentation](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions).
4. ๐ฐ Go to the page of your repository, and [select the `gh-pages` branch as a **publishing source**](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch), to publish the website on GitHub Pages.
5. ๐ ๏ธ Edit the file `config.yanl` to change the value of `baseURL`: It must reflect **the absolute URL of your website**, including the protocol (`https://`), the domain name, and the path to the root of your website (this is usually `https://.github.io/`, for instance the original website for this template is [https://jlumbroso.github.io/hugo-stack-template/](https://jlumbroso.github.io/hugo-stack-template/)). Once you commit this change, the website will be automatically deployed to GitHub Pages! ๐ฅณ๐
6. ๐ Update the `README.md` so it doesn't look like you just instantiated the template! ๐
Once you are done, you can visit [Stack's documentation](https://stack.jimmycai.com/) to learn how to customize your website.
### โ๏ธ Using a custom domain
Optionally, instead of publishing on a `github.io` subdomain, you can publish on a custom domain. To do so, you need to:
- Edit the file `.github/workflows/gh-pages.yml` to change the value of `CNAME` to your custom domain name.
- Edit the file `config.toml` to change the value of `baseURL` to your custom domain name.
## โ๏ธ Credits
This template was created by [**@jlumbroso**](https://github.com/jlumbroso), based on the [Stack](https://github.com/CaiJimmy/hugo-theme-stack). The theme is licensed GPLv3, and the template is licensed MIT.