# eon **Repository Path**: mirrors_coolaj86/eon ## Basic Information - **Project Name**: eon - **Description**: No description available - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-02 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [eon](https://github.com/ryanburnette/eon) This is eon, it's a Hugo theme and custom Bulma implementation used for building websites. ## Features - decent Hugo theme - provides a decent implementation of Bulma to get started - provides scripts for getting the site built - webpack asset build - hash assets - prettier on the dist - remove empty lines from dist html ## Rules to live by - Partials should never have an unequal number of opening and closing tags. - Break things up into small, easy-to-understand, well-defined pieces. Use what makes sense. ## Installation First, have a look at the [Hugo Quick Start](https://gohugo.io/getting-started/quick-start/) if you haven't already familiarized. Create a Hugo site and add the eon theme. ```bash hugo new site mysite cd mysite git init git submodule add https://github.com/ryanburnette/eon themes/eon ``` Get to work. ```bash themes/eon/scripts/development ``` ## Global Dependencies You'll need Hugo and Node.js installed in your environment. [Webinstall.dev](https://webinstall.dev) is a great way to install them. Install webi. ```bash curl https://webinstall.dev/webi | bash ``` Install dependencies. ```bash webi node@lts hugo ``` ## Assets TODO write about theme assets vs project assets ## Scripts The scripts that are included with eon are: - interpreted by Node.js - intended to be called from the project directory, ie. `themes/eon/scripts/build` ... this may cause the relative paths of the output to seem strange when you're running scripts, just remember that they are running from the theme directory ### `assets-build` Builds front-end assets with Webpack for production. ### `assets-watch` Watch front-end assets and rebuild for development. ### `build` ### `development` Spin up Hugo and Webpack simultanously for development. ### `dist-hash` Run [@ryanburnette/hash-assets](https://github.com/ryanburnette/hash-assets) on the site. ### `dist-prettier` Run prettier on the site. It might seem weird to run Prettier on your dist, but I like doing so. - It allows me to keep partials organized and indented in their own context. - It makes the dist HTML more readable. - It helps me find errors in the dist HTML. ### `dist-purgecss` Run purgecss on the dist. ### `dist-remove-empty-lines` Run [@ryanburnette/html-remove-empty-lines](https://github.com/ryanburnette/html-remove-empty-lines) on the dist HTML. ## Notes ### Hugo Cache The hugo cache is set to `./.hugo` for easier clearing. ```bash rm -rf .hugo ``` Make sure `.hugo/` is in the project's `.gitignore`. ### Hugo Gotcha You can't have HTML comments in Hugo layouts, so you won't want Prettier running on those files. You must create a `.prettierignore` in the root of your project and ignore any layout files. ``` # .prettierignore layouts/**/*.html themes/eon/layouts/**/*.html ``` ## Configuration For the examples we assume you have a single `config.yaml` file. Yaml is easier. ```yaml theme: eon ``` ### Meta Redirect Set the `redirect` param to the new URL in front-matter to set a meta redirect on that page.