# Hugo Now ![Powered By Hugo](https://raw.githubusercontent.com/mikeblum/hugo-now/master/static/logo/hugo-now.png) A Hugo port of [Jekyll Now](https://github.com/barryclark/jekyll-now). The Hugo implementation is inspired by [Hemingway](https://github.com/tanksuzuki/hemingway). ## Screenshots ### Home Page home page --- ### Posts post --- ### Dashboard dashboard --- ### Projects dashboard ## Features bootstrap 4

Bootstrap V4

Update from Bootstrap 3 to 4 font awesome logo

Font Awesome

Latest Font Awesome icons :no_good: no javascript

Progrssive Enhancement

Disabling Javascript should retain the same experience. sass

Powerful Styling

Using the power of SASS to power our build pipeline. All major dependencies have .scss support. gulp

Modern Build Pipeline

Without Jekyll's Asset pipeline, a Hugo theme needs a build system. I opted for gulp.js

Emoji :sunglesses:

Support for emojis found here: Emoji Cheatsheet Available for: - :white_check_mark: tags - :white_check_mark: titles - :white_check_mark: posts / .Content pygments

Syntax Highlighting

Rather then using a JS library like hightlight.js I opt for server-side rendering with Pygments to keep in line with progressive enhamcements. Here is Hugo's opinion on the matter:

The advantage of server side is that it doesn’t depend on a JavaScript library and consequently works very well when read from an RSS feed.

I would argue site usability / robustness far out weighs build times.

google analytics

Google Analytics

Configure Google Analytics with: .Params.GoogleAnalytics ## Install Add Hugo Now as a submodule: `git submodule add git@github.com:mikeblum/hugo-now.git themes/hugo-now` Your `.gitmodules` should now contain: ``` [submodule "themes/hugo-now"] path = themes/hugo-now url = git@github.com:mikeblum/hugo-now.git ``` > Remember to commit your .gitmodules ## Configure `config.toml` ```toml baseurl = "http://example.org/" languageCode = "en-us" title = "My New Hugo Site" # theme theme = "hugo-now" # Comment the themesDir option if you use this theme in production themesDir = "../.." # google analytics GoogleAnalytics = "UA-XXXXXX" [taxonomies] category = "categories" tag = "tags" [params] description = "Hugo port of Jekyll Now" author = "Hugo Now" keywords = ["hugo-now", "hugo"] avatar = "/images/hugo.png" displayauthor = false # pygments PygmentsUseClasses = true PygmentsCodeFences = true # pagination paginate = 10 paginatePath = "page" ``` ## Content * `Use SVG rather than PNG / JPG` - they style better and take less bandwidth * `Pygments styles use SASS` - PygmentsStyle is configured by changing the `sass/style.scss` - Defaults to `default` Pygments style - see [Pygments Styles](https://help.farbox.com/pygments.html) ## Build ### Hugo ``` hugo server ``` You can go to localhost:1313 and this theme should be visible. ### SASS Build SASS updates by running `gulp` (development) or `gulp dist` (production) Update `includes.html` with the appropriate CSS file (default is style.min.css): ``` ``` ### Javascript Hugo Now supports Bootstrap JS but Github Pages and others disable Javascript. This is available for sites hosted on S3 and elsewhere. Build JS updates by running `gulp` (development) or `gulp dist` (production) Update `javascript.html` with the appropriate JS files (defaults are bootstrap dependencies). ## License Hugo Now is licensed under the [MIT License](LICENSE.md). ## Author [Michael Blum](https://github.com/mikeblum) ## Credits is based on [Hemingway](https://github.com/tanksuzuki/hemingway) created by [Asuka Suzuki](https://github.com/tanksuzuki).