More valid.
This commit is contained in:
parent
806ecf0439
commit
0660079cef
|
@ -34,8 +34,8 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
ErrorLog ${APACHE_LOG_DIR}/metanohi.name-error.log
|
ErrorLog /var/log/apache2/metanohi.name-error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/metanohi.name-access.log combined
|
CustomLog /var/log/apache2/metanohi.name-access.log combined
|
||||||
|
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
|
@ -2,4 +2,7 @@
|
||||||
|
|
||||||
* Directory listing: <@eval page.core_url@>
|
* Directory listing: <@eval page.core_url@>
|
||||||
|
|
||||||
<@deval page.dirlist@>
|
#++deval
|
||||||
|
#+BEGIN_SRC python3
|
||||||
|
page.dirlist
|
||||||
|
#+END_SRC
|
||||||
|
|
|
@ -5,10 +5,16 @@
|
||||||
There was an error, most likely due to sloppy programming:
|
There was an error, most likely due to sloppy programming:
|
||||||
|
|
||||||
#&block
|
#&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
|
** Fixing it
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,7 @@
|
||||||
|
|
||||||
* Revisions for <@deval repr(page.path_shown)@>
|
* Revisions for <@deval repr(page.path_shown)@>
|
||||||
|
|
||||||
<@deval page.revisions@>
|
#++deval
|
||||||
|
#+BEGIN_SRC python3
|
||||||
|
page.revisions
|
||||||
|
#+END_SRC
|
||||||
|
|
|
@ -2,4 +2,7 @@
|
||||||
|
|
||||||
* Sitemap
|
* Sitemap
|
||||||
|
|
||||||
<@eval page.sitemap@>
|
#++eval
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
page.sitemap
|
||||||
|
#+END_SRC
|
||||||
|
|
|
@ -45,24 +45,15 @@ set_min_height = function() {
|
||||||
contentdiv.style.minHeight = h + 'px';
|
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() {
|
adjust_sizes = function() {
|
||||||
if (!is_screen_media())
|
if (!is_screen_media())
|
||||||
return;
|
return;
|
||||||
set_min_height();
|
set_min_height();
|
||||||
set_logo_width();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('load', function(event){
|
window.addEventListener('load', function(event){
|
||||||
menudiv = document.getElementById('menu');
|
menudiv = document.getElementById('menu');
|
||||||
contentdiv = document.getElementById('content');
|
contentdiv = document.getElementById('content');
|
||||||
metadiv = document.getElementById('metadata');
|
metadiv = document.getElementById('metadata');
|
||||||
logodiv = document.getElementById('logo');
|
|
||||||
adjust_sizes();
|
adjust_sizes();
|
||||||
}, false);
|
}, false);
|
||||||
|
|
|
@ -111,7 +111,7 @@ h4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
margin-top: 5px 0 1px 0;
|
margin: 5px 0 1px 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ ul > * > ul, ol > * > ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
ul > * * > ul, ol > * * > ul {
|
ul > * * > ul, ol > * * > ul {
|
||||||
list-style-type: disc; ! important
|
list-style-type: disc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
|
@ -259,7 +259,7 @@ ol > * > ol, ul > * > ol {
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl > dl {
|
dl dl {
|
||||||
margin-left: 21px;
|
margin-left: 21px;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
border-left: 4px solid #000;
|
border-left: 4px solid #000;
|
||||||
|
@ -348,15 +348,15 @@ caption {
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-align, .center-align > * {
|
.center-align, .center-align > * {
|
||||||
text-align: center; ! important
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-align, .right-align > * {
|
.right-align, .right-align > * {
|
||||||
text-align: right; ! important
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-align, .left-align > * {
|
.left-align, .left-align > * {
|
||||||
text-align: left; ! important
|
text-align: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-float {
|
.center-float {
|
||||||
|
@ -389,27 +389,27 @@ div.left-float, img.left-float, video.left-float, audio.left-float {
|
||||||
}
|
}
|
||||||
|
|
||||||
.noclear, div.caption.noclear {
|
.noclear, div.caption.noclear {
|
||||||
clear: none; ! important
|
clear: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.huge, .huge * {
|
.huge, .huge * {
|
||||||
font-size: 25px; ! important
|
font-size: 25px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.large, .large * {
|
.large, .large * {
|
||||||
font-size: 18px; ! important
|
font-size: 18px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.medium, .medium * {
|
.medium, .medium * {
|
||||||
font-size: 14px; ! important
|
font-size: 14px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small, .small * {
|
.small, .small * {
|
||||||
font-size: 11px; ! important
|
font-size: 11px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tiny, .tiny * {
|
.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 {
|
.linenos {
|
||||||
border-width: 0 1px 0 0;
|
border-width: 0 1px 0 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-size: black;
|
border-color: black;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,9 @@ ul#menulinks {
|
||||||
" url('/static/metanohi-logo.png') no-repeat center;\n"@*/
|
" url('/static/metanohi-logo.png') no-repeat center;\n"@*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#body.full #logo {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.highlighttable .code {
|
.highlighttable .code {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
|
|
|
@ -32,19 +32,20 @@ if page.is_dynamic:
|
||||||
<link href='/atom.xml' type='application/atom+xml' rel='alternate'
|
<link href='/atom.xml' type='application/atom+xml' rel='alternate'
|
||||||
title='metanohi atom feed' />
|
title='metanohi atom feed' />
|
||||||
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
|
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
|
||||||
<meta name='DCTERMS.title' content='<!--@eval page.title@-->' />
|
<meta name='DCTERMS.title' content=<!--@eval repr(page.title)@--> />
|
||||||
<meta name='DCTERMS.description' content='<!--@eval page.summary@-->' />
|
|
||||||
<meta name='DCTERMS.creator' content='Niels Serup' />
|
<meta name='DCTERMS.creator' content='Niels Serup' />
|
||||||
<!-- <meta name='DCTERMS.format' content='application/xhtml+xml' />-->
|
<!-- <meta name='DCTERMS.format' content='application/xhtml+xml' />-->
|
||||||
<!--@exec
|
<!--@exec
|
||||||
|
if page.summary:
|
||||||
|
print("<meta name='DCTERMS.description' content={} />".format(repr(page.summary)))
|
||||||
if page.created_rfc3339:
|
if page.created_rfc3339:
|
||||||
print(" <meta name='DCTERMS.created' content='{}' />".format(page.created_rfc3339))
|
print(" <meta name='DCTERMS.created' content='{}' />".format(page.created_rfc3339))
|
||||||
if page.modified_rfc3339:
|
if page.modified_rfc3339:
|
||||||
print(" <meta name='DCTERMS.modified' content='{}' />".format(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.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='software developers' />
|
||||||
<meta name='DCTERMS.audience' content='hackers' />
|
<meta name='DCTERMS.audience' content='hackers' />
|
||||||
<meta name='DCTERMS.audience' content='individuals' />
|
<meta name='DCTERMS.audience' content='individuals' />
|
||||||
|
@ -72,7 +73,7 @@ if page.licenses:
|
||||||
<!--@eval run_macros(page.head)@-->
|
<!--@eval run_macros(page.head)@-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a id='minilogo' href='/'></a>
|
<div><a id='minilogo' href='/'></a></div>
|
||||||
<div id='menu'>
|
<div id='menu'>
|
||||||
<ul id='menulinks'>
|
<ul id='menulinks'>
|
||||||
<!--@prexec
|
<!--@prexec
|
||||||
|
|
|
@ -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 ---
|
to exist. That is over now. /metanohi/ has no real need for a start page ---
|
||||||
and that means no more superfluous text[fn:extra].
|
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
|
* Passive activism
|
||||||
|
|
||||||
|
|
|
@ -175,19 +175,31 @@ These are my projects, new and old.
|
||||||
|
|
||||||
** Relatively new
|
** Relatively new
|
||||||
|
|
||||||
<@exec boxprojs(top_projs) @>
|
#++exec
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
boxprojs(top_projs)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** Others
|
*** Others
|
||||||
|
|
||||||
<@exec listprojs(other_projs) @>
|
#++exec
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
listprojs(other_projs)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
#+mark: old
|
#+mark: old
|
||||||
** Old
|
** Old
|
||||||
|
|
||||||
<@exec boxprojs(old_top_projs) @>
|
#++exec
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
boxprojs(old_top_projs)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** Others
|
*** Others
|
||||||
|
|
||||||
<@exec listprojs(other_old_projs) @>
|
#++exec
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
listprojs(other_old_projs)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ Inline: =<p>abc</p>=&html.
|
||||||
<div style='margin-left: 20px' id='tempobj'>au</div>
|
<div style='margin-left: 20px' id='tempobj'>au</div>
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
The above code equals:
|
The above code equals:
|
||||||
|
|
||||||
#++show
|
#++show
|
||||||
#+BEGIN_SRC html
|
#+BEGIN_SRC html
|
||||||
<div style='margin-left: 20px' id='tempobj'>au</div>
|
<div style='margin-left: 20px' id='tempobj'>au</div>
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
|
|
||||||
* Writings
|
* Writings
|
||||||
|
|
||||||
<@eval macros.list_pages()@>
|
#++eval
|
||||||
|
#+BEGIN_SRC python
|
||||||
|
macros.list_pages()
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Old
|
** Old
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue