Last Modified: Sunday, Feb 24, 2019
Config.toml
Notes:
- I use a custom version of the templates for Twitter Cards, Opengraph, and site-schema.
- Make sure you use absolute URLs in the site schema. Make sure the baseurl is set to the site’s full URL in your config.toml
- Check below each individual example for all required & optional metadata.
Required metadata to properly implement all (minus the stuff that will be added automatically by Hugo):
Page
- .Description
- .Params.image
Site
- .Site.Params.description
- .Site.Params.image
- .Site.social.twitter
- .Site.social.facebook
- .Site.Author.name
- .Site.Author.twitter
- .Site.Author.facebook
- .Site.Params.publisher
- .name
- .logo
Google News
Optional:
- .Params.news_keywords (array)
Archetypes & Front Matter
Basic Expected Front Matter: !!!
webpack.dev.js
devServer: {
port: process.env.PORT || 3000,
host: '192.168.1.215',
contentBase: path.join(process.cwd(), "./dist"),
watchContentBase: true,
stats: "none",
quiet: false,
open: true,
historyApiFallback: {
rewrites: [{from: /./, to: "404.html"}]
}
}