From 4f5cdb7ece0c71837b08708ce4956ea498dd5550 Mon Sep 17 00:00:00 2001 From: weru <onewesh@gmail.com> Date: Tue, 06 Oct 2020 20:07:15 +0000 Subject: [PATCH] update installation directions --- README.md | 63 ++++++++++++++++++++++++++++++- 1 files changed, 61 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb67f39..48632ae 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,66 @@ ## Installation -Install a recent release of the Hugo "extended" version; ideally versions `>= 0.61.0`. If you install from [hugo releases page](https://github.com/gohugoio/hugo/releases), download the `_extended` version, which supports sass. +Install a recent release of the Hugo "extended" version; ideally versions `>= 0.61.0`. If you install from [hugo releases page](https://github.com/gohugoio/hugo/releases), __download the `_extended`__ version, which supports sass. + +## Run your site with compose theme + +You could go with the options right below. + +### Option 1 (my favorite) + +This option enables you to load compose theme as a hugo module. + +```bash +git clone https://github.com/onweru/compose/ +cd compose/exampleSite/ +hugo server +``` + +If you choose __Option 2__ or __Option 3__ below, ensure you edit the following lines in the `config.toml` file ad advised on the comments + +```bash +... +# this example loads the theme as hugo module +# comment out line below, and uncomment the line after it if you prefer to load the theme normally +theme = ["github.com/onweru/compose"] +# theme = "compose" +... +``` + +### Option 2 (recommended) + +Generate a new Hugo site and add this theme as a Git submodule inside your themes folder: + +```bash +hugo new site yourSiteName +cd yourSiteName +git init +git submodule add https://github.com/onweru/compose/ themes/compose +cp -a themes/compose/exampleSite/* . +``` + +Then run + +```bash +hugo server +``` + +Hurray! + +### Option 3 (Great for testing quickly) + +You can run your site directly from the `exampleSite`. To do so, use the following commands: + +```bash +git clone https://github.com/onweru/compose/ +cd compose/exampleSite/ +hugo server --themesDir ../.. +``` + +> Although, option 2 is great for quick testing, it is somewhat problematic when you want to update your theme. You would need to be careful not to overwrite your changes. + +Once set, jump over to the `config.toml` file and start [configuring](#configuration) your site. ## ExampleSite @@ -40,7 +99,7 @@ ## From the same creator -1. [Clarity Theme](https://github.com/chipzoller/hugo-clarity) +1. [Clarity Theme](https://github.com/onweru/compose/) 2. [Newsroom Theme](https://github.com/onweru/newsroom) 3. [Swift Theme](https://github.com/onweru/hugo-swift-theme) -- Gitblit v1.10.0