This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - | |
| var { options, files } = self.htmlWebpackPlugin | |
| var { env, app, page } = options | |
| include _mixins | |
| doctype | |
| html( | |
| class='no-js' | |
| class=page.layout === 'bare' ? 'is-layout-bare' : 'is-layout-default has-navbar-fixed-top' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* pages/_home.scss */ | |
| // ----------------------------------------------------------------------------- | |
| // Section: hero | |
| // ----------------------------------------------------------------------------- | |
| .home { | |
| .has-bg-img { | |
| background-image: url('../img/scott-webb-GQD3Av_9A88-unsplash.jpg'); | |
| background-position: center 75%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //- | |
| output: 'index' | |
| chunks: [ 'main' ] | |
| sitemap: | |
| path: '/' | |
| priority: 0.8 | |
| changeFreq: 'monthly' | |
| page: | |
| class: 'home' | |
| title: 'Home' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "cactus-boilerplate", | |
| "version": "1.0.0", | |
| "description": "Minimalist fullstack boilerplate and build process to quickly get projects going.", | |
| "author": "Mathias Brouilly", | |
| "license": "MIT", | |
| "repository": { | |
| "type": "git", | |
| "url": "https://github.com/bymathias/cactus" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html class="no-js is-layout-bare" lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <!-- <title>Home | <%= htmlWebpackPlugin.options.TITLE %></title> --> | |
| <title>Home | Cactus Boilerplate</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta property="og:title" content=""> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html class="no-js is-layout-default has-navbar-fixed-top" lang=""> | |
| <head> | |
| <meta charset="utf-8"> | |
| <!-- <title>Home | <%= htmlWebpackPlugin.options.TITLE %></title> --> | |
| <title>Home | Cactus Boilerplate</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta property="og:title" content=""> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - | |
| var { options, files } = self.htmlWebpackPlugin | |
| var { env, app, layout, page } = options | |
| include _mixins | |
| doctype | |
| html(class="no-js has-navbar-fixed-top" lang=app.lang) | |
| head | |
| //- Set character encoding for the document (first) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! webpack | Webpack configuration */ | |
| import dotenv from 'dotenv' | |
| import { resolve, basename } from 'path' | |
| import { readFileSync } from 'fs' | |
| import { sync } from 'glob' | |
| import { dot } from 'dot-object' | |
| import fmp from 'front-matter-pug' | |
| import webpack from 'webpack' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| root: true, | |
| parserOptions: { | |
| parser: 'babel-eslint', | |
| sourceType: 'module', | |
| ecmaVersion: 2018, | |
| allowImportExportEverywhere: true | |
| }, | |
| extends: [ | |
| 'standard', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| parserOptions: { | |
| parser: 'babel-eslint', | |
| sourceType: 'module', | |
| ecmaVersion: 2020, | |
| allowImportExportEverywhere: true | |
| }, | |
| extends: [ | |
| 'standard', | |
| 'plugin:node/recommended', |