More valid.

This commit is contained in:
Niels Serup 2011-08-11 03:37:52 +02:00
parent 806ecf0439
commit 0660079cef
13 changed files with 67 additions and 41 deletions

View File

@ -34,8 +34,8 @@
</Directory>
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/metanohi.name-error.log
CustomLog ${APACHE_LOG_DIR}/metanohi.name-access.log combined
ErrorLog /var/log/apache2/metanohi.name-error.log
CustomLog /var/log/apache2/metanohi.name-access.log combined
</VirtualHost>

View File

@ -2,4 +2,7 @@
* Directory listing: <@eval page.core_url@>
<@deval page.dirlist@>
#++deval
#+BEGIN_SRC python3
page.dirlist
#+END_SRC

View File

@ -5,10 +5,16 @@
There was an error, most likely due to sloppy programming:
#&block
<@deval page.error@>
#++deval
#+BEGIN_SRC python
page.error
#+END_SRC
#&
<@deval page.errortraceback@>
#++deval
#+BEGIN_SRC python
page.errortraceback
#+END_SRC
** Fixing it

View File

@ -2,4 +2,7 @@
* Revisions for <@deval repr(page.path_shown)@>
<@deval page.revisions@>
#++deval
#+BEGIN_SRC python3
page.revisions
#+END_SRC

View File

@ -2,4 +2,7 @@
* Sitemap
<@eval page.sitemap@>
#++eval
#+BEGIN_SRC python
page.sitemap
#+END_SRC

View File

@ -45,24 +45,15 @@ set_min_height = function() {
contentdiv.style.minHeight = h + 'px';
};
set_logo_width = function() {
var ws;
ws = get_window_size();
ww = ws[1];
logodiv.style.width = ww + 'px';
};
adjust_sizes = function() {
if (!is_screen_media())
return;
set_min_height();
set_logo_width();
};
window.addEventListener('load', function(event){
menudiv = document.getElementById('menu');
contentdiv = document.getElementById('content');
metadiv = document.getElementById('metadata');
logodiv = document.getElementById('logo');
adjust_sizes();
}, false);

View File

@ -111,7 +111,7 @@ h4 {
}
h5 {
margin-top: 5px 0 1px 0;
margin: 5px 0 1px 0;
font-size: 16px;
font-weight: bold;
}
@ -243,7 +243,7 @@ ul > * > ul, ol > * > ul {
}
ul > * * > ul, ol > * * > ul {
list-style-type: disc; ! important
list-style-type: disc !important;
}
ol {
@ -259,7 +259,7 @@ ol > * > ol, ul > * > ol {
}
ol > * * > ol, ul > * * > ol {
list-style-type: decimal; ! important
list-style-type: decimal !important;
}
@ -269,7 +269,7 @@ dd {
margin-left: 20px;
}
dl > dl {
dl dl {
margin-left: 21px;
padding-left: 5px;
border-left: 4px solid #000;
@ -348,15 +348,15 @@ caption {
}
.center-align, .center-align > * {
text-align: center; ! important
text-align: center !important;
}
.right-align, .right-align > * {
text-align: right; ! important
text-align: right !important;
}
.left-align, .left-align > * {
text-align: left; ! important
text-align: left !important;
}
.center-float {
@ -389,27 +389,27 @@ div.left-float, img.left-float, video.left-float, audio.left-float {
}
.noclear, div.caption.noclear {
clear: none; ! important
clear: none !important;
}
.huge, .huge * {
font-size: 25px; ! important
font-size: 25px !important;
}
.large, .large * {
font-size: 18px; ! important
font-size: 18px !important;
}
.medium, .medium * {
font-size: 14px; ! important
font-size: 14px !important;
}
.small, .small * {
font-size: 11px; ! important
font-size: 11px !important;
}
.tiny, .tiny * {
font-size: 9px; ! important
font-size: 9px !important;
}
@ -434,7 +434,7 @@ div.left-float, img.left-float, video.left-float, audio.left-float {
.linenos {
border-width: 0 1px 0 0;
border-style: solid;
border-size: black;
border-color: black;
vertical-align: top;
}

View File

@ -99,6 +99,9 @@ ul#menulinks {
" url('/static/metanohi-logo.png') no-repeat center;\n"@*/
}
#body.full #logo {
}
.highlighttable .code {
width: 600px;

View File

@ -32,19 +32,20 @@ if page.is_dynamic:
<link href='/atom.xml' type='application/atom+xml' rel='alternate'
title='metanohi atom feed' />
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
<meta name='DCTERMS.title' content='<!--@eval page.title@-->' />
<meta name='DCTERMS.description' content='<!--@eval page.summary@-->' />
<meta name='DCTERMS.title' content=<!--@eval repr(page.title)@--> />
<meta name='DCTERMS.creator' content='Niels Serup' />
<!-- <meta name='DCTERMS.format' content='application/xhtml+xml' />-->
<!--@exec
if page.summary:
print("<meta name='DCTERMS.description' content={} />".format(repr(page.summary)))
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))
@-->
<meta name='DCTERMS.language' content='<!--@eval page.language@-->' />
<meta name='DCTERMS.language' content=<!--@eval repr(page.language)@--> />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' />
<meta name='DCTERMS.isVersionOf' content=<!--@eval repr(page.core_url)@--> />
<meta name='DCTERMS.audience' content='software developers' />
<meta name='DCTERMS.audience' content='hackers' />
<meta name='DCTERMS.audience' content='individuals' />
@ -72,7 +73,7 @@ if page.licenses:
<!--@eval run_macros(page.head)@-->
</head>
<body>
<a id='minilogo' href='/'></a>
<div><a id='minilogo' href='/'></a></div>
<div id='menu'>
<ul id='menulinks'>
<!--@prexec

View File

@ -20,7 +20,7 @@ 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[fn:extra].
Feel free to check out my [[/projects][Projects]] page.
Feel free to check out my [[/projects/][Projects]] page.
* Passive activism

View File

@ -175,19 +175,31 @@ These are my projects, new and old.
** Relatively new
<@exec boxprojs(top_projs) @>
#++exec
#+BEGIN_SRC python
boxprojs(top_projs)
#+END_SRC
*** Others
<@exec listprojs(other_projs) @>
#++exec
#+BEGIN_SRC python
listprojs(other_projs)
#+END_SRC
#+mark: old
** Old
<@exec boxprojs(old_top_projs) @>
#++exec
#+BEGIN_SRC python
boxprojs(old_top_projs)
#+END_SRC
*** Others
<@exec listprojs(other_old_projs) @>
#++exec
#+BEGIN_SRC python
listprojs(other_old_projs)
#+END_SRC

View File

@ -63,6 +63,7 @@ Inline: =<p>abc</p>=&html.
<div style='margin-left: 20px' id='tempobj'>au</div>
#+END_SRC
The above code equals:
#++show
#+BEGIN_SRC html
<div style='margin-left: 20px' id='tempobj'>au</div>

View File

@ -4,7 +4,10 @@
* Writings
<@eval macros.list_pages()@>
#++eval
#+BEGIN_SRC python
macros.list_pages()
#+END_SRC
** Old