Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Example site: use theme as hugo module #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Pico ships with an fully configured example site. For a quick preview:

```
cd themes/pico/exampleSite/
hugo server --themesDir ../..
npm install
hugo server
```

Then visit `http://localhost:1313/` in your browser to view the example site.
Expand Down
Empty file added exampleSite/.hugo_build.lock
Empty file.
5 changes: 5 additions & 0 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/negrel/hugo-theme-pico/exampleSite

go 1.19

require github.com/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65 // 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/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65 h1:slIZRzj20ABDzAxTgfvWyPu6jyiLDZEUjPiqs673Uio=
github.com/negrel/hugo-theme-pico v0.0.0-20230327202537-2a57f5b17a65/go.mod h1:F+ajoXGGIAThW+0Xu17oY7QrBfv6TnHr9DyYLD4fhxI=
10 changes: 9 additions & 1 deletion exampleSite/config.toml → exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ enableEmoji = true
languageCode = 'en-us'
# Number of blog post per page
paginate = 10
theme = 'pico'
# Title of the website is used for the meta tag title
# and the square icon (not the favicon)
title = 'Pico'
Expand Down Expand Up @@ -133,3 +132,12 @@ weight = 2
# languageCode = 'es'
# languageName = 'Español'
# weight = 4

[module]
# uncomment line below for temporary local development of module
# needs hugo v0.109.0 or higher and go 1.18 or higher
# workspace = "hugo.work"
[module.hugoVersion]
extended = true
[[module.imports]]
path = "github.com/negrel/hugo-theme-pico"
3 changes: 3 additions & 0 deletions exampleSite/hugo.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
go 1.19

use ..
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/negrel/hugo-theme-pico

go 1.19