All Projects → cibuilds → Hugo

cibuilds / Hugo

Licence: mit
Docker image for Hugo, the static-site generator. Includes HTMLProofer for testing.

Projects that are alternatives of or similar to Hugo

navigator-hugo
Navigator Business theme powered by Hugo. It also could be used for a personal portfolio.
Stars: ✭ 133 (+146.3%)
Mutual labels:  static-site-generator, hugo
Awesome Docs With Static Site Generators
Pointers to all templates and implementations based on static site generators
Stars: ✭ 44 (-18.52%)
Mutual labels:  static-site-generator, hugo
influencer-hugo
Influencer is a Hugo theme for book authors and writers. It has also Snipcart supports for order books and payments.
Stars: ✭ 66 (+22.22%)
Mutual labels:  static-site-generator, hugo
contentful-export
Extract Contentful to Hugo
Stars: ✭ 22 (-59.26%)
Mutual labels:  static-site-generator, hugo
bookworm-light
Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
Stars: ✭ 59 (+9.26%)
Mutual labels:  static-site-generator, hugo
timer-hugo
Timer is a personal portfolio theme powered by Hugo. It also can be use as a landing page theme.
Stars: ✭ 123 (+127.78%)
Mutual labels:  static-site-generator, hugo
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (+7.41%)
Mutual labels:  static-site-generator, hugo
contentful-hugo
A CLI tool that pulls data from Contentful and turns it into markdown files for Hugo and other static site generators. It also includes an express server that can be used for local development and content previews
Stars: ✭ 31 (-42.59%)
Mutual labels:  static-site-generator, hugo
hugo-travelify-theme
Port of Aigars Silkalns's Wordpress theme Travelify to Hugo. Demo -
Stars: ✭ 34 (-37.04%)
Mutual labels:  static-site-generator, hugo
snipcart-hugo-integration
Hugo Website Tutorial with a Live Static E-Commerce Example
Stars: ✭ 38 (-29.63%)
Mutual labels:  static-site-generator, hugo
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+372.22%)
Mutual labels:  static-site-generator, hugo
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+11183.33%)
Mutual labels:  static-site-generator, hugo
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (-40.74%)
Mutual labels:  static-site-generator, hugo
hugo-minimalist-theme
Port of Raphael Riegger's Minimalistic Ghost theme to Hugo.
Stars: ✭ 25 (-53.7%)
Mutual labels:  static-site-generator, hugo
hugofy-vscode
Hugofy is a plugin for Visual Studio Code to make life easier to use Hugo static site generator
Stars: ✭ 27 (-50%)
Mutual labels:  static-site-generator, hugo
forty
Forty theme - Hugo theme ported from HTML5UP origrinal theme called Forty.
Stars: ✭ 116 (+114.81%)
Mutual labels:  static-site-generator, hugo
liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+255.56%)
Mutual labels:  static-site-generator, hugo
neofeed-theme
A personal feed for Neocities, GitHub Pages, or anywhere else, built with Hugo. #IndieWeb friendly and all yours. It's better than Twitter.
Stars: ✭ 62 (+14.81%)
Mutual labels:  static-site-generator, hugo
hugo-gulp-template
Enhanced template for Hugo projects
Stars: ✭ 28 (-48.15%)
Mutual labels:  static-site-generator, hugo
Ox Hugo
A carefully crafted Org exporter back-end for Hugo
Stars: ✭ 591 (+994.44%)
Mutual labels:  static-site-generator, hugo

CI Builds: Hugo Build Status Docker Repository Software License

A Docker image for Hugo, a static-site generator. Includes HTMLProofer for testing. Hosted on Docker Hub.

Currently, this Docker image is designed to be used as a base image on CircleCI for building, testing, and deploying Hugo based websites.

I plan to make this image useful for local testing and build/test/deploy on other CI provider as well in the future.

Using on CircleCI

Using this image to build your Hugo generated website on CircleCI can be as simple as using the following configuration in .circleci/config.yml:

version: 2.1
jobs:
  build:
    docker:
      - image: cibuilds/hugo:0.60
    steps:
      - checkout
      - run:
          name: "Run Hugo"
          command: HUGO_ENV=production hugo -v -s src/
      - run:
          name: "Test Website"
          command: htmlproofer src/public --allow-hash-href --check-html --empty-alt-ignore --disable-external

Version

0.54 is the version of Hugo to use. You can use a complete SemVer version number such as 0.54.0 to specifically pin to that release. You can also use 0.54 which will use Hugo v0.54.0, and then 0.54.1, and 0.54.2, and so on as newer versions are released.

You can also use latest to always use the latest version of Hugo or nightly to use the in-development version. nightly is a snapshot of whatever is in the master branch of Hugo, which is unreleased, updated at least once a day.

edge - the edge tag is available as a testing ground for new changes to this image. Changes to master will appear immediately in the hugo:edge image. The next proper release will also include those changes unless they are removed before hand.

In this example, we assume the Hugo files are in a directory called src in the repo. A full walkthrough on how to do this can be found on CircleCI's blog.

Building The Images

To prepare new images, I run ./gen-dockerfiles.sh locally, passing it the current Hugo versions that I am "supporting". For example, for the initial release, I ran ./gen-dockerfiles.sh 0.18.1 0.19.

That creates the Dockerfiles and the build script for them. For actual, proper releases though, I run the ./release.sh script. This script runs gen-dockerfiles.sh but also does all the Git work to publish a proper release. The flag [release] is added to the commit message to initiate a release.

Websites Using This & Examples

The following sites use Hugo and this image (and some have their config public):

Feedback & Contributing

Please feel free to open GitHub Issues for any questions, bugs, request, etc. You can also write a new post on Hugo's forum and ping me, FelicianoTech. Pull Request welcome as well.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].