Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
commit
548ab7a125
|
@ -0,0 +1,45 @@
|
|||
I'm trying to make a pretty theme for ikiwiki and I'm making progress (or at least I think I am :-). However I've noticed an issue when it comes to theming. On the front page the wiki name is put inside the "title" span and on all the other pages, it's put in the "parentlinks" span. See here:
|
||||
|
||||
From [my dev home page](http://adam.shand.net/iki-dev/):
|
||||
|
||||
<code>
|
||||
<div class="header">
|
||||
<span>
|
||||
<span class="parentlinks">
|
||||
|
||||
</span>
|
||||
<span class="title">
|
||||
adam.shand.net/iki-dev
|
||||
</span>
|
||||
</span><!--.header-->
|
||||
|
||||
</div>
|
||||
</code>
|
||||
|
||||
From a sub-page of [my dev home page](http://adam.shand.net/iki-dev/recipes/navajo_fry_bread/):
|
||||
|
||||
<code>
|
||||
<div class="header">
|
||||
<span>
|
||||
<span class="parentlinks">
|
||||
|
||||
<a href="../">adam.shand.net/iki-dev</a>/
|
||||
|
||||
</span>
|
||||
<span class="title">
|
||||
recipes
|
||||
</span>
|
||||
</span><!--.header-->
|
||||
|
||||
</div>
|
||||
</code>
|
||||
|
||||
I understand the logic behind doing this (on the front page it is the title as well as the name of the wiki) however if you want to do something different with the title of a page vs. the name of the wiki it makes things pretty tricky.
|
||||
|
||||
I'll just modify the templates for my own site but I thought I'd report it as a bug in the hopes that it will be useful to others.
|
||||
|
||||
Cheers,
|
||||
Adam.
|
||||
|
||||
----
|
||||
> I just noticed that it's also different on the comments, preferences and edit pages. I'll come up with a diff and see what you guys think. -- Adam.
|
|
@ -0,0 +1,58 @@
|
|||
I'm trying to create a template to use as a sidebar with links. The template will be static
|
||||
(no variables are used). I first created a page with this directive: \[[!template id=sidebar]],
|
||||
and then created the template with the web interface.
|
||||
|
||||
This is the code I put in the template:
|
||||
|
||||
<div class="infobox">
|
||||
<ul>
|
||||
<li>\[[Existing internal link|exists]]</li>
|
||||
<li>\[[Non-existing internal link|doesnotexist]]</li>
|
||||
<li>[External link](http://google.com/)</li>
|
||||
</ul>
|
||||
<http://google.com/>
|
||||
</div>
|
||||
|
||||
This is the relevant part of the resulting html file `template/sidebar.html`:
|
||||
|
||||
<div class="infobox">
|
||||
<ul>
|
||||
<li><a href="../exists.html">Existing internal link</a></li>
|
||||
<li><span class="createlink"><a href="http://localhost/cgi-bin/itesohome.cgi?page=doesnotexist&from=templates%2Fsidebar&do=create" rel="nofollow">?</a>Non-existing internal link</span></li>
|
||||
<li>[External link](http://google.com/)</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Note that the `<http://google.com/>` link has disappeared, and that `[External link](http://google.com/)`
|
||||
has been copied literally instead of being converted to a link, as I expected.
|
||||
|
||||
> Templates aren't Markdown page. [[ikiwiki/WikiLink]] only are expanded. --[[Jogo]]
|
||||
|
||||
>> Thanks for the help Jogo. Looking at the [[templates]] page, it says that
|
||||
"...you can include WikiLinks and all other forms of wiki markup in the template." I read this
|
||||
to mean that a template may indeed include Markdown. Am I wrong in my interpratation? --[[buo]]
|
||||
|
||||
>> I discovered that if I eliminate all html from my sidebar.mdwn template, the links are
|
||||
rendered properly. It seems that the mix of Markdown and html is confusing some part of
|
||||
Ikiwiki. --[[buo]]
|
||||
|
||||
Worse, this is the relevant part of the html file of the page that includes the template:
|
||||
|
||||
<div class="infobox">
|
||||
<ul>
|
||||
<li><span class="selflink">Existing internal link</span></li>
|
||||
<li><span class="createlink"><a href="http://localhost/cgi-bin/itesohome.cgi?page=doesnotexist&from=research&do=create" rel="nofollow">?</a>Non-existing internal link</span></li>
|
||||
<li>[External link](http://google.com/)</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Note that the `Existing internal link` is no longer a link. It is only text.
|
||||
|
||||
What am I doing wrong? Any help or pointers will be appreciated. --[[buo]]
|
||||
|
||||
-----
|
||||
|
||||
I think I have figured this out. I thought the template was filled and then
|
||||
processed to convert Markdown to html. Instead, the text in each variable is
|
||||
processed and then the template is filled. I somehow misunderstood the
|
||||
[[templates]] page. -- [[buo]]
|
|
@ -15,6 +15,8 @@ as well. Also have I just created an account on this wiki as well?
|
|||
> can configure it to eg, subscribe your email address to changes to pages.
|
||||
> --[[Joey]]
|
||||
|
||||
OK, my openid login works too. One question though, is there a setup parameter which controls whether new registrations are permitted at all? For instance, I'm thinking that I'd like to use the wiki format for content, but I don't want it editable by anyone who isn't already set up. Does this work? --[[Tim Lavoie]]
|
||||
|
||||
----
|
||||
|
||||
# How to ban an IP address?
|
||||
|
|
|
@ -10,7 +10,7 @@ Download: [linguas.pm](http://ettin.org/pub/ikiwiki/linguas.pm) (2006-08-21).
|
|||
|
||||
Note that even though it is still available for download, this plugin is no
|
||||
longer actively maintained. If you are interested in multilingual wiki pages, you
|
||||
can also take a look at other approaches such as [[todo/l10n]], [[plugins/contrib/po]],
|
||||
can also take a look at other approaches such as [[todo/l10n]], [[plugins/po]],
|
||||
or Lars Wirzenius's
|
||||
[Static website, with translations, using IkiWiki](http://liw.iki.fi/liw/log/2007-05.html#20070528b).
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Where can I download this plugin ?
|
||||
-- [[jogo]]
|
|
@ -0,0 +1,42 @@
|
|||
[[!template id=plugin name=unixrelpagespec core=0 author="[[Jogo]]"]]
|
||||
|
||||
I don't understand why `./*` correspond to siblings and not subpages.
|
||||
This is probably only meaningfull with [[plugins/autoindex]] turned on.
|
||||
|
||||
Here is a small plugin wich follow usual Unix convention :
|
||||
|
||||
- `./*` expand to subpages
|
||||
- `../*` expand to siblings
|
||||
|
||||
---
|
||||
#!/usr/bin/perl
|
||||
# UnixRelPageSpec plugin.
|
||||
# by Joseph Boudou <jogo at matabio dot net>
|
||||
|
||||
package IkiWiki::Plugin::unixrelpagespec;
|
||||
|
||||
use warnings;
|
||||
use strict;
|
||||
use IkiWiki 3.00;
|
||||
|
||||
sub import {
|
||||
inject(
|
||||
name => 'IkiWiki::PageSpec::derel',
|
||||
call => \&unix_derel
|
||||
);
|
||||
}
|
||||
|
||||
sub unix_derel ($$) {
|
||||
my $path = shift;
|
||||
my $from = shift;
|
||||
|
||||
if ($path =~ m!^\.{1,2}/!) {
|
||||
$from =~ s#/?[^/]+$## if (defined $from and $path =~ m/^\.{2}/);
|
||||
$path =~ s#^\.{1,2}/##;
|
||||
$path = "$from/$path" if length $from;
|
||||
}
|
||||
|
||||
return $path;
|
||||
}
|
||||
|
||||
1;
|
|
@ -0,0 +1,18 @@
|
|||
**Ok, I have yet to post a big dummy wiki-noobie question around here, so here goes:**
|
||||
|
||||
Yes, I want to play around with *gulp* Google Ads on an ikiwiki blog, namely, in the *sidebar*.
|
||||
|
||||
No, I do not want to turn htmlscrubber off, but apart from that I have not been able to allow <script> elements as required by Google.
|
||||
|
||||
Thoughts?
|
||||
|
||||
---
|
||||
|
||||
***Fixed!***
|
||||
|
||||
Did some more reading, did some searching on the wiki, and found, under *embed*, these
|
||||
|
||||
htmlscrubber_skip => '!*/Discussion',
|
||||
locked_pages => '!*/Discussion',
|
||||
|
||||
Thanks!
|
|
@ -0,0 +1 @@
|
|||
Hey... I'm just starting to use ikiwiki, but am happy to find it repeatedly doing the sorts of things in a way which makes sense to me. (e.g. most pages are static, DVCS for file store etc.)
|
|
@ -0,0 +1,3 @@
|
|||
I'm looking at Ikiwiki, searching the best Wiki. The only other one I've found is [werc](http://werc.cat-v.org/).
|
||||
|
||||
email: `jogo matabio net`.
|
Loading…
Reference in New Issue