]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/ikiwiki/directive/meta.mdwn
meta: generalize meta_title into meta(title); support author, updated, date
[ikiwiki.git] / doc / ikiwiki / directive / meta.mdwn
index 557441c0b8dbe424a62657d38b156a36fba92482..c5f74fac5a8c00b25096945a6f29f4ef30f00182 100644 (file)
@@ -23,6 +23,13 @@ Supported fields:
   be set to a true value in the template; this can be used to format things
   differently in this case.
 
   be set to a true value in the template; this can be used to format things
   differently in this case.
 
+  An optional `sort` parameter will be used preferentially when
+  [[ikiwiki/pagespec/sorting]] by `meta(title)`:
+
+       \[[!meta title="The Beatles" sort="Beatles, The"]]
+
+       \[[!meta title="David Bowie" sort="Bowie, David"]]
+
 * license
 
   Specifies a license for the page, for example, "GPL". Can contain
 * license
 
   Specifies a license for the page, for example, "GPL". Can contain
@@ -37,6 +44,11 @@ Supported fields:
 
   Specifies the author of a page.
 
 
   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.
 * authorurl
 
   Specifies an url for the author of a page.