blob: c602fd969dc1176f28054da6eea7e18e44b63748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/perl
package IkiWiki::Plugin::isWebsite;
use warnings;
use strict;
use IkiWiki 3.00;
sub import {
hook(type => "pagetemplate", id => "isWebsite", call => \&pagetemplate);
}
sub pagetemplate (@) {
my %params = @_;
$params{template}->param(ISWEBSITE => 1) if $params{page} =~ /^website(?:\/.*)?$/;
}
1
|