aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-04-03 14:17:48 +0100
committerSimon McVittie <smcv@debian.org>2010-04-04 01:43:02 +0100
commit618bbaee3815daffe329fc1e2d77f04fcd8392b8 (patch)
treeba8d0e96f0f7183e21af884678fd95b7f6fbd8d9 /doc
parent04a59b3c65e8e60805b6ed6d11d448b1d5babe64 (diff)
downloadikiwiki-618bbaee3815daffe329fc1e2d77f04fcd8392b8.tar
ikiwiki-618bbaee3815daffe329fc1e2d77f04fcd8392b8.tar.gz
meta: generalize meta_title into meta(title); support author, updated, date
I've left meta_title in, undocumented, as a possible replacement for sort=title in IkiWiki 4.0 or something.
Diffstat (limited to 'doc')
-rw-r--r--doc/ikiwiki/directive/meta.mdwn7
-rw-r--r--doc/ikiwiki/pagespec/sorting.mdwn5
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/ikiwiki/directive/meta.mdwn b/doc/ikiwiki/directive/meta.mdwn
index 8d2a5b1ad..c5f74fac5 100644
--- a/doc/ikiwiki/directive/meta.mdwn
+++ b/doc/ikiwiki/directive/meta.mdwn
@@ -24,7 +24,7 @@ Supported fields:
differently in this case.
An optional `sort` parameter will be used preferentially when
- [[ikiwiki/pagespec/sorting]] by `meta_title`:
+ [[ikiwiki/pagespec/sorting]] by `meta(title)`:
\[[!meta title="The Beatles" sort="Beatles, The"]]
@@ -44,6 +44,11 @@ Supported fields:
Specifies the author of a page.
+ An optional `sort` parameter will be used preferentially when
+ [[ikiwiki/pagespec/sorting]] by `meta(author)`:
+
+ \[[!meta author="Joey Hess" sort="Hess, Joey"]]
+
* authorurl
Specifies an url for the author of a page.
diff --git a/doc/ikiwiki/pagespec/sorting.mdwn b/doc/ikiwiki/pagespec/sorting.mdwn
index ba995a521..fbf598340 100644
--- a/doc/ikiwiki/pagespec/sorting.mdwn
+++ b/doc/ikiwiki/pagespec/sorting.mdwn
@@ -11,9 +11,10 @@ orders can be specified.
as such, ("1 2 9 10 20" instead of "1 10 2 20 9")
"""]]
[[!if test="enabled(meta)" then="""
-* `meta_title` - Order according to the `\[[!meta title="foo" sort="bar"]]`
+* `meta(title)` - Order according to the `\[[!meta title="foo" sort="bar"]]`
or `\[[!meta title="foo"]]` [[ikiwiki/directive]], or the page name if no
- full title was set.
+ full title was set. `meta(author)`, `meta(date)`, `meta(updated)`, etc.
+ also work.
"""]]
In addition, you can combine several sort orders and/or reverse the order of