RadiumStatic Website Project Boilerplate for Hugo
Hugo
- Base HTML template included with OpenGraph meta tags
- Optimized Google Fonts loading with preconnect and dns-prefetch
- Hugo Pipes set to auto-compile, minify and MD5-hash CSS and JavaScript for optimal performance with
cache-busting
- Excludes pages from being included in
sitemap.xml
if page includes
sitemapExclude
in the FrontMatter
Bootstrap
- The latest Bootstrap SCSS files included, compiled at build-time
- Responsive Font Sizes enabled by
default
- JavaScript plugins compiled and minified - just use what you need
- Internet Explorer 9 compatible float-based
layout fallback polyfill via CDN
Optimized Google Analytics
- Uses
analytics.js
loaded asynchronously - AnonymizeIP on by default
- Beacon tracking for improved performance
- Tracks all outgoing links, PDF downloads, JavaScript errors
Stylelint
- .stylelintrc with
stylelint-config-recommended rules
- Additional rules configured
.stylelintignore
included to ignore compiled and minified output
VS Code Extensions & Tasks
- Includes
tasks.json
with commands to serve and build (with minify),
CTRL + P, CTRL +
SHIFT + B - Recommended extensions for consistent code formatting and linting defined in
extensions.json
- Code spell-check dictionary, HTMLHint rules and auto-format-on-save turned on by default in
settings.json
Git Precommit Hooks
- Husky and Stage-Lint
- Format js, css, scss, json, yaml and yml with Prettier
- JavaScript linting with ESLint and AirBnb Config
- CSS linting with Stylelint Config
Gulp Tasks
- Losslessly optimize images with gulp-imagemin
- Test all compiled pages with Bootlint, preconfigured for Bootstrap 4