-
Notifications
You must be signed in to change notification settings - Fork 1
/
codesnippets.html
executable file
·74 lines (63 loc) · 2.23 KB
/
codesnippets.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
layout: default
---
{% assign codesnippets = site.codesnippets | sort: 'title' %}
{% assign tabtags = "Console|Programmiertechnik|Inspiration|Helper|Beispielcode" | split: "|" %}
<section class="section">
<div class="container">
<h1 class="title is-1">Codesnippets</h1>
<h2 class="subtitle">Anbei ein paar Code Snippets</h2>
</div>
</section>
<section class="section">
<div class="container">
<div class="columns">
<div class="column">
<nav class="panel">
<p class="panel-heading">
Kategorien
</p>
<a class="panel-block" data-tab="overview-item">
<span class="panel-icon">
<i class="fa fa-book"></i>
</span> Alle
</a>
{% for navEle in tabtags %}
<a class="panel-block" data-tab="{{navEle}}">
<span class="panel-icon">
<i class="fa fa-book"></i>
</span> {{navEle}}
</a>
{% endfor %}
</nav>
</div>
<div class="assignments is-tab-content column is-two-thirds is-overview-item">
<div class="content assignment-overview">
{% for codesnippet in codesnippets %}
<div class="assignment-overview__item">
<a href="{{codesnippet.url | relative_url}}">
<h2 class="title is-2" id="{{ codesnippet.id }}">{{ codesnippet.titel }}</h2>
<p style="color: #999999;">{{codesnippet.tags | join:', '}}</p>
</a>
</div>
{% endfor %}
</div>
</div>
{% for navEle in tabtags %}
<div class="assignments is-tab-content column is-two-thirds is-{{navEle}}">
<div class="content assignment-overview">
{% for codesnippet in codesnippets %}
{% if codesnippet.tags contains navEle %}
<div class="assignment-overview__item">
<a href="{{codesnippet.url | relative_url}}">
<h2 class="title is-2" id="{{ codesnippet.id }}">{{ codesnippet.titel }}</h2>
<p style="color: #999999;">{{codesnippet.tags | join:', '}}</p>
</a>
</div>
{% endif %} {% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</section>