1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-26 10:26:48 +02:00

mindkiller warning

This commit is contained in:
muflax 2012-02-05 04:50:20 +01:00
parent ded40e2a4e
commit 1185398514
3 changed files with 23 additions and 7 deletions

View file

@ -70,6 +70,11 @@ div#episteme {
line-height: 2em;
}
/* mindkiller warning */
div#mindkiller {
background: $episteme;
}
div#disqus {
border-top: 10px solid $h1;
text-align: center;

View file

@ -32,8 +32,14 @@
</h1></div>
<% end %>
<% if @item.mindkiller? %>
<div id="mindkiller">
<p><strong>Warning</strong>: this page contains mind-killing content. Proceed with caution. The <a href="/tl;dr/">author</a> does not endorse any of the views expressed here, even when they may look convincing. If you feel offended, consider that the author might be trolling you and whether you want to encourage them even further.</p>
</div>
<% end %>
<!-- epistemic and technical state -->
<% if @item[:episteme] %>
<% if @item.epistemic? %>
<div id="episteme">
<p><span class="align_left">
Last modified:
@ -50,12 +56,6 @@
</div>
<% end %>
<% if @item[:mindkiller] %>
<div id="mindkiller">
<p>Warning: this page contains mind-killing content. Proceed with caution. The author does not endorse any of the views expressed here, even when they may look convincing. If you feel offended, consider that the author might be trolling you and whether you want to encourage them even further.</p>
</div>
<% end %>
<!-- actual content (not indented to protect markdown) -->
<div id="content">

View file

@ -27,3 +27,14 @@ end
def episteme_cat status
"[#{episteme status}][Epistemic State]{:.episteme}"
end
class Nanoc3::Item
def epistemic?
!!self[:episteme]
end
def mindkiller?
topics = %w{history}
!!self[:mindkiller] || !!path.match(%r{^/(#{topics.join("|")})/})
end
end