npm.io
0.0.353 • Published 5 years ago

@hopin/hugo-base-theme

Licence
MIT
Version
0.0.353
Deps
0
Size
25 kB
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

Hopin Base Hugo Theme

Build and Test Publish

This repo contains a theme to use as a base theme.

Installing

Step 1: Install via NPM

npm install --save @hopin/hugo-base-theme
Step 2: Use via Gulp
const basetheme = require('@hopin/hugo-base-theme');

gulp.task('hopin-base-theme', () => {
  return basetheme.copyTheme(path.join(__dirname, `themes`, 'hopin-base-theme'));
})
Step 3: Add to Config

Then add the hopin-base-theme to your sites config:

{
    "baseURL": "...",
    "languageCode": "...",
    "title": "...",
    "publishDir": ".public",

    "theme": ["...", "hopin-base-theme"],
}
Step 4: Add parameters

There are a few optional parameters you will likely want to set in your site config:

{
  "params": {
    "shorttitle": "Base Site",
    "description": "This is the site description",
    "themecolor": "#C0FFEE",
    "googleanalytics": "UA-123456789-1",
    "socialimage": "/images/default-social.png",
    "twittercreator": "@gauntface"
  }
}