From 421a40783c6a034649efbb908493ec0f3729970f Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Thu, 19 Nov 2020 21:16:36 +0500 Subject: [PATCH] Use gmnhg/ instead of layouts/gmnhg/ Unfortunately, Hugo will try to parse every template file in layouts/, so we have to reside somewhere else. --- README.md | 2 +- cmd/gmnhg/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c7650a5..44cc4be 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/gmnhg/main.go b/cmd/gmnhg/main.go index 22a5fb3..8a5d82f 100644 --- a/cmd/gmnhg/main.go +++ b/cmd/gmnhg/main.go @@ -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/" )