my %title;
my %permalink;
my %author;
+my %authorurl;
sub import { #{{{
IkiWiki::hook(type => "preprocess", id => "meta",
if ($key eq 'author') {
$author{$page}=$value;
}
+ elsif ($key eq 'authorurl') {
+ $authorurl{$page}=$value;
+ }
}
return "";
if exists $permalink{$page} && $template->query(name => "permalink");
$template->param(author => $author{$page})
if exists $author{$page} && $template->query(name => "author");
+ $template->param(authorurl => $authorurl{$page})
+ if exists $authorurl{$page} && $template->query(name => "authorurl");
} # }}}
line-height: 1em;
}
+.author {
+ margin: 0;
+ font-size: 18px;
+ font-weight: bold;
+ display: block;
+}
+
#actions ul {
margin: 0;
padding: 6px;
.pageinfo {
font-style: italic;
+ display: block;
}
/* Used for invalid form fields. */
* Change titlepage() to encode utf-8 alnum characters. This is necessary
to avoid UTF-8 creeping into filenames in urls. (There are still
some other ways that it can get in.)
+ * Various CSS and formatting changes.
-- Joey Hess <joeyh@debian.org> Thu, 3 Aug 2006 18:45:36 -0400
<TMPL_VAR CONTENT>
-<br/>
<TMPL_LOOP NAME="TAGS">
[[tag <TMPL_VAR TAG>]]
</TMPL_LOOP>
[[meta permalink="<TMPL_VAR NAME="PERMALINK" ESCAPE=HTML>"]]
</TMPL_IF>
[[meta author="<TMPL_VAR NAME="NAME" ESCAPE=HTML>"]]
+[[meta authorurl="<TMPL_VAR NAME="URL" ESCAPE=HTML>>"]]
<div class="inlinepage">
-<span class="header"><a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a></span>
-
+<TMPL_IF NAME="AUTHOR">
+<span class="author">
+<TMPL_IF NAME="AUTHORURL">
+<a href="<TMPL_VAR NAME=AUTHORURL>"><TMPL_VAR NAME=AUTHOR></a>
+<TMPL_ELSE>
+<TMPL_VAR NAME=AUTHOR>
+</TMPL_IF>
+</span>
+</TMPL_IF>
+<span class="header">
+<a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a>
+</span>
<TMPL_VAR CONTENT>
<span class="pageinfo">
Posted <TMPL_VAR CTIME>
-<TMPL_IF NAME="AUTHOR">
-by <TMPL_VAR NAME=AUTHOR>
-</TMPL_IF>
<TMPL_IF NAME="PERMALINK">
(<a href="<TMPL_VAR NAME=PERMALINK>">permalink</a>)
</TMPL_IF>