kabukky / journey

A blog engine written in Go, compatible with Ghost themes.
https://kabukky.github.io/journey
MIT License
1.98k stars 202 forks source link

Use relative path for template names when parsing a theme #104

Open kabukky opened 6 years ago

kabukky commented 6 years ago

When parsing templates, only the file name (without ".hbs") is used as the template name. Therefore, templates in subdirectories cannot have the same name as templates in other directories. This might cause issues with complex themes.

Templatenames should probably include the relative path from the theme root. E. g. "article/body" for "/article/body.hbs".