diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-03 14:36:17 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-03 14:36:17 -0400 |
commit | 0f06504422792d7132b7644caf4dabf19d957659 (patch) | |
tree | efaa3a350d0b94c0c45e466abfd25624cc1c19dc /IkiWiki/Plugin/websetup.pm | |
parent | 137624775407e433935f68b9ee282723adca1513 (diff) | |
download | ikiwiki-0f06504422792d7132b7644caf4dabf19d957659.tar ikiwiki-0f06504422792d7132b7644caf4dabf19d957659.tar.gz |
remove description_html, add link
Diffstat (limited to 'IkiWiki/Plugin/websetup.pm')
-rw-r--r-- | IkiWiki/Plugin/websetup.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm index c22516eec..8ef336b03 100644 --- a/IkiWiki/Plugin/websetup.pm +++ b/IkiWiki/Plugin/websetup.pm @@ -100,7 +100,16 @@ sub showfields ($$$@) { #{{{ my $key=shift @show; my %info=%{shift @show}; - my $description=exists $info{description_html} ? $info{description_html} : $info{description}; + my $description=$info{description}; + if (exists $info{link} && length $info{link}) { + if ($info{link} =~ /^\w+:\/\//) { + $description="<a href=\"$info{link}\">$description</a>"; + } + else { + $description=htmllink("", "", $info{link}, noimageinline => 1, linktext => $description); + } + } + my $value=$config{$key}; # multiple plugins can have the same field my $name=defined $plugin ? $plugin.".".$key : $key; |