moggers87 / exhibition

A static site generator
GNU General Public License v3.0
5 stars 2 forks source link

Node model has too many options that can't be configured #29

Closed moggers87 closed 5 years ago

moggers87 commented 6 years ago

Currently these are defined in Python, but can't be configured via meta.yamls or front-matter:

    _meta_names = ["meta.yaml", "meta.yml"]
    _index_file = "index.html"
    _strip_exts = [".html"]

    _meta_header = "---\n"
    _meta_footer = "---\n"

    _dir_mode = 0o755
    _file_mode = 0o644
moggers87 commented 6 years ago

Going to split this into separate issues

moggers87 commented 6 years ago

I'm wondering if it's worth making the meta header/footer configurable as it's likely to be the source of confusion, e.g. user sets header to "===", missing off the newline as they expect it to be added automatically or another user expects to be able to have the meta header inline with the first option.

IMO, it's better that there's One Way™ and it's documented.

Plus, this doesn't affect output per se.

moggers87 commented 5 years ago

Gonna close this now, the only stuff that will change has separate issues now.