ikiwiki/doc/themes/discussion.mdwn

65 lines
2.8 KiB
Plaintext
Raw Normal View History

2011-04-20 18:52:04 +02:00
I would like to contribute a theme I created and posted on github:
[[https://github.com/AntPortal/ikiwiked]]
For an example of the theme in action, see: [[https://antportal.com/wiki/]]
2011-12-16 07:38:09 +01:00
> Shouldn't we just make people post their themes in the [[themes]] page? Or maybe we should make a [[theme market]]? --[[anarcat]]
2012-02-25 20:49:17 +01:00
> I did just that. -- [[anarcat]]
2013-06-19 16:28:04 +02:00
What is the process for merging a theme in Ikiwiki? It seems to me the
[[Bootstrap theme|http://www2.tblein.eu/posts/How_to_have_a_nice_design_for_ikiwiki/]]
could improve the options a lot... See the [[theme market]] for the
links to the actual theme. -- [[anarcat]]
2013-06-27 03:02:50 +02:00
> Step 1 is to not need two versions of page.tmpl to be maintained.
> This is, unfortunately, the reason why I have not pulled in the bootstrap
> theme yet. I recently made `<TMPL_IF THEME_$NAME>` be available,
> so the page.tmpl could use that to do different things if the boostrap
> theme was enabled. --[[Joey]]
2016-04-09 04:27:44 +02:00
---
I have a question.
Where should I put a custom theme other than `/usr/share/ikiwiki/themes/`?
I put `.pm` plugins on `~/.ikiwiki/Ikiwiki/Plugin` and it works well.
How would I go about not tampering with the root filesystem to install a theme?
--[[desci]]
Also, I have another question:
I have a complex theme I'm working on, and it doesn't even have a `style.css`, because it is about editing `.tmpl` files and relying on the bootstrap files, so I want to know if the theme plugin will understand this structure:
```
2016-04-09 04:29:02 +02:00
/usr/share/ikiwiki/themes/
2016-04-09 04:27:44 +02:00
└── my-theme/
2016-04-09 04:31:38 +02:00
├── basewiki/
│ ├── bootstrap/
2016-04-09 04:33:56 +02:00
│ │ ├── css/
│ │ │ └── bootstrap.min.css
│ │ ├── js/
│ │ │ ├── bootstrap.js
│ │ │ └── bootstrap.min.js
│ │ └── fonts/
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
2016-04-09 04:31:38 +02:00
│ └── index.mdwn
2016-04-09 04:27:44 +02:00
└── templates/
├── page.tmpl
└── whatever.tmpl
```
2016-04-11 16:12:17 +02:00
**Edit:** no, it doesn't. When i change theme in the config to `my-theme`, the engine only uses the `templates` subfolder under `theme/my-theme`, and not `basewiki`. So the workaround is doing like [IkiStrap](https://github.com/gsliepen/ikistrap) proposed, suggesting the user to alter the `underlaydir` and `templatedir` configs instead of choosing a theme via the old fashioned `theme` config.
This feels more like an overhaul than a theme for me, could we clarify what is a theme, a template, an overhaul, a change to the look and feel, a change to the frontend, a change to the design, etc.?
-- [[desci]]