Getting Started
Series: Documentation
- 1. Introduction
- 2. Getting Started
- 3. Color Schemes
- 4. Directory Structure and Assets
- 5. Feature Images
- 6. Favicon
- 7. Series
- 8. Archive
- 9. Search
- 10. Backlinks
- 11. Related Article
- 12. Rich Content
- 13. Markdown and Hugo
- 14. Customization
- 15. Reference - Configuration
- 16. Reference - Front matter
- 17. Reference - Icons
Prerequisites
- Install Hugo extended version, the minimum version is
v0.155.1. - Install Git version manager.
- (Optional) Install Go if you want to install Yore using Hugo module instead of Git submodule.
Installing Yore
Pick one of these three ways to set up the Yore theme on your new site.
Git Submodule
This is the recommended method to install Yore. Start by creating a new site:
hugo new site my-site --format yaml
cd my-siteThen, add the theme to your project:
git init
git submodule add https://github.com/ZhenShuo2021/hugo-yore themes/hugo-yoreHugo Module
You must have Go (version 1.25+) installed for this method.
Create your site:
hugo new site my-site --format yaml
cd my-siteInitialize your site as a module:
hugo mod init github.com/yourusername/my-siteAdd this to hugo.yaml:
module:
imports:
- path: github.com/ZhenShuo2021/hugo-yoreFinally, download the theme:
hugo mod get -uUsing the Demo Site Template
If you want a pre-configured site with CSS customization examples, you can clone the setup from our documentation:
# Download the repo
git clone https://github.com/ZhenShuo2021/hugo-yore my-site
# Enter the folder
cd my-site
# ==================================================================
# 1. Delete everything except the `exampleSite` folder,
# including the `.git` folder.
#
# 2. Move the files inside `exampleSite` out into your main `my-site` folder.
# ==================================================================
# Initialize Git
git init
# Add the theme
git submodule add https://github.com/ZhenShuo2021/hugo-yore themes/hugo-yoreBasic Configuration
The Yore theme can be initialized with a minimal configuration. To enable the theme, add the following line:
theme: hugo-yore # this is not required if you use Hugo ModuleIt is highly recommended starting with the Reference Configuration. It provides preconfigured settings that allow you to focus on content creation immediately, bypassing the need for manual configuration.
Launch Your Site
With the theme installed, let's see how it looks. First, create some sample pages:
hugo new content posts/_index.md
hugo new content posts/first/index.md
hugo new content posts/second/index.mdStart the development server:
hugo server -DThe -D flag tells Hugo to build the posts even if they are marked as "draft".
View the site at http://localhost:1313/ and posts at http://localhost:1313/posts/.
Live Reload
Live Reload automatically refreshes the browser when files are saved.
Stop the Server
Press Ctrl+C in the terminal to stop the server.
Update Yore
Git submodule
git submodule update --remote --mergeHugo module
hugo mod get -uUsing the Demo Site Template
git submodule update --remote --mergeSeries: Documentation
- 1. Introduction
- 2. Getting Started
- 3. Color Schemes
- 4. Directory Structure and Assets
- 5. Feature Images
- 6. Favicon
- 7. Series
- 8. Archive
- 9. Search
- 10. Backlinks
- 11. Related Article
- 12. Rich Content
- 13. Markdown and Hugo
- 14. Customization
- 15. Reference - Configuration
- 16. Reference - Front matter
- 17. Reference - Icons