diff options
author | Michael Blum <me@mblum.me> | 2021-04-12 01:03:09 +0300 |
---|---|---|
committer | Michael Blum <me@mblum.me> | 2021-04-12 01:03:09 +0300 |
commit | 56aa2b1792daa5527e45cc46f22df84f76d42723 (patch) | |
tree | f3a1b1f76e3e7ef09e864dbbd78d46e0ba92082f | |
parent | 3584e1682aa37a83eafe671aa44a5c77c066b0f1 (diff) |
README update for Hugo Modules
-rw-r--r-- | README.md | 39 |
1 files changed, 35 insertions, 4 deletions
@@ -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" |