]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/themes/discussion.mdwn
Asked Joey to reconsider
[git.ikiwiki.info.git] / doc / themes / discussion.mdwn
1 I would like to contribute a theme I created and posted on github:
3 [[https://github.com/AntPortal/ikiwiked]]
5 For an example of the theme in action, see: [[https://antportal.com/wiki/]]
7 > Shouldn't we just make people post their themes in the [[themes]] page? Or maybe we should make a [[theme market]]? --[[anarcat]]
9 > I did just that. -- [[anarcat]]
11 What is the process for merging a theme in Ikiwiki? It seems to me the
12 [[Bootstrap theme|http://www2.tblein.eu/posts/How_to_have_a_nice_design_for_ikiwiki/]]
13 could improve the options a lot... See the [[theme market]] for the
14 links to the actual theme. -- [[anarcat]]
16 > Step 1 is to not need two versions of page.tmpl to be maintained.
17 > This is, unfortunately, the reason why I have not pulled in the bootstrap
18 > theme yet. I recently made `<TMPL_IF THEME_$NAME>` be available,
19 > so the page.tmpl could use that to do different things if the boostrap
20 > theme was enabled. --[[Joey]]
22 >> Would you reconsider? I've made [this bootstrap theme](https://notabug.org/iikb/ikiwiki-theme-bootstrap/releases) that works within the theme plugin without changing the `templatedir` configuration option. It seems that the `page.tmpl` I have in the subfolder `templates` takes precedence. Not sure what you meant by "two versions of page.tmpl", though. -- [[desci]]
24 ---
26 I have a question.
28 Where should I put a custom theme other than `/usr/share/ikiwiki/themes/`?
30 I put `.pm` plugins on `~/.ikiwiki/Ikiwiki/Plugin` and it works well.
32 How would I go about not tampering with the root filesystem to install a theme?
34 --[[desci]]
36 Also, I have another question:
38 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:
40 ```
41 /usr/share/ikiwiki/themes/
42 └── my-theme/
43     ├── basewiki/
44     │   ├── bootstrap/
45     │   │   ├── css/
46     │   │   │   └── bootstrap.min.css
47     │   │   ├── js/
48     │   │   │   ├── bootstrap.js
49     │   │   │   └── bootstrap.min.js
50     │   │   └── fonts/
51     │   │       ├── glyphicons-halflings-regular.eot
52     │   │       ├── glyphicons-halflings-regular.svg
53     │   │       ├── glyphicons-halflings-regular.ttf
54     │   │       ├── glyphicons-halflings-regular.woff
55     │   │       └── glyphicons-halflings-regular.woff2
56     │   └── index.mdwn
57     └── templates/
58         ├── page.tmpl
59         └── whatever.tmpl
60 ```
62 **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.
64 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.?
66 -- [[desci]]