Giter Site home page Giter Site logo

namoscato / gohugoiotheme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gohugoio/gohugoiotheme

0.0 1.0 0.0 40.18 MB

A [wip] theme for the gohugo.io home page, docs and theme sites.

License: MIT License

HTML 25.11% CSS 70.18% JavaScript 4.71%

gohugoiotheme's Introduction

GoHugo Sites Theme

Theme for gohugo.io sites:

Update the sites

This theme is currently in use in two Hugo sites:

To update those to use a new version of the theme, run this from each the above repos and commit the changes:

hugo mod get -u github.com/gohugoio/gohugoioTheme

Note that in the hugoDocs repo, the theme is vendored, so after the above command you need to run this:

hugo mod vendor

Tools

NPM

We use NPM for package management The theme's .gitignore file should be kept intact to make sure that all files in the node_modules folder are not pushed to the repository.

Webpack 4+

We use Webpack to manage our asset pipeline. Arguably, Webpack is overkill for this use-case, but we're using it here because once it's set up (which we've done for you), it's really easy to use. If you want to use an external script, just add it via Yarn, and reference it in main.js. You'll find instructions in the js/main.js file.

PostCSS

PostCSS is just CSS. You'll find postcss.config.js in the Webpack.config.js file. There you'll find that we're using postcss-import which allows us import css files directly from the node_modules folder, postcss-cssnext which gives us the power to use upcoming CSS features today. If you miss Sass you can find PostCss modules for those capabilities, too.

Tachyons

This theme uses the Tachyons CSS Library. It's about 15kb gzipped, highly modular, and each class is atomic so you never have to worry about overwriting your styles. It's a great library for themes because you can make most all the style changes you need right in your layouts.

How to Use

You'll find the commands to run in package.json.

For development, you'll need Node with NPM installed:

$ npm install

$ npm start

This will process both postcss, fonts, and scripts.

For production, instead of npm start, run npm run build, which will output smaller versions of your files.

Get prettier diffs on minified CSS/JS

  1. Install js-beautify (npm install -g js-beautify)
  2. Add below to your ~/.gitconfig
[diff "minjs"]
	textconv = js-beautify
	cachetextconv = true
[diff "mincss"]
	textconv = js-beautify --css
	cachetextconv = true

gohugoiotheme's People

Contributors

abh avatar anthonyfok avatar bep avatar coliff avatar dependabot[bot] avatar digitalcraftsman avatar egonelbre avatar halostatue avatar k4rtik avatar kaushalmodi avatar markdblackwell avatar mdhender avatar mohae avatar moorereason avatar n10v avatar natefinch avatar noahcampbell avatar owenwaller avatar rickcogley avatar robertbasic avatar rozza avatar schumacherfm avatar scottcwilson avatar spf13 avatar svendowideit avatar tatsushid avatar tychoish avatar vbatoufflet avatar vsopvsop avatar xhmikosr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.