diff options
author | smcv <smcv@web> | 2017-05-14 07:37:14 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2017-05-14 07:37:14 -0400 |
commit | 50fb6f8b9558cac2a3d2266fd9b5a705c22ef0f7 (patch) | |
tree | 8a8b2f9139845e5bc1a7309b31a38424b742880f | |
parent | b047fc3757564144e41c5a3228f779645136abdf (diff) | |
download | ikiwiki-50fb6f8b9558cac2a3d2266fd9b5a705c22ef0f7.tar ikiwiki-50fb6f8b9558cac2a3d2266fd9b5a705c22ef0f7.tar.gz |
Added a comment: Use an underlay instead
-rw-r--r-- | doc/forum/How_to_use_multiple_template_files_directories__63__/comment_1_cc2ffde6879a2a61353d0b116f6b4954._comment | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/forum/How_to_use_multiple_template_files_directories__63__/comment_1_cc2ffde6879a2a61353d0b116f6b4954._comment b/doc/forum/How_to_use_multiple_template_files_directories__63__/comment_1_cc2ffde6879a2a61353d0b116f6b4954._comment new file mode 100644 index 000000000..79429d0b1 --- /dev/null +++ b/doc/forum/How_to_use_multiple_template_files_directories__63__/comment_1_cc2ffde6879a2a61353d0b116f6b4954._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="smcv" + avatar="http://cdn.libravatar.org/avatar/0ee943fe632ff995f6f0f25b7167d03b" + subject="Use an underlay instead" + date="2017-05-14T11:37:13Z" + content=""" +The exact setup you asked for is not currently possible because `templatedir` +only takes one value, but you can get the same practical result with an underlay: + +* Create `/Users/XXX/config/ikiwiki/common-files/` or something (the exact name + is not significant, use whatever you want) +* Put your templates in `/Users/XXX/config/ikiwiki/common-files/templates/*.tmpl` + (it has to be a `templates/` subdirectory) +* Add the [[plugins/underlay]] plugin to the `add_plugins` config option +* Add `/Users/XXX/config/ikiwiki/common-files` to the `add_underlays` config + option (same syntax as `add_plugins`) + +This is priority 2 from your list: it's \"less important\" than the `templates/` +subdirectory of the `srcdir`, but \"more important\" than the templates shipped +with ikiwiki. + +If you create non-template pages or attachments in that underlay, they will +also be considered \"less important\" than pages or attachments of the same +name in the `srcdir`, but \"more important\" than ikiwiki's `basewiki` underlay. +I use an underlay like this to make +[smcv.pseudorandom.co.uk](https://smcv.pseudorandom.co.uk/) +and [www.pseudorandom.co.uk](https://www.pseudorandom.co.uk/) +share a stylesheet. +"""]] |