slug handling, categories

master
muflax 2012-04-16 19:28:41 +02:00
parent 194502a425
commit ae3fcf02e7
30 changed files with 133 additions and 9 deletions

View File

@ -12,11 +12,16 @@ RewriteEngine on
# don't alienate people who use the old feed
RewriteRule ^feed/? /rss.xml
<% unless main_site? %>
# store pigs in central site
<% unless main_site? %>
RewriteRule ^pigs/(.+)$ http://muflax.com/pigs/$1 [L]
<% end %>
# redirect old wordpress links
<% @site.slug_items.each do |item| %>
RewriteRule ^<%= item[:slug].chop %> <%= item.identifier.strip %>
<% end %>
# serve gzipped files if available
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !\.gz$

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
content/pigs/idea_man.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
content/pigs/nothing.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View File

@ -14,7 +14,6 @@
[Anhedonia]: http://en.wikipedia.org/wiki/Anhedonia
[Anicca]: http://en.wikipedia.org/wiki/Anicca
[Animal Rights]: http://en.wikipedia.org/wiki/Animal_rights#Main_philosophical_approaches
[Antinatalism]: http://en.wikipedia.org/wiki/Antinatalism
[Apocrypha Discordia]: http://appendix.23ae.com/apocrypha/index.html
[Arising and Passing Away]: http://www.dharmaoverground.org/web/guest/dharma-wiki/-/wiki/Main/The%20Arising%20and%20Passing%20Away?p_r_p_185834411_title=The%20Arising%20and%20Passing%20Away
[Arrow Paradox]: http://en.wikipedia.org/wiki/Zeno%27s_paradoxes#The_arrow_paradox
@ -175,4 +174,4 @@
[subs2srs]: http://rtkwiki.koohii.com/wiki/Subs2srs
[unsupervised universe]: http://wiki.lesswrong.com/wiki/Unsupervised_universe
[ジャックと豆の木]: http://en.wikipedia.org/wiki/Jack_and_the_Beanstalk_%281974_film%29
[秒速センチメートル]: http://en.wikipedia.org/wiki/5_Centimeters_Per_Second
[秒速5センチメートル]: http://en.wikipedia.org/wiki/5_Centimeters_Per_Second

View File

@ -0,0 +1,6 @@
---
title: Algorithmancy
is_category: true
---
<%= category :algorithmancy %>

View File

@ -0,0 +1,6 @@
---
title: Antinatalism
is_category: true
---
<%= category :antinatalism %>

View File

@ -0,0 +1,6 @@
---
title: Consciousness
is_category: true
---
<%= category :consciousness %>

View File

@ -0,0 +1,6 @@
---
title: Crackpottery
is_category: true
---
<%= category :crackpottery %>

View File

@ -0,0 +1,6 @@
---
title: Culture
is_category: true
---
<%= category :culture %>

View File

@ -0,0 +1,6 @@
---
title: Dark Stance Exploration
is_category: true
---
<%= category :"dark-stance" %>

View File

@ -0,0 +1,6 @@
---
title: Drugs
is_category: true
---
<%= category :drugs %>

View File

@ -0,0 +1,6 @@
---
title: Great Filter
is_category: true
---
<%= category :"great-filter" %>

View File

@ -0,0 +1,6 @@
---
title: Theology
is_category: true
---
<%= category :jesus %>

View File

@ -0,0 +1,6 @@
---
title: Languages
is_category: true
---
<%= category :languages %>

View File

@ -0,0 +1,6 @@
---
title: (Meta-)Morality
is_category: true
---
<%= category :morality %>

View File

@ -1,5 +1,5 @@
---
title: Daily Log
title: Daily Log (introduction)
date: 2012-03-09
tags:
- beeminder

View File

@ -0,0 +1,6 @@
---
title: Personal Crap
is_category: true
---
<%= category :personal %>

View File

@ -0,0 +1,6 @@
---
title: Propaganda
is_category: true
---
<%= category :propaganda %>

View File

@ -0,0 +1,6 @@
---
title: Algorithmic Induction
is_category: true
---
<%= category :solomonoff %>

View File

@ -0,0 +1,6 @@
---
title: Social Status
is_category: true
---
<%= category :status %>

View File

@ -22,7 +22,7 @@ The black dot is your current position. Seeing all, you know that you should go
Unfortunately, you don't have a map and your vision is limited.
<%= image("hill2.png", "hill2") %>
<%= image("hill21.png", "hill2") %>
A very simple and often effective solution is to follow the *steepest* path. This approach is guaranteed to get you to *some* peak, but unfortunately, it may not be the highest one.

View File

@ -0,0 +1,6 @@
---
title: Thought Experiments
is_category: true
---
<%= category :"thought-experiments" %>

View File

