Overview
The Starter Theme for Hugo is a blank starter theme designed for use with the Hugo static site generator. This theme provides a foundation for building customizable and responsive websites.
Features
- Lightweight and minimalistic design
- Integrates with Hugo static site generator
- Responsive and mobile-friendly layout
- Easy customization through Hugo templates
- Support for DISQUS comments
- Production-ready build with minified CSS and JavaScript files
Installation
To install the Starter Theme for Hugo, follow these steps:
- If your Hugo website is in the www folder, navigate to that folder in your terminal.
- Use the following command to preview the site:
hugo server -D - Install the required node modules by running
npm install(Requires Node v12 or later) - Generate an unminified development build with sourcemaps by running
npm run build - To build for production, run
HUGO_ENV=production npm run build. This will generate minified CSS and JavaScript files in the dist folder.
To enable DISQUS comments, add disqusShortname = YOURSHORTNAME to your Hugo configuration file.
To run the site in production mode and activate features like Google Analytics, use the command HUGO_ENV=production before your build command.
Summary
The Starter Theme for Hugo provides a customizable and responsive foundation for building websites using the Hugo static site generator. With features such as easy customization, support for DISQUS comments, and production-ready builds, this theme is a great starting point for creating modern and efficient websites.