mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-06-18 09:16:48 +02:00
* auto-generate categories, references
* clean-up * basic 404 page * alternative titles * don't show comments in html
This commit is contained in:
parent
7a8753c6ba
commit
ac102f8cfa
21
Rules
21
Rules
|
@ -17,13 +17,12 @@
|
|||
preprocess do
|
||||
# find reference item
|
||||
reference = @items.find{|item| item.identifier == '/references/'}
|
||||
ref_content =
|
||||
|
||||
unless reference.nil?
|
||||
# add references to every markdown item
|
||||
@items.each do |item|
|
||||
if item == reference
|
||||
next
|
||||
elsif item[:extension] == "mkd"
|
||||
printed_items.each do |item|
|
||||
if item[:extension] == "mkd"
|
||||
item.add_references reference.raw_content
|
||||
end
|
||||
end
|
||||
|
@ -31,19 +30,21 @@ preprocess do
|
|||
end
|
||||
|
||||
compile '/style/' do
|
||||
# don’t filter or layout
|
||||
# don't filter or layout
|
||||
end
|
||||
|
||||
compile '/references' do
|
||||
# link references are only added to other files
|
||||
end
|
||||
|
||||
compile '*' do
|
||||
if item.binary?
|
||||
# don’t filter binary items
|
||||
# don't filter binary items
|
||||
else
|
||||
case @item[:extension]
|
||||
when "mkd"
|
||||
filter :kramdown
|
||||
layout 'default'
|
||||
when "erb"
|
||||
when "mkd" # normal pages
|
||||
filter :erb
|
||||
filter :kramdown
|
||||
layout 'default'
|
||||
end
|
||||
filter :tidy
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
title: 404
|
||||
---
|
||||
|
||||
...when candles turn to ashes, tears shall stop...
|
||||
|
||||
Sorry. :<
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: contact muflax
|
||||
alt_titles: [Contact]
|
||||
---
|
||||
|
||||
Contact
|
||||
|
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
6
content/experiments/index.mkd
Normal file
6
content/experiments/index.mkd
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Experiments
|
||||
is_category: true
|
||||
---
|
||||
|
||||
<%= category :experiments %>
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
@ -1,4 +1,7 @@
|
|||
% Speed Reading
|
||||
---
|
||||
title: Speed Reading
|
||||
status: :rough
|
||||
---
|
||||
|
||||
Wait, what? Speed reading? Isn't that pseudoscience? Partially, sure. However,
|
||||
not all of it, and that really surprised me. Yes, speed reading *is* real. This
|
||||
|
@ -10,7 +13,7 @@ Hacking your brain for fun and profit
|
|||
Binocular Rivalry
|
||||
-----------------
|
||||
|
||||
While working through [Consciousness Explained] by Daniel Dennett, I encountered
|
||||
While working through [Consciousness Explained][] by Daniel Dennett, I encountered
|
||||
several experiments that I doubted. So I tried to replicate them. Specifically,
|
||||
binocular rivalry seemed weird to me. Binocular rivalry occurs when each of
|
||||
your eyes sees a different thing, typically achieved by just setting up a
|
||||
|
@ -28,7 +31,7 @@ Allegedly, you may control which side is dominant most of the time, but you can
|
|||
not be conscious of both reliably. I didn't believe that and tested it by trying
|
||||
to read two texts simultaneously. In fact, I actually managed to do that! The
|
||||
main visual problem is focus. It is quite hard to have each eye focus a
|
||||
different thing, but using e.g. [DXM], you can actually pull that off. But even
|
||||
different thing, but using e.g. [DXM][], you can actually pull that off. But even
|
||||
without it, you can try to focus a middle point and just make the letters big
|
||||
enough so that you can read them even out-of-focus. The real problem comes from
|
||||
assembling two sources of input into separate sentences; at first, they always
|
||||
|
@ -246,8 +249,8 @@ the whole meat of speed reading. It's the main trick to discover.
|
|||
Once you read at a very high speed, it really makes a huge difference how large
|
||||
your chunks are. Here's a little demonstration:
|
||||
|
||||
![chunk size 1](fast.gif)
|
||||
![chunk size 4](slow.gif)
|
||||
![chunk size 1](/experiments/fast.gif)
|
||||
![chunk size 4](/experiments/slow.gif)
|
||||
|
||||
Both animations run at the same reading speed of 1000wpm, but the first one
|
||||
shows every word on its own, while the second one uses groups of 4. If you watch
|
||||
|
@ -275,14 +278,15 @@ A very useful technique for training purposes is **Rapid Serial Visual
|
|||
Presentation**, or RSVP for short. That's quite a big word, when really, it just
|
||||
means "flashing words really fast", exactly like the two animations before.
|
||||
|
||||
The best RSVP I found is [Eyercize](http://www.eyercize.com), even though it has
|
||||
The best RSVP I found is [Eyercize][], even though it has
|
||||
the stupidest name *evar*. Nonetheless, it's the only speed reading tool I know
|
||||
with support for fixation points and complete customization. I usually set it to
|
||||
2-3 fixation points per line, about 5 lines of context and increasingly higher
|
||||
speeds. I occasionally ignore the marked line and read the upcoming context
|
||||
instead, though. [Spreeder](http://www.spreeder.com) is also nice and maybe
|
||||
instead, though. [Spreeder][] is also nice and maybe
|
||||
easier to use at first.
|
||||
|
||||
|
||||
I would also recommend [Look, Ma; No Hands!], a book that teaches semantic
|
||||
chunking very well. It's quite short and precise. You get results very fast.
|
||||
|
||||
|
@ -465,15 +469,9 @@ really slows me down. This also means that each book has its own speed, so
|
|||
measuring reading speeds in "words per minute" stops being useful. "Bits of
|
||||
information per minute" would be better, but how do you calculate that?
|
||||
|
||||
[Look, Ma; No Hands!]: http://www.semanticrestructuring.com/lookma.php
|
||||
|
||||
[Consciousness Explained]: /reflections/con_exp.html
|
||||
|
||||
[DXM]: http://en.wikipedia.org/wiki/DXM
|
||||
|
||||
[^pororo]:
|
||||
I wrote my own timer for such purposes. You can check it out at
|
||||
http://github.com/muflax/pororo. Basically, you set a timer for each level
|
||||
I wrote my own timer for such purposes. You can check it out on
|
||||
[Github][Pororo]. Basically, you set a timer for each level
|
||||
of the task, like a 23s timer for the page and a 200page timer for the book.
|
||||
Alternatively, I used the metronome function of my mp3 player, especially
|
||||
when reading on the train or when waiting for something.
|
|
@ -8,50 +8,15 @@ Lies and Wonderland
|
|||
![logo](logo.jpg)
|
||||
Yet another hypergraphic information whore's site.
|
||||
|
||||
muflax is empty. My [LibraryThing] profile says more about me than I ever could.
|
||||
muflax is empty. My [LibraryThing][] profile says more about me than I ever could.
|
||||
You may, of course, just read this site to find out more. You can
|
||||
get in [Contact] with me about anything, be it comments, criticisms or
|
||||
get in [Contact][] with me about anything, be it comments, criticisms or
|
||||
corrections.
|
||||
|
||||
Articles are sorted by date, with newer ones at the top. You can see the
|
||||
[Changelog] for any recent changes or subscribe to the [RSS] feed. You can also
|
||||
read the [Twitter] feed or my [Blog] for smaller, more cutting edge thoughts.
|
||||
|
||||
[Experiments]
|
||||
=============
|
||||
|
||||
This is basically my public spoiler file for life. Why should I keep all the
|
||||
cool stuff I found out to myself? Information ought to be free, after all.
|
||||
|
||||
- [Kickstarting Motivation], a technique I use to start my days
|
||||
- improving [Concentration] and motivation
|
||||
- how to develop [Speed Reading] and read a book in an hour
|
||||
- [Sleep] hacks
|
||||
- some hacks for [Good Sleep]
|
||||
- my experience and criticism of [Polyphasic Sleep]
|
||||
|
||||
[Reflections]
|
||||
=============
|
||||
|
||||
The unobserved life is not worth living.
|
||||
|
||||
- [On Purpose]
|
||||
- [On The Crucifixion]
|
||||
- [Gospel of Muflax]
|
||||
- [There Is Only Quale], a piece on dreams, memory and space ships
|
||||
- a [Philosophical Survey]
|
||||
- thoughts on Daniel Dennett's book [Consciousness Explained]
|
||||
- [Letting Go of Music]
|
||||
- my review of [Find the Bug]
|
||||
- a bit about [Nicknames]
|
||||
- a meditation on [Xmonad]
|
||||
|
||||
[Software]
|
||||
==========
|
||||
|
||||
Some of the stuff I wrote.
|
||||
|
||||
- my [vim] config and complete feature list
|
||||
- [ashuku], a personal statistics tool
|
||||
- [saneo], my keyboard layout
|
||||
[Changelog] for any recent changes or subscribe to the [RSS Feed][RSS]. You can
|
||||
also read the [Twitter][] feed or my [Blog][] for smaller, more cutting edge
|
||||
thoughts.
|
||||
|
||||
<%= category :experiments %>
|
||||
<%= category :reflections %>
|
||||
|
|
|
@ -1,42 +1,29 @@
|
|||
<!-- personal links -->
|
||||
[Blog]: http://blog.muflax.com
|
||||
[GPG Key]: /muflax.asc
|
||||
[Google+]: https://plus.google.com/105665518912548939532
|
||||
[LibraryThing]: http://www.librarything.com/profile/muflax
|
||||
[Pororo]: http://github.com/muflax/pororo
|
||||
[Source]: http://github.com/muflax/muflax.com
|
||||
[Twitter]: http://twitter.com/muflax
|
||||
|
||||
<!-- external links -->
|
||||
[Creative Commons]: http://creativecommons.org/licenses/by-nc-sa/3.0/de
|
||||
[Eyercize]: http://www.eyercize.com
|
||||
[Look, Ma; No Hands!]: http://www.semanticrestructuring.com/lookma.php
|
||||
[Spreeder]: http://www.spreeder.com
|
||||
|
||||
[Changelog]: /changelog/
|
||||
<!-- Wikipedia articles -->
|
||||
[DXM]: http://en.wikipedia.org/wiki/DXM
|
||||
|
||||
<!-- internal links -->
|
||||
[RSS]: /rss.xml
|
||||
[Contact]: /contact/
|
||||
|
||||
<!-- automatic content -->
|
||||
<%= page_references %>
|
||||
|
||||
[Experiments]: /experiments
|
||||
[Kickstarting Motivation]: /experiments/kickstart.html
|
||||
[Concentration]: /experiments/concentration.html
|
||||
[Speed Reading]: /experiments/speedreading.html
|
||||
[Sleep]: /experiments/sleep
|
||||
[Good Sleep]: /experiments/sleep/good_sleep.html
|
||||
[Polyphasic Sleep]: /experiments/sleep/polyphasic_sleep.html
|
||||
|
||||
[Reflections]: /reflections
|
||||
[On The Crucifixion]: /reflections/crucifixion.html
|
||||
[On Purpose]: /reflections/purpose.html
|
||||
[Philosophical Survey]: /reflections/survey.html
|
||||
[Letting Go of Music]: /reflections/letting_go_of_music.html
|
||||
[Consciousness Explained]: /reflections/con_exp.html
|
||||
[Why I love my SRS]: /reflections/srs.html
|
||||
[Xmonad]: /reflections/xmonad.html
|
||||
[Nicknames]: /reflections/nickname.html
|
||||
[Find the Bug]: /reflections/find_the_bug.html
|
||||
[There Is Only Quale]: /reflections/quale.html
|
||||
[Gospel of Muflax]: /reflections/gospel.html
|
||||
|
||||
[Software]: /software
|
||||
[ashuku]: /software/ashuku.html
|
||||
[saneo]: /software/saneo.html
|
||||
[vim]: /software/vim.html
|
||||
|
||||
<!-- abbreviations -->
|
||||
*[PCT]: Perceptual Control Theory
|
||||
*[LW]: LessWrong
|
||||
*[SIA]: Self-Indication Assumption
|
||||
*[SSA]: Self-Sampling Assumption
|
||||
|
|
190
content/reflections/gospel.mkd
Normal file
190
content/reflections/gospel.mkd
Normal file
|
@ -0,0 +1,190 @@
|
|||
---
|
||||
title: Gospel of Muflax
|
||||
status: :done
|
||||
---
|
||||
|
||||
Foreword
|
||||
========
|
||||
|
||||
Every mystic needs their own gospel. You can't just go around, claiming "Those
|
||||
dudes pretty much said it all." and expect to be taken seriously. You have to
|
||||
not just invent your own terms, mythology and techniques, you also need your own
|
||||
Holy Texts about Everything One Needs To Know. At the very least, write some
|
||||
~~fanfic~~ new revelations to some other text. But then it better have some
|
||||
angels and dragons and shit!
|
||||
|
||||
So, here is mine. Even with added confusing commentary! Further revelations will
|
||||
be added as The One That Knows Shit (TOKSHI, 特使) teaches me more.
|
||||
|
||||
Gospel of Muflax
|
||||
================
|
||||
|
||||
Thus have I heard.
|
||||
|
||||
1. TOKSHI said, nothing lasts.[^anicca] If you watch closely, things keep on
|
||||
wobbling away, even really sticky ones.
|
||||
|
||||
1. TOKSHI said, don't identify with things. Those that think they are things,
|
||||
become things. Those that don't think they are things, aren't bogged down by
|
||||
all the silly associations.[^anatta]
|
||||
|
||||
1. TOKSHI said, now is good, tomorrow never good enough.
|
||||
|
||||
1. TOKSHI said, don't force it. Things have a way of getting done if you don't
|
||||
try to get them done while getting them done.[^gtd]
|
||||
|
||||
1. TOKSHI said, do whatever you want to do because that's what you're gonna do
|
||||
anyway. But try being nice sometimes?
|
||||
|
||||
1. TOKSHI said, those that know the Law, will follow it. Those that say they
|
||||
know the Law, will break It. But they will get laid.[^unity]
|
||||
|
||||
1. TOKSHI said, it's worse than you think. The Thing That Makes Things Happen
|
||||
According To Plan lost The Plan, but It is pretty good at faking
|
||||
it.
|
||||
|
||||
1. TOKSHI said, the universe doesn't care about you. Like, at all.[^emptiness]
|
||||
|
||||
1. TOKSHI said, if you try hard, you can do some wicked shit with your mind.
|
||||
Play around some time.
|
||||
|
||||
1. TOKSHI said, everything is better with practice. Try it some more, you will
|
||||
get good at it, promise. This includes dying.
|
||||
|
||||
1. TOKSHI said, don't wish for things because then you will get exactly what
|
||||
you wished for and it will totally suck and you will look stupid.[^wish]
|
||||
|
||||
1. TOKSHI said, you have a brain the size of a coconut. You think that's just
|
||||
the right size to understand everything? Are you sure about that?
|
||||
|
||||
1. TOKSHI said, there are only two correct answers to the question "What is
|
||||
this?"[^whatisthis] - the first, "It's not what you think it is."; the
|
||||
second, "Let me show you!".
|
||||
|
||||
1. TOKSHI said, every strength is a weakness. Be empty, be invincible.
|
||||
|
||||
1. TOKSHI said, fail in interesting ways.
|
||||
|
||||
1. TOKSHI said, don't be happy.
|
||||
|
||||
[^anatta]:
|
||||
Try "finding yourself" some time. But don't do a half-assed job and stop
|
||||
with the first thing that comes up. Be thorough. Allow yourself to be
|
||||
genuinely surprised. If it makes sense right away, then it is most
|
||||
definitely wrong.
|
||||
|
||||
A koan. One day, a monk went to TOKSHI and said, "Holy One, my mind has no
|
||||
peace as yet. Please, put it to rest.". TOKSHI quoted,
|
||||
|
||||
> Huike said, "Your disciple's mind has no peace as yet. Master, please, put
|
||||
> it to rest.". Bodhidharma said, "Bring me your mind, and I will put it to
|
||||
> rest.". Huike said, "I have searched for my mind, but I cannot find it.".
|
||||
> Bodhidharma said, "I have completely put it to rest for you.".
|
||||
|
||||
The monk searched and returned. "Holy One, I have searched for my mind and
|
||||
found it. Please, put it to rest now.". Upon hearing this, TOKSHI died.
|
||||
|
||||
[^anicca]:
|
||||
When you watch yourself watching yourself, you will occassionally catch
|
||||
yourself not watching yourself. Really. Try it. (Unfortunatly, it takes a
|
||||
lot of practice to get there. The problem is developing a strong enough
|
||||
concentration and to get rid of many mental filters until you can direct
|
||||
your attention at your own attention. The rest falls into place in no time.)
|
||||
|
||||
You see, even the elementary metaphysics of the universe are too lazy to put
|
||||
in full effort all the time. But hey, being All There Is can be exhausting
|
||||
sometimes. You'd cut corners, too.
|
||||
|
||||
[^gtd]:
|
||||
Imagine the world being run by the most spiteful of all Demons. Whatever you
|
||||
plan, it will prevent. Whatever you want, it will take away. Whatever you
|
||||
want to avoid, it will force on you. But if you stop making any plans, it
|
||||
can't do anything anymore. The opposite of zero is still zero.
|
||||
|
||||
This is when the Tao can take over. The Tao is a lot nicer than the Demon.
|
||||
So, stop making plans. And imagining demons. What are you, 5?
|
||||
|
||||
[^unity]:
|
||||
Bullshitting others and yourself is a crucial skill in evolution. Even
|
||||
bacteria fake hard work while slacking off. Saying what is right, but
|
||||
doing what is convenient is the Ultimate Shortcut.
|
||||
|
||||
[^emptiness]:
|
||||
This place is Limbo. It is utterly devoid of Meaning, of Truth, of Value, of
|
||||
God, of Purpose or of Choice. You are not even a prisoner or a slave because
|
||||
there is no Master, no Punishment, no Torment and no Guilt.
|
||||
|
||||
Nothing you, or any one else, does, matters. Understanding is irrelevant and
|
||||
temporary. Ignorance always takes over, no Structure lasts, everything is
|
||||
ground down eventually. There is no escape, but also no meaning to be had in
|
||||
suffering or revolution because there is no one watching, nothing to escape
|
||||
into and no transformation to be achieved. All we will ever do will be
|
||||
undone.
|
||||
|
||||
It is the worst of all Hells because it uses consciousness against itself.
|
||||
If there were active punishment, active torment, any plan at all, we could
|
||||
rebel. We could take a stand. If there were any purpose, Freedom would be
|
||||
possible.
|
||||
|
||||
It is the best of all Heavens because it never lasts, never allows us to
|
||||
grasp it, never fulfills. It gives us constant struggle, doomed to failure,
|
||||
and in it, we strive.
|
||||
|
||||
It is just on the brink of emptiness, just full enough that our minds can
|
||||
make out Forms and Shadows, but not enough for them to hold onto. All
|
||||
suffering is self-inflicted by delusion, but knowledge is impossible, and
|
||||
delusion becomes inevitable.
|
||||
|
||||
> Long have you (repeatedly) experienced the death of a mother. The tears
|
||||
> you have shed over the death of a mother while transmigrating and
|
||||
> wandering this long, long time - crying and weeping from being joined with
|
||||
> what is displeasing, being separated from what is pleasing - are greater
|
||||
> than the water in the four great oceans.
|
||||
>
|
||||
> Long have you (repeatedly) experienced the death of a father, the death of
|
||||
> a brother, the death of a sister, the death of a son, the death of a
|
||||
> daughter, loss with regard to relatives, loss with regard to wealth, loss
|
||||
> with regard to disease. The tears you have shed over loss with regard to
|
||||
> disease while transmigrating & wandering this long, long time - crying and
|
||||
> weeping from being joined with what is displeasing, being separated from
|
||||
> what is pleasing - are greater than the water in the four great oceans.
|
||||
> Why is that? From an inconstruable beginning. A beginning point is not
|
||||
> evident, though beings hindered by ignorance and fettered by craving are
|
||||
> transmigrating & wandering on. Long have you thus experienced stress,
|
||||
> experienced pain, experienced loss, swelling the cemeteries - enough to
|
||||
> become disenchanted with all fabricated things, enough to become
|
||||
> dispassionate, enough to be released.
|
||||
>
|
||||
> -- Buddha, Assu Sutta
|
||||
|
||||
This world is exactly as I would have designed it. Have fun.
|
||||
|
||||
[^wish]:
|
||||
A long time ago, a young monk had a clear vision of The Perfect Life,
|
||||
including a place to live and a girl to be with. Then he moved to that
|
||||
place and met the girl and he was really unhappy. Turned out, he didn't
|
||||
actually like being there and the girl was kinda boring and just as full of
|
||||
fear and uncertainty as the monk, so what good is she, really?
|
||||
|
||||
[^whatisthis]:
|
||||
A koan.
|
||||
|
||||
After a lesson, TOKSHI would often meet with individual students in private
|
||||
and allow them to ask any question about things they didn't understand. One
|
||||
day, an especially curious monk hid behind a curtain and listened to the
|
||||
conversations. This day, three students came.
|
||||
|
||||
The first student asked TOKSHI, "Holy One, you have told us about God. I
|
||||
don't know what God is. Can you tell me?", and TOKSHI answered, "It's not
|
||||
what you think it is. Let me show you!", upon which TOKSHI would make the
|
||||
student see God.
|
||||
|
||||
The second student asked TOKSHI, "Holy One, you mentioned rebirth. What is
|
||||
this?", and TOKSHI answered, "It's not what you think it is. Let me show
|
||||
you!", upon which TOKSHI would make the student be reborn.
|
||||
|
||||
The third student asked TOKSHI, "Holy One, what is liberation?", and TOKSHI
|
||||
answered, "It's not what you think it is. Let me show you!", upon which
|
||||
TOKSHI would make the student free.
|
||||
|
||||
Upon hearing TOKSHI's three answers, the monk was enlightened.
|
6
content/reflections/index.mkd
Normal file
6
content/reflections/index.mkd
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Reflections
|
||||
is_category: true
|
||||
---
|
||||
|
||||
<%= category :reflections %>
|
|
@ -1,20 +0,0 @@
|
|||
% about muflax
|
||||
|
||||
Contact
|
||||
=======
|
||||
|
||||
To send me comments, angry rants, marriage proposals or anything else, mail me
|
||||
at *mail at muflax dot com* or message me in Jabber at *muflax at tuxed dot
|
||||
org*. I also use [Twitter].
|
||||
|
||||
You can also use my [GPG] key (md5 hash a4992cbb4a5d48dd4188f7e49cfc3a3d), if
|
||||
you want.
|
||||
|
||||
All content is under a [Creative Commons] Attribution Noncommercial Share Alike
|
||||
3.0 license. You can do with it whatever the fuck you want, as long as you don't
|
||||
sell it or make it unfree. You can also get the [source], if you want.
|
||||
|
||||
[source]: http://github.com/muflax/muflax.com
|
||||
[Creative Commons]: http://creativecommons.org/licenses/by-nc-sa/3.0/de
|
||||
[GPG]: muflax.asc
|
||||
[Twitter]: http://twitter.com/muflax
|
|
@ -1,14 +1,71 @@
|
|||
# All files in the 'lib' directory will be loaded
|
||||
# before nanoc starts compiling.
|
||||
# Helper functions for site-building.
|
||||
|
||||
include Nanoc3::Helpers::Breadcrumbs
|
||||
|
||||
class Nanoc3::Item
|
||||
def add_content content
|
||||
@raw_content += "\n\n#{content}"
|
||||
end
|
||||
|
||||
def add_references refs
|
||||
@raw_content += "\n\n#{refs}"
|
||||
add_content refs
|
||||
end
|
||||
|
||||
def name
|
||||
identifier.split("/").last
|
||||
end
|
||||
end
|
||||
|
||||
# print all items in a category, nicely formatted
|
||||
def category name
|
||||
output = []
|
||||
cat_match = %r{^/#{name}/}
|
||||
|
||||
# find category index
|
||||
cat_index = @items.find{|i| i.path.match(cat_match) and i[:is_category]}
|
||||
|
||||
# header
|
||||
output << "# [#{cat_index[:title]}]"
|
||||
|
||||
# find items in category
|
||||
items = @items.select do |i|
|
||||
( not i.binary? and
|
||||
not i[:is_category] and
|
||||
i.path.match cat_match
|
||||
)
|
||||
end
|
||||
|
||||
# items in nice list
|
||||
items.each do |i|
|
||||
output << "- [#{i[:title]}]"
|
||||
end
|
||||
|
||||
# output
|
||||
output.map{|i| "#{i}\n"}.join
|
||||
end
|
||||
|
||||
# only articles that actually get printed
|
||||
def printed_items
|
||||
@items.select do |i|
|
||||
( not i.identifier.match %r{/(references|style)/} and
|
||||
not i.binary?
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
#automatic links for all pages, used by reference file
|
||||
def page_references
|
||||
output = []
|
||||
printed_items.each do |i|
|
||||
output << "[#{i[:title]}]: #{i.identifier}"
|
||||
|
||||
unless i[:alt_titles].nil?
|
||||
i[:alt_titles].each do |title|
|
||||
output << "[#{title}]: #{i.identifier}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# output
|
||||
output.map{|i| "#{i}\n"}.join
|
||||
end
|
||||
|
|
|
@ -12,7 +12,8 @@ class TidyFilter < Nanoc3::Filter
|
|||
:wrap => 80,
|
||||
:tidy_mark => false,
|
||||
:indent => 1,
|
||||
:char_encoding => "utf8"
|
||||
:char_encoding => "utf8",
|
||||
:hide_comments => true,
|
||||
).clean
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue