Public | Automated Build

Last pushed: a year ago
Short Description
Doalitic.com's blog
Full Description

Doalitic's blog

Overview

This project hosts the source behind
doalitic.com/blog.

The blog consists of static html generated by Hugo.
Hugo is installed in the development virtual machine and is used to
generate the site and each blog post.

Install

git clone --recursive git@bitbucket.org:doalitic/doalitic-blog.git

Themes

Several themes can be installed cloning the appropriate repo via git.
The one employed is determined by the configuration file
blog/config.toml. At the moment, we suggest the use of the material
design
theme, but others can
be employed instead. In any case, we'll likely fork an existing theme
to adapt it to our needs.

Installing a theme as a git submodule is quite straightforward:

git submodule add https://github.com/pdevty/material-design blog/themes/material-design

Hence, to upgrade to the latest version of installed themes just run:

git submodule foreach git pull origin master

Workflow

The site is initially created with hugo new site blog. As a blog
author, you don't need to issue this command again since the resulting
blog structure is already under version control.

In order to add a new post, just run hugo new post/my-post-name.md
from the blog directory and:

  • Edit the corresponding Markdown file (don't forget to update the
    frontmatter metadata, deleting draft = True in case it exists).
  • Check the result running make server (port 1313).

When you're happy with the result, add the source files to the git
repo and push it. An automated build in Docker Hub will start to create
a data container that exports /var/www/blog as a volume so that it can
be used from an outside container, mainly from a web server. Such volume
contains the html files generated from the source Markdown.

Author

The Doalitic team info@doalitic.com

Docker Pull Command
Owner
doalitic
Source Repository