diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-11-09 13:32:08 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-11-09 13:39:05 -0500 |
commit | 9f0931ce21e5f58e2e9de0ef302beca08b8f9177 (patch) | |
tree | 0c57de59b093121bb017f78bfd8ec723fa42c0e2 /doc/css.mdwn | |
parent | 1fec2fdd20f04bae4f48980e04681bfa608db99e (diff) | |
download | ikiwiki-9f0931ce21e5f58e2e9de0ef302beca08b8f9177.tar ikiwiki-9f0931ce21e5f58e2e9de0ef302beca08b8f9177.tar.gz |
localstyle: New plugin, allows overrding the toplevel local.css with one that is closer to a page.
I chose not to have it override style.css, because style.css is not really
intended to be edited; the one from the underlay is intended to be used as
a base that local.css overrides.
I chose to use a plugin rather than changing the default behavior, both
because I didn't want to have to worry about possibly breaking backwards
compatability (though this seems unlikely), and because it seemed cleaner
to not include style template parameters in the main page template code.
I suppose someone might want a way to not override the toplevel
local.css, but instead include it as well as foo/local.css. Probably the
best way to do that would be to have foo/local.css @import ../local.css
(modulo browser compatability issues). Alternatively, edit page.tmpl
to always include the toplevel local.css, or swap out this plugin for
another one.
Diffstat (limited to 'doc/css.mdwn')
-rw-r--r-- | doc/css.mdwn | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/css.mdwn b/doc/css.mdwn index 20790b3d1..29a335596 100644 --- a/doc/css.mdwn +++ b/doc/css.mdwn @@ -16,3 +16,6 @@ files. The [[plugins/meta]] plugin can be used to add additional style sheets to a page. + +The [[plugins/localstyle]] plugin can be used to override the toplevel +[[local.css]] for a whole section of the wiki. |