Get rid of the "misc" page. Just put it on the front page.

This commit is contained in:
Niels G. W. Serup 2019-10-30 01:09:24 +01:00
parent af3baace93
commit f767cec81b
6 changed files with 69 additions and 62 deletions

View File

@ -104,6 +104,7 @@ location / {
rewrite ^/writings/two-spaces /two-spaces redirect; rewrite ^/writings/two-spaces /two-spaces redirect;
rewrite ^/writings/ugs /ugs/ redirect; rewrite ^/writings/ugs /ugs/ redirect;
rewrite ^/writings/unhappy /unhappy/ redirect; rewrite ^/writings/unhappy /unhappy/ redirect;
rewrite ^/misc / redirect;
rewrite ^/bsq https://old-projects.metanohi.name/bsq/; rewrite ^/bsq https://old-projects.metanohi.name/bsq/;

View File

@ -78,8 +78,8 @@ def markdown_to_html(input_file, output_dir):
relpath = os.path.relpath(input_file, start=common) relpath = os.path.relpath(input_file, start=common)
# Special cases # Special cases
if relpath == 'site/misc/index.md': if relpath == 'site/index.md':
top = read(input_file) input_base = read(input_file)
pages = [] pages = []
for path, subdirs, subfiles in os.walk(site_dir): for path, subdirs, subfiles in os.walk(site_dir):
@ -97,7 +97,7 @@ def markdown_to_html(input_file, output_dir):
pages.append((dir + '/' + uri, pages.append((dir + '/' + uri,
os.path.normpath(os.path.join(base_dir, path, name)))) os.path.normpath(os.path.join(base_dir, path, name))))
builtins = ['/', '/about/', '/about/niels', '/misc/', '/404'] builtins = ['/', '/about/', '/about/niels', '/404']
pages = filter(lambda t: t[0] not in builtins, pages) pages = filter(lambda t: t[0] not in builtins, pages)
pages_new = [] pages_new = []
for page in pages: for page in pages:
@ -116,8 +116,7 @@ def markdown_to_html(input_file, output_dir):
pabstract = '(No description)' pabstract = '(No description)'
md += '[{}]({})\n ~ {}\n\n'.format(ptitle, url, pabstract) md += '[{}]({})\n ~ {}\n\n'.format(ptitle, url, pabstract)
bottom = md content = pandoc_stdin(input_base.replace('SPECIAL:ARTICLES', md))
content = pandoc_stdin(top + '\n' + bottom)
else: else:
content = pandoc(input_file) content = pandoc(input_file)

View File

@ -3,33 +3,32 @@
This is the personal website of [Niels G. W. Serup](/about/niels). This is the personal website of [Niels G. W. Serup](/about/niels).
## Riddles, jokes, and more ## Articles
-- What was the primary food source 100 million years ago in the SPECIAL:ARTICLES
approximate area of today's Germany?
-- Dinosauerkraut!
--- ## Burgerforslag.dk
The apocalyptic landscape was no one's friend. As another day dawned, I have created a burgerized version of the danish
The scrap dealer Scrap once again put on her protective gear and exited [Borgerforslag](https://www.borgerforslag.dk) at
the cave on her roaring tricycle, ready for all challenges. [burgerforslag.dk](http://burgerforslag.dk).
Scrap soon crossed paths with a chaotic rider, but managed to get away
by driving safely. Good thing she brought the protective gear.
--- ## My official webcomic
A person enters a bus and asks the driver how much a ticket costs. "2 I have an inactive webcomic called SUUM. It's located at
units of the currency," the driver responds. The person is confused: 2 [suum.metanohi.name](https://suum.metanohi.name).
of what currency? After two seconds, the driver hands a ticket, closes
the doors, and starts driving. Cleverly, and with a satisfying sense of
comprehension, the person realises that the currency was time, and the ## Miscellaneous projects
units were seconds. The bus then promptly stops, the driver looking
perplexed. "Was I wrong?" the person wonders, as the driver picks up an See this listing of [git repositories](https://git.metanohi.name/),
LED lamp and touches the person twice. Nothing happens, the driver mostly containing old and unmaintained programming things. Also this
apologises for "forgetting the new rules", and the person is thrown off website.
the bus -- after all, the person did not have two units of *the state of
being current*. (The funny point is that rules can be unclear and
change without making sense.) ## Very old web experiments
For your pleasure: [nohiX](http://nohix.metanohi.name/) and [this
directory listing](http://projects.metanohi.name/).

42
site/jokes.md Normal file
View File

@ -0,0 +1,42 @@
---
abstract: Of my very own creation.
---
# Riddles, jokes, and more
-- What was the primary food source 100 million years ago in the
approximate area of today's Germany?
-- Dinosauerkraut!
---
The apocalyptic landscape was no one's friend. As another day dawned,
The scrap dealer Scrap once again put on her protective gear and exited
the cave on her roaring tricycle, ready for all challenges.
Scrap soon crossed paths with a chaotic rider, but managed to get away
by driving safely. Good thing she brought the protective gear.
---
A person enters a bus and asks the driver how much a ticket costs. "2
units of the currency," the driver responds. The person is confused: 2
of what currency? After two seconds, the driver hands a ticket, closes
the doors, and starts driving. Cleverly, and with a satisfying sense of
comprehension, the person realises that the currency was time, and the
units were seconds. The bus then promptly stops, the driver looking
perplexed. "Was I wrong?" the person wonders, as the driver picks up an
LED lamp and touches the person twice. Nothing happens, the driver
apologises for "forgetting the new rules", and the person is thrown off
the bus -- after all, the person did not have two units of *the state of
being current*. (The funny point is that rules can be unclear and
change without making sense.)
---
-- What's the difference between a person *X* who studies the [279 Thule
asteroid](https://en.wikipedia.org/wiki/279_Thule) and a person *Y* who
destroys it?
-- X is thoughtful. Y just fought Thule.

View File

@ -1,33 +0,0 @@
# Miscellaneous items
This page contains things that I couldn't fit into other pages.
## My official webcomic
I have an inactive webcomic called SUUM. It's located at
[suum.metanohi.name](https://suum.metanohi.name).
## Burgerforslag.dk
I have created a burgerized version of the danish
[Borgerforslag](https://www.borgerforslag.dk) at
[burgerforslag.dk](http://burgerforslag.dk).
## Very old web experiments
For your pleasure: [nohiX](http://nohix.metanohi.name/) and [this
directory listing](http://projects.metanohi.name/).
## Other projects
See this listing of [git repositories](https://git.metanohi.name/).
Mostly old and unmaintained programming things. Also this website.
## Articles

View File

@ -15,7 +15,6 @@
<ul> <ul>
<li><a href="https://github.com/nqpz">github</a></li> <li><a href="https://github.com/nqpz">github</a></li>
<li><a href="https://media.metanohi.name/">media</a></li> <li><a href="https://media.metanohi.name/">media</a></li>
<li><a href="/misc">misc</a></li>
<li><a href="/about/">about</a></li> <li><a href="/about/">about</a></li>
</ul> </ul>
</nav> </nav>