-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Installation as Git Submodule
Git Submodule based installation for the Ananke theme for GoHugo.
- Install Hugo (extended or extended/deploy edition, 0.128.0 or later)
- Install Git
To install or create a GoHugo website from scratch with the Ananke theme using the submodule method, follow these steps:
Verify that you have installed Hugo 0.128.0 or later.
hugo versionCreate the project structure quickstart directory:
hugo new site quickstartChange into the newly created directory:
cd quickstartInitialize Git in the current directory:
git initClone the theme into the themes directory, adding it to your project as a [Git submodule].
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/anankeAppend a line to the site configuration file, indicating the current theme.
echo "theme = 'ananke'" >> hugo.tomlStart Hugo's development server to view the site.
hugo serverRunning this command will start the development server and you can see your website at http://localhost:1313/. To stop the development server press Ctrl + C.
So set up details like comment system follow the steps in the Ananke theme's getting started guide.
Tip
We offer two sample repositories for Ananke's use. Feel free to clone them and play around to test out features described here:
- gohugo-theme-ananke-template-mod --- Hugo Module installation (preferred)
- gohugo-theme-ananke-template-submod --- Git Submodule installation (legacy method)
- Home
- Installation (notes)
- Configuration (notes)
- Content (notes)
- Design and customization
- FAQ