Skip to content

Commit

Permalink
use theme as module in exampleSite
Browse files Browse the repository at this point in the history
Signed-off-by: weru <fromweru@gmail.com>
  • Loading branch information
onweru committed Jan 11, 2023
1 parent 0c38289 commit 011e2a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
baseurl = "https://example.com/" # Include trailing slash
title = "Newsroom"
theme = "newsroom"
# 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/newsroom"] # edit this if you'ld rather use a fork of this repo
# theme = "newsroom"
author = "Weru"
canonifyurls = true
paginate = 6
Expand Down
5 changes: 5 additions & 0 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module newsroom

go 1.19

require github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce // indirect
2 changes: 2 additions & 0 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce h1:154LMn9uUtkbu60xl5MDKo5fb9OVbYule0GIn1ApEaY=
github.com/onweru/newsroom v0.0.0-20230111134209-0c38289ad0ce/go.mod h1:CnPS3gSJseLHZMhLLbxe+qDzR54HQ7s5RaLujOkejuM=

0 comments on commit 011e2a2

Please sign in to comment.