@ -11,7 +11,7 @@ episteme: :fiction
slug: 2012/03/21/suicide-and-preventing-grief/
---
In an underground bunker, deep under the Cartesian Plains, trapped in a cage, sits the great [Mahavira][]. He is the latest victim of [Doctor Deontology][tag doctor deontology], once again on a mission to spread chaos amongst all who vow to protect morality.
In an underground bunker, deep under the Cartesian Plains, trapped in a cage, sits the great [Mahavira][]. He is the latest victim of [Doctor Deontology][Thought Experiments], once again on a mission to spread chaos amongst all who vow to protect morality.
Mahavira defends the duty that one should [never do harm][Ahimsa]. It is never acceptable to be violent or knowingly cause others to suffer. Doctor Deontology, mad ethicist that he is, wants to test this notion.

View File

@ -16,7 +16,7 @@ So I tried to get into jhana to get rid of all the anxiety in my head. Did my fi
10min jhana failed to establish anything. My head isn't free, all entangled. I tried 5min shikantaza, but still only drift. Only the all-encompassing Dukkha [Core][Logic Core].
(I do have several drafts about this, and [old attempts to approach it][Morality for the Damned], and (maybe, in the archive) even the writing from the time I *created* the Dukkha Core, but this dlog is not about ideas, only practice. Eventually I will write this up, and I can then point to this entry here as the day I destroyed the Dukkha Core. Until then, it may unfortunately be hard to follow what I'm doing.)
(I do have several drafts about this, and [old attempts to approach it][Morality for the Damned (First Steps)], and (maybe, in the archive) even the writing from the time I *created* the Dukkha Core, but this dlog is not about ideas, only practice. Eventually I will write this up, and I can then point to this entry here as the day I destroyed the Dukkha Core. Until then, it may unfortunately be hard to follow what I'm doing.)
I need a larger caliber, something I haven't done in *years*. It's very dangerous and utterly uncontrollable, but I need drastic measures. Anything else will just repeat the pattern I'm currently going through, week after week, month after month.

View File

@ -18,8 +18,8 @@ I've also started writing a rant about the mistake I've seen a lot recently, acc
I've also come to a decision about how to use the various blogs. I like writing in a blog format *much* more than in any other form (except maybe Twitter), so I will move all my active writing there. However, a bunch of blog posts can become hard to read over time, so I'll move decent stuff into big articles on the main site. This way, there's always a "definite" version of my stuff. I'm currently trying to pull several strands together, so having stuff like a big Everything muflax Thinks About Antinatalism article would be good. This also makes it easier to link someone to it. ("See FAQ #23 for why this argument is bullshit.") As such, the main site becomes a cleaned-up and slightly improved version of the blog with maybe monthly updates or so. (I'll also merge the stuff already on there more.)
Blog-wise, I'll keep the current separation: <blog.muflax.com> for full ideas, <daily.muflax.com> for progress/practice/personal rants and *.muflax.com for individual writing projects, which currently consists only of <sutra.muflax.com>, but may expand. They too will be merged with the main site once they're finished.
Blog-wise, I'll keep the current separation: <http://blog.muflax.com> for full ideas, <http://daily.muflax.com> for progress/practice/personal rants and *.muflax.com for individual writing projects, which currently consists only of <http://sutra.muflax.com>, but may expand. They too will be merged with the main site once they're finished.
This means I'll keep on using WordPress, which costs me about 10$ more per year. I think I can live with that. I'll also switch hosts today without any visible changes whatsoever except some likely but very short downtime. I've already setup some of the stuff, should be done in a few hours.
Ultimately, the cult that will inevitably form around my writings after my death and which worships me as their One True Leader can then just use <muflax.com> as their Holy Scripture in the same vein as the [Kritiken][Kant], Das Kapital and Mein Kampf. (Only more fun than the first, better organized than the second, and better written than the third. Also maybe less insane than either, but to be honest, dead Germans don't have a good track record.)
Ultimately, the cult that will inevitably form around my writings after my death and which worships me as their One True Leader can then just use <http://muflax.com> as their Holy Scripture in the same vein as the [Kritiken][Kant], Das Kapital and Mein Kampf. (Only more fun than the first, better organized than the second, and better written than the third. Also maybe less insane than either, but to be honest, dead Germans don't have a good track record.)

View File

@ -0,0 +1,6 @@
---
title: Daily Log
is_category: true
---
<%= category :log %>

View File

@ -0,0 +1,6 @@
---
title: From the Pali Canon
is_category: true
---
<%= category :pali %>

View File

@ -44,6 +44,10 @@ class Nanoc::Site
def find_printed_items
@printed_items = @items.select { |i| not i[:is_hidden] and not i.binary? }
end
def slug_items
@printed_items.select {|i| not i[:slug].nil?}
end
end
def category name

View File

@ -50,3 +50,11 @@ def google_video(url)
EOL
end
def vimeo(url)
<<EOL
<div align="center">
<iframe src="#{url}?portrait=0&amp;color=000000" frameborder="0" width="400" height="320">
</iframe>
</div>
EOL
end