Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/growdigital/indiego

Socially aware Hugo blog boilerplate, with modular CSS
https://github.com/growdigital/indiego

bem bem-methodology facebook google-plus gulp hugo hugo-blog hugo-boilerplate hugo-theme indieweb microformats modular-css opengraph posse schema-org social twitter

Last synced: 3 months ago
JSON representation

Socially aware Hugo blog boilerplate, with modular CSS

Awesome Lists containing this project

README

        

# Indiego

**Not under active development. I do want to ditch gulp & use Hugo Pipelines to simplify process. If someone else wants to have a go, please do!**

Socially aware Hugo blog starter kit, with modular CSS gulp.js workflow

![Indiego logo](themes/go/static/assets/img/logo.png)

β€œI just didn't add anything to make it slow.”
Taking inspiration from [Phil Hawksworth](https://mobile.twitter.com/philhawksworth/status/1038440732741259265)

### Version: 0.1.8

## Requires

* [Git](https://git-scm.com/)
* [Node & npm](https://nodejs.org/en/)
* Basic understanding of [the command line](https://en.wikipedia.org/wiki/Command-line_interface)

## To get started

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/growdigital/indiego)

1. Click the big button above
2. In a terminal, `git clone` your new repository to your local machine
3. Add your details to [`config.yml`](https://github.com/growdigital/indiego/blob/master/config.yml)
4. Change directory, run `hugo serve`
5. In new terminal, cd `themes/go/`
6. Run `npm install`
7. Run `gulp`. A [Browserync](https://www.browsersync.io/) window should open.
8. Add content. Design your theme. The world is your oyster 🐚

Full Hugo documentation at [gohugo.io](https://gohugo.io/) and Indiego documenation at [indiego.grwd.uk](https://indiego.grwd.uk/)

## To add content

* To create new blog post, from command line in top level directory, run `hugo new blog/your-blog-post-name.md`
* To create new status post, run `hugo new status/yourstatuspostname.md`
* So that I can search status posts by date, I add a 6-digit datestamp eg `180803-shorttitle`
* Status posts use the date as the `

`, they don’t really have a title as such
* To create a new page, pop a Markdown file in the `content` directory. Use the `about.md` page to crib the [Frontmatter](https://gohugo.io/content-management/front-matter#readout)

Full documentation is on the [Hugo website](https://gohugo.io/content-management/).

## To edit the theme

* The Indiego theme is called **go**. As you can see, it is incredibly minimal.
* The organisation is based on [ITCSS](https://www.indiego.org.uk/modular/#2-css-organisation) (Inverted Triangle CSS). All CSS, JavaScript and images are organised by modules in the `go/src` directory, from general to specific:
1. Variables
2. Base CSS
3. Objects (site wide patterns)
4. Components
5. Utilities (trumping !important)
6. Shameful
* A simple [Gulp](https://gulpjs.com/) taskrunner concatenates the individual modules into `app.css`, `app.js` and `assets` in the `go/static` directory. These are then copied to `public` when you run `hugo serve`
* Set your own base settings in `go/src/assets/css/settings`
* Create your own modules in `go/src/modules`
* Keep `gulp` running in one terminal and `hugo serve` in another to preview changes automatically.

## To publish changes

* If you originally used the [Deploy to Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/growdigital/indiego) button, then every time you `git push`, your website will be automatically deployed. Magic πŸ™‚

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/growdigital/indiego)