mirror of
https://github.com/fmap/muflax65ngodyewp.onion
synced 2024-06-26 10:26:48 +02:00
mindkiller warning
This commit is contained in:
parent
ded40e2a4e
commit
1185398514
|
@ -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;
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue