summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/inline.pm46
-rwxr-xr-xikiwiki.in3
2 files changed, 45 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 2f0901943..3ca4fccdf 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -15,6 +15,7 @@ my $nested=0;
sub import { #{{{
hook(type => "getopt", id => "inline", call => \&getopt);
+ hook(type => "getsetup", id => "inline", call => \&getsetup);
hook(type => "checkconfig", id => "inline", call => \&checkconfig);
hook(type => "sessioncgi", id => "inline", call => \&sessioncgi);
hook(type => "preprocess", id => "inline",
@@ -39,8 +40,51 @@ sub getopt () { #{{{
"atom!" => \$config{atom},
"allowrss!" => \$config{allowrss},
"allowatom!" => \$config{allowatom},
+ "pingurl=s" => sub {
+ push @{$config{pingurl}}, $_[1];
+ },
);
-}
+} #}}}
+
+sub getsetup () { #{{{
+ return
+ rss => {
+ type => "boolean",
+ default => 0,
+ description => "enable rss feeds by default",
+ safe => 1,
+ rebuild => 1,
+ },
+ atom => {
+ type => "boolean",
+ default => 0,
+ description => "enable atom feeds by default",
+ safe => 1,
+ rebuild => 1,
+ },
+ allowrss => {
+ type => "boolean",
+ default => 0,
+ description => "allow rss feeds to be used",
+ safe => 1,
+ rebuild => 1,
+ },
+ allowatom => {
+ type => "boolean",
+ default => 0,
+ description => "allow atom feeds to be used",
+ safe => 1,
+ rebuild => 1,
+ },
+ pingurl => {
+ type => "string",
+ default => "",
+ example => "http://rpc.technorati.com/rpc/ping",
+ description => "urls to ping (using XMP-RPC) on feed update",
+ safe => 1,
+ rebuild => 0,
+ },
+} #}}}
sub checkconfig () { #{{{
if (($config{rss} || $config{atom}) && ! length $config{url}) {
diff --git a/ikiwiki.in b/ikiwiki.in
index 3bb881c43..f48f2cfeb 100755
--- a/ikiwiki.in
+++ b/ikiwiki.in
@@ -73,9 +73,6 @@ sub getconfig () { #{{{
"disable-plugin=s@" => sub {
push @{$config{disable_plugins}}, $_[1];
},
- "pingurl=s" => sub {
- push @{$config{pingurl}}, $_[1];
- },
"set=s" => sub {
my ($var, $val)=split('=', $_[1], 2);
if (! defined $var || ! defined $val) {
ags/a0/62/20181126050001.65CF01CCD8A@lxp5.free-owl.de/unread?h=master'>tags/a0/62/20181126050001.65CF01CCD8A@lxp5.free-owl.de/unread0
-rw-r--r--tags/a0/62/20211207052531.E480F11EA@xayide.jones.dk/jones0
-rw-r--r--tags/a0/62/20211207052531.E480F11EA@xayide.jones.dk/sys0
-rw-r--r--tags/a0/62/20211207052531.E480F11EA@xayide.jones.dk/unread0
-rw-r--r--tags/a0/62/2DC00DE5-556B-4EFC-9FB6-12FED2862047@kaospilot.dk/hb0
-rw-r--r--tags/a0/62/2DC00DE5-556B-4EFC-9FB6-12FED2862047@kaospilot.dk/kp0
-rw-r--r--tags/a0/62/4DDCF194.4000605@bzed.de/debian0
-rw-r--r--tags/a0/62/78eab00009a0d7f328f02ec7c227253e@sms-backup-plus.local/inbox0
-rw-r--r--tags/a0/62/78eab00009a0d7f328f02ec7c227253e@sms-backup-plus.local/old0
-rw-r--r--tags/a0/62/9.4.1.2D.7k5irGxDyIT9Nxa.CkvxnF@northcelestial.com/hb0
-rw-r--r--tags/a0/62/9.4.1.2D.7k5irGxDyIT9Nxa.CkvxnF@northcelestial.com/inbox0
-rw-r--r--tags/a0/62/9.4.1.2D.7k5irGxDyIT9Nxa.CkvxnF@northcelestial.com/killed0
-rw-r--r--tags/a0/62/9.4.1.2D.7k5irGxDyIT9Nxa.CkvxnF@northcelestial.com/unread0
-rw-r--r--tags/a0/62/A27D2976357E01439837121F369D09183537DF42@ADM-EXMBX10D.adm.c.sdu.dk/inbox0
-rw-r--r--tags/a0/62/A27D2976357E01439837121F369D09183537DF42@ADM-EXMBX10D.adm.c.sdu.dk/old0
-rw-r--r--tags/a0/62/CABu2hFEMWrQogXAcQvrtheFaHrmXRgAvNtH-0Qqtek5iTeYCwg@mail.gmail.com/inbox0
-rw-r--r--tags/a0/62/CABu2hFEMWrQogXAcQvrtheFaHrmXRgAvNtH-0Qqtek5iTeYCwg@mail.gmail.com/old0
-rw-r--r--tags/a0/62/CALL-Q8wfS8o+o3PjK=esYwi-7AN3pmN_=LSDXV3yfSELb2i7OA@mail.gmail.com/debian0
-rw-r--r--tags/a0/62/E1l1CFE-000SOR-GG@drop.zugschlus.de/debian0
-rw-r--r--tags/a0/62/E1l1CFE-000SOR-GG@drop.zugschlus.de/unread0
-rw-r--r--tags/a0/62/mailman.57.1271073618.20750.sugar@lists.laptop.org/sugar0
-rw-r--r--tags/a0/62/mailman.57.1271073618.20750.sugar@lists.laptop.org/unread0
36 files changed, 0 insertions, 0 deletions