Navigation Menu

Skip to content

Commit

Permalink
Use gmnhg/ instead of layouts/gmnhg/
Browse files Browse the repository at this point in the history
Unfortunately, Hugo will try to parse every template file in layouts/,
so we have to reside somewhere else.
  • Loading branch information
tdemin committed Nov 19, 2020
1 parent 9d16372 commit 421a407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -24,7 +24,7 @@ being unable to parse links/images inside other links.
## gmnhg

This program converts Hugo Markdown content files from `content/` in
accordance with templates found in `layouts/gmnhg` to the output dir. It
accordance with templates found in `gmnhg/` to the output dir. It
also copies static files from `static/` to the output dir.

For more details about the rendering process, see the
Expand Down
4 changes: 2 additions & 2 deletions cmd/gmnhg/main.go
Expand Up @@ -19,7 +19,7 @@
//
// gmngh will read layout template files (with .gotmpl extension) and
// then apply them to content files ending with .md by the following
// algorithm (layout file names are relative to layouts/gmnhg):
// algorithm (layout file names are relative to gmnhg/):
//
// 1. If the .md file specifies its own layout, the relevant layout file
// is applied. If not, the default template is applied (single). If the
Expand Down Expand Up @@ -87,7 +87,7 @@ const (

const (
contentBase = "content/"
templateBase = "layouts/gmnhg/"
templateBase = "gmnhg/"
staticBase = "static/"
outputBase = "output/"
)
Expand Down

0 comments on commit 421a407

Please sign in to comment.