Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mikeblum/hugo-now.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Blum <me@mblum.me>2021-04-12 01:03:09 +0300
committerMichael Blum <me@mblum.me>2021-04-12 01:03:09 +0300
commit56aa2b1792daa5527e45cc46f22df84f76d42723 (patch)
treef3a1b1f76e3e7ef09e864dbbd78d46e0ba92082f
parent3584e1682aa37a83eafe671aa44a5c77c066b0f1 (diff)
README update for Hugo Modules
-rw-r--r--README.md39
1 files changed, 35 insertions, 4 deletions
diff --git a/README.md b/README.md
index 81e4eda..ef70b04 100644
--- a/README.md
+++ b/README.md
@@ -107,6 +107,27 @@ toc: true
## Install
+### Hugo Module - Preferred
+
+Add Hugo Now as a Module:
+
+```
+# pygments
+PygmentsCodeFences = true
+PygmentsStyle = "pygments"
+
+[module]
+ [[module.imports]]
+ path = "github.com/mikeblum/hugo-now"
+```
+
+Update to the latest version:
+
+```
+hugo mod get -u github.com/mikeblum/hugo-now
+```
+### Git Submodule
+
Add Hugo Now as a submodule:
`git submodule add git@github.com:mikeblum/hugo-now.git themes/hugo-now`
@@ -129,10 +150,20 @@ Your `.gitmodules` should now contain:
baseurl = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
-# theme
-theme = "hugo-now"
-# Comment the themesDir option if you use this theme in production
-themesDir = "../.."
+
+# use latest
+[module]
+ [[module.imports]]
+ path = "github.com/mikeblum/hugo-now"
+
+# or use local fork at themes/hugo-now
+[module]
+ replacements = "github.com/mikeblum/hugo-now -> ../.."
+ [[module.imports]]
+ path = "github.com/mikeblum/hugo-now"
+
+
+
# google analytics
GoogleAnalytics = "UA-XXXXXX"