My ikiwiki tips


Remove orphaned tag

rm -rf .ikiwiki/transient/tags/yourtag
ikiwiki --setup ~/blog.setup

Auth plugin: moderatedcomments, enable moderated comments for registered users only

!user(*)

Edit setup file by hand(!) in order to activate and allow comments, see ikiwiki plugin comments

# comments plugin
comments_pagespec: posts/* and !*/Discussion

Voting page

!poll 0 "red" 1 "green" 1 "blue"
!toc levels=0

... and jump to the required index

Toggle plugin

[[!toggle   id="ipsum" text="show"]]
[[!toggleable   id="ipsum" text="""
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
[[!toggle id="ipsum" text="hide"]]
"""]]
[![Frohdo][1]][2]
[1]: /pictures/frohdo1.jpg
[2]: https://frohdo.de
[[if test="enabled(sidebar)" then=""" [[!sidebar ]] """ else=""" [[!inline  pages=sidebar raw=yes]] """]]

Timeformat German in setup file

%d.%m.%Y

Do not use tag links in the following format:

[[yourtagname|/tags/yourtagname]]

These kind of tag links will be counted on your tag or category page.

For tag links use this markup instead:

[yourtagname](/tags/yourtagname)

Refreshing calendar pages, example

cd ~/yourblog
cp archives/2018/*.mdwn archives/2019/
find archives/2019/ -type f -name '*.mdwn' -exec sed -i 's/2019/2020/g' {} \;

Shortcuts

For example: on the page shortcuts add a 'search link' for de.wikipedia.org:

[[!shortcut  name=wikipediade url="https://de.wikipedia.org/wiki/%W"]]

and - in the source code of your blog page add:

[[!wikipedia  War_of_1812]]