From 819b31d46c05c00d4183f824f74bfe3836471d78 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 4 Aug 2006 00:47:28 +0000 Subject: * Various CSS and formatting changes. --- IkiWiki/Plugin/meta.pm | 6 ++++++ basewiki/style.css | 8 ++++++++ debian/changelog | 1 + templates/aggregatepost.tmpl | 2 +- templates/inlinepage.tmpl | 17 ++++++++++++----- 5 files changed, 28 insertions(+), 6 deletions(-) diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index b6226ed88..adfd688a6 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -10,6 +10,7 @@ my %meta; my %title; my %permalink; my %author; +my %authorurl; sub import { #{{{ IkiWiki::hook(type => "preprocess", id => "meta", @@ -68,6 +69,9 @@ sub preprocess (@) { #{{{ if ($key eq 'author') { $author{$page}=$value; } + elsif ($key eq 'authorurl') { + $authorurl{$page}=$value; + } } return ""; @@ -86,6 +90,8 @@ sub pagetemplate (@) { #{{{ 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"); } # }}} diff --git a/basewiki/style.css b/basewiki/style.css index ebc912553..3f8547e95 100644 --- a/basewiki/style.css +++ b/basewiki/style.css @@ -5,6 +5,13 @@ line-height: 1em; } +.author { + margin: 0; + font-size: 18px; + font-weight: bold; + display: block; +} + #actions ul { margin: 0; padding: 6px; @@ -76,6 +83,7 @@ td.changelog { .pageinfo { font-style: italic; + display: block; } /* Used for invalid form fields. */ diff --git a/debian/changelog b/debian/changelog index aca30fc81..2cd304a33 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ ikiwiki (1.16) UNRELEASED; urgency=low * 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 Thu, 3 Aug 2006 18:45:36 -0400 diff --git a/templates/aggregatepost.tmpl b/templates/aggregatepost.tmpl index 50c09fff8..046be4804 100644 --- a/templates/aggregatepost.tmpl +++ b/templates/aggregatepost.tmpl @@ -1,5 +1,4 @@ -
[[tag ]] @@ -10,3 +9,4 @@ [[meta permalink=""]] [[meta author=""]] +[[meta authorurl=">"]] diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl index 6840f3681..f8f5b2e20 100644 --- a/templates/inlinepage.tmpl +++ b/templates/inlinepage.tmpl @@ -1,13 +1,20 @@
- - + + + + + + + + + + + + Posted - -by - (permalink) -- cgit v1.2.3