chaospott-site/blog.html

63 lines
1.9 KiB
HTML
Raw Normal View History

2014-10-26 13:11:10 +00:00
---
layout: default
---
2015-04-22 21:51:01 +00:00
<script src="js/elevator.js"></script>
2014-10-26 13:11:10 +00:00
{% 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">
<h2 class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h2>
<p class="post-meta">
{{ post.date | date: "%b %-d, %Y" }}{% if post.author %} • {{ post.author }}{% endif %}{% if post.meta %} • {{ post.meta }}{% endif %}
</p>
2014-11-04 00:58:48 +00:00
</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>
2014-11-04 00:58:48 +00:00
{% endif %}
</article>
2014-10-26 13:11:10 +00:00
</div>
</div>
</div>
2015-04-22 22:03:16 +00:00
<div id="elevator-button{{ forloop.index0 }}" class="elevator-button"><i class="fa fa-arrow-up"></i></div>
2015-04-22 22:04:20 +00:00
2015-04-22 22:03:16 +00:00
<script>
2015-04-22 23:20:01 +00:00
// unfortunately elevator does not support a list of elements yet, hotfix for now, should be removed asap
2015-04-22 22:03:16 +00:00
// Elevator script: https://github.com/tholman/elevator.js
2015-04-22 22:04:20 +00:00
var elevator{{ forloop.index0 }} = new Elevator({
2015-04-22 22:03:16 +00:00
element: document.querySelector('#elevator-button{{ forloop.index0 }}'),
mainAudio: '/media/elevator-music.mp3', // Music from http://www.bensound.com/
2015-04-22 22:06:10 +00:00
endAudio: '/media/ding.mp3', // Music from http://www.bensound.com/
2015-04-22 22:08:56 +00:00
duration: {{ forloop.index | times: 500 }}
2015-04-22 22:03:16 +00:00
});
</script>
2015-04-22 21:40:34 +00:00
{% endfor %}
2015-04-22 22:03:16 +00:00
2016-01-13 21:17:25 +00:00
<div class="page-navigation">
2016-01-13 21:19:45 +00:00
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}">Zur&uuml;ck</a>
2016-01-13 21:17:25 +00:00
{% endif %}
2016-01-13 21:19:45 +00:00
| Seite {{ paginator.page }} von {{ paginator.total pages }} |
2016-01-13 21:17:25 +00:00
{% if next_page %}
2016-01-13 21:19:45 +00:00
<a href="{{ paginator.next_page_path }}">Vor</a>
2016-01-13 21:17:25 +00:00
{% endif %}
</div>
2015-04-22 22:03:16 +00:00