Giter VIP home page Giter VIP logo

blog-hugo's Introduction

Docker Saigon blog - source

content for the docker-saigon.github.io blog, powered by:

Hugo (v0.14)

Overview

Hugo is a static site generator written in Go. It is optimized for speed, easy use and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for meta data. And you can run Hugo from any directory.

Theme

Currently we are using the startbootstrap-clean-blog Theme. The theme has been added as a git submodule.

If you want to work on the blog, you will need to use the --recursive option when you git clone this repository.

Any changes to the css/js will need to copy the files from the themes/startbootstrap-clean-blog/static/{css,js} paths to the static/{css,js} path to ensure the changes are not lost when pushing to this repository.

Writing a blog post

To add a blog posts to this blog, follow these steps:

  1. Fork this repository and its submodules git clone --recursive [email protected]:docker-saigon/blog-hugo

  2. Get the Hugo binary for your platform & put it on PATH as hugo

  3. Ensure everything is working by using hugo server -w -d dev/ to run a live reload server accessible on http://localhost:1313

  4. Add a new post via cli, using hugo new post/<title> & finalize the post using the live reload server. Reference

  5. Open a pull-request on github for peer review of your new post.

Publishing updates to the site

  1. Pull Updates from origin

  2. If public/ folder does not exist yet, clone current site to public/ folder: git submodule add [email protected]:docker-saigon/docker-saigon.github.io public/

  3. Run hugo to generate the new site with new content overwriting public/

  4. Use ./publish.sh [commit message] script to push new static site to the docker-saigon/docker-saigon.github.io repository on github

./publish.sh will move into the public/ folder, commit all the changes and push them to the website.

blog-hugo's People

Contributors

so0k 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.