spanezz / staticsite

Static site generator
GNU General Public License v3.0
47 stars 7 forks source link

Allow to extend templates in parent themes #64

Closed spanezz closed 1 year ago

spanezz commented 1 year ago

The structure of the default template currently makes it impossible to extend existing templates: if I provide a new page.html, it cannot import the one from the parent template as the two paths conflict.

The default template can be redesigned by providing templates under default (example: default/page.html), and a toplevel template for compatibility, intended to be overridden, that simply extends the one in default/.