Source code highlighting and video-audio support. Not tested.

This commit is contained in:
Niels Serup 2011-07-15 23:27:56 +02:00
parent 30f981823d
commit 095274c34b
4 changed files with 28 additions and 15 deletions

View File

@ -259,10 +259,11 @@ td, th {
float: left;
}
.textbanner {
background-color: red;
font-size: 20px;
display: inline-block;
padding: 2px 5px;
margin: 3px;
}
.block {
display: block;
}
.inline {
display: inline;
}

View File

@ -34,8 +34,13 @@ page.summary = 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_rfc3339@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified_rfc3339@-->' />
<!--@exec
if page.created_rfc3339:
print(" <meta name='DCTERMS.created' content='{}' />".format(page.created_rfc3339))
if page.modified_rfc3339:
print(" <meta name='DCTERMS.modified' content='{}' />".format(page.modified_rfc3339))
@-->
<!--@eval ' '*4@-->
<meta name='DCTERMS.language' content='en' />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' />
@ -45,8 +50,11 @@ page.summary = run_macros(page.summary)
<!--@exec
if 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))@-->
print("""\
<link rel='copyright' href='{x.url}' />
<meta name='DCTERMS.license' content='{x.url}' />\
""".format(x=x))@-->
<!--@eval ' '*4@-->
<meta name='robots' content='ALL' />
<link rel='icon' type='image/png' href='/favicon.png' />
<!--
@ -73,8 +81,9 @@ for x in('projects', 'writings', 'films', 'about'):
</ul>
</div>
<div id='body'<!--@exec if page.is_fullpage: print(" class='full'", end='')@-->>
<!--@eval "<div id='toc'><h3>Contents</h3>" + page.toc_html + '</div><br />' if page.has_toc else ''@-->
<!--@eval "<div id='toc'><h3>Contents</h3>" + page.toc_html + '</div>' if page.has_toc else ''@-->
<!--@eval run_macros(page.body)@-->
<!--@eval "<hr /><div id='footnotes'><h3>Footnotes</h3>" + page.footnotes_html + '</div>' if page.footnotes else ''@-->
<div id='metadata'>
<!--@eval run_macros(page.metadata_html)@-->
</div>

View File

@ -17,7 +17,7 @@ non-hackers.
Historically, this start page has featured text which had little purpose except
to exist. That is over now. /metanohi/ has no real need for a start page ---
and that means no more superfluous text.
and that means no more superfluous text[fn:extra].
* Passive activism
@ -58,3 +58,6 @@ and that means no more superfluous text.
</div>
#+END_SRC
[fn:extra] Not much, anyway.

View File

@ -1,5 +1,5 @@
#+title: Server error
There was an error, most likely due to sloppy programming:
* <@deval page.error@>
<@deval page.error@>
There was an error, most likely due to sloppy programming.