site/blog.html

55 lines
1.6 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