chaospott-site/blog.html

44 lines
1.3 KiB
HTML
Raw Normal View History

2014-10-26 13:11:10 +00:00
---
layout: default
---
{% for post in site.posts %}
{% if forloop.first == false %}
<hr>
{% endif %}
2014-11-04 00:58:48 +00:00
<div class="container">
2014-10-26 13:11:10 +00:00
<div class="row">
2014-11-04 00:58:48 +00:00
<div class="col-md-12 post">
<header class="post-header">
<h1 class="post-title">{{ post.title }}</h1>
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}{% if post.author %} • {{ post.author }}{% endif %}{% if post.meta %} • {{ post.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{post.content}}
{% assign wordcount = post.content | number_of_words %}
{% if wordcount > 200 %}
<p><a class="btn btn-default" href="{{ post.url | prepend: site.baseurl }}" role="button">&gt; Weiterlesen</a></p>
{% endif %}
</article>
2014-10-26 13:11:10 +00:00
</div>
</div>
</div>
2015-04-22 21:38:37 +00:00
{% endfor %}
2015-04-22 21:39:36 +00:00
<div class="elevator-button"><i class="fa fa-arrow-up"></i></div>
<script src="js/elevator.min.js"></script>
<script>
// Elevator script: https://github.com/tholman/elevator.js
window.onload = function() {
var elevator = new Elevator({
element: document.querySelector('.elevator-button'),
mainAudio: '/media/elevator-music.mp3', // Music from http://www.bensound.com/
endAudio: '/media/ding.mp3', // Music from http://www.bensound.com/
duration: 20000 // milliseconds
});
}
2015-04-22 21:23:00 +00:00
</script>