Added more examples.

Structure.
This commit is contained in:
Niels Serup 2011-07-15 15:15:12 +02:00
parent 6f4c996774
commit 30f981823d
7 changed files with 20 additions and 15 deletions

View File

@ -1,6 +1,6 @@
<!--@exec
page.title = html_escape_transform(run_macros(page.title))
page.summary = html_escape_transform(run_macros(page.summary))
page.title = run_macros(page.title)
page.summary = run_macros(page.summary)
@--><?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
@ -34,8 +34,8 @@ page.summary = html_escape_transform(run_macros(page.summary))
<meta name='DCTERMS.description' content='<!--@eval page.summary@-->' />
<meta name='DCTERMS.creator' content='Niels Serup' />
<meta name='DCTERMS.format' content='application/xhtml+xml' />
<meta name='DCTERMS.created' content='<!--@eval page.created@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified@-->' />
<meta name='DCTERMS.created' content='<!--@eval page.created_rfc3339@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified_rfc3339@-->' />
<meta name='DCTERMS.language' content='en' />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' />
@ -44,9 +44,9 @@ page.summary = html_escape_transform(run_macros(page.summary))
<meta name='DCTERMS.audience' content='individuals' />
<!--@exec
if page.licenses:
for x in page.licenses:
for x in filter(lambda x: x.url, page.licenses):
print("""<link rel='copyright' href='{x.url}' />
<meta name='DCTERMS.license' content='{x.url}' />""").format(x=x)@-->
<meta name='DCTERMS.license' content='{x.url}' />""".format(x=x))@-->
<meta name='robots' content='ALL' />
<link rel='icon' type='image/png' href='/favicon.png' />
<!--

View File

@ -13,3 +13,6 @@ template template.html
# Convert the static parts of HTML, CSS, and JS files
convert prestatic/*.{css,js} static/
convert prestatic/template.html .
# Redirects (in site/)
redirect mege projects/mege/

View File

@ -1,4 +1,4 @@
#+title: Test of mege features
#+title: Test of basic mege features
#&summary
Test of many features
#&

View File

@ -1,5 +1,6 @@
#+title: Directory listing: <@eval page.core_url@>
#&deval
#++deval
#+BEGIN_SRC
page.dirlist
#&
#+END_SRC

View File

@ -1,7 +1,5 @@
#+title: Error: Page not found
The page <@deval repr(page.core_url)@> does not exist. The error was:
* <@deval page.error@>
#&block
<@deval page.error@>
#&
The page <@deval repr(page.core_url)@> does not exist.

View File

@ -2,6 +2,4 @@
There was an error, most likely due to sloppy programming:
#&block
<@deval page.error@>
#&

5
sitespecial/showrevs.org Normal file
View File

@ -0,0 +1,5 @@
#+title: Revisions for <@deval repr(page.path_shown)@>
* Revisions for <@deval repr(page.path_shown)@>
<@deval page.revisions@>