From f2b1ed0ed56e8b7ef405621dce654225998e9749 Mon Sep 17 00:00:00 2001 From: rac2030 Date: Thu, 2 Mar 2017 00:39:37 +0100 Subject: [PATCH] Added info about adding the theme as submodule --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 2ac5115..d951857 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,16 @@ Run the following commands inside your Hugo site folder: $ cd themes $ git clone https://github.com/sethmacleod/dimension.git +Alternatively use git submodules in order to have a way to easily update the theme from the source in case you have your site in git as well. +For this run the following commands inside your Hugo site folder: + + $ git submodule add https://github.com/sethmacleod/dimension.git + +If you checkout your site from a repository which has this added as a submodule (e.g. if you are using CI to deploy), execute following commands or put them into a initgit.sh file in your repository which can be executed by your CI: + + $ git submodule init + $ git submodule update + ## Getting Started After installation, you will need to configure the config.toml file, change pictures, and write your pages.