Use gmnhg/ instead of layouts/gmnhg/

Unfortunately, Hugo will try to parse every template file in layouts/,
so we have to reside somewhere else.
This commit is contained in:
Timur Demin 2020-11-19 21:16:36 +05:00
parent 9d16372487
commit 421a40783c
No known key found for this signature in database
GPG key ID: 9EDF3F9D9286FA20
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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
@ -87,7 +87,7 @@ const (
const (
contentBase = "content/"
templateBase = "layouts/gmnhg/"
templateBase = "gmnhg/"
staticBase = "static/"
outputBase = "output/"
)