diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-29 13:58:12 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-29 13:58:12 +0300 |
commit | eaeff5461f2a18ac01a7a23ea542b11b3f1344b5 (patch) | |
tree | 651a1a05452fa364ba46a7df302b26b6740f547a /pkg | |
parent | 65720be0ea62d490f2ac008b8f98c3195ded909f (diff) |
Move themes.txt to the root
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/client/client.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/client/client.go b/pkg/client/client.go index 0e4ddb3..10c7f04 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -85,7 +85,9 @@ func (c *Client) RunHugo(arg ...string) error { // suitable for Hugo. Note that we're only using that config to // get the full module listing. func (c *Client) CreateThemesConfig() error { - f, err := os.Open(filepath.Join(c.outDir, "themes.txt")) + // This looks a little funky, but we want the themes.txt to be + // easily visible for users to add to in the root of the project. + f, err := os.Open(filepath.Join(c.outDir, "../../..", "themes.txt")) if err != nil { return err } |