-
Notifications
You must be signed in to change notification settings - Fork 1
/
assignments.html
executable file
·72 lines (62 loc) · 2.21 KB
/
assignments.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
---
layout: default
---
{% assign assignments = site.assignments | sort: 'title' %}
{% assign tabtags = "Basics|Inspirationen|Punkt|Linie|Farbe|Fläche|Form|Kontext|Hackday|Freiarbeit" | split: "|" %}
<section class="section">
<div class="container">
<h1 class="title is-1">Assignments</h1>
<h2 class="subtitle">Hier die Übersicht über alle Aufgaben.</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 assignment in assignments %}
<div class="assignment-overview__item">
<a href="{{assignment.url | relative_url}}">
<h2 class="title is-2" id="{{ assignment.id }}">{{ assignment.titel }}</h2>
<p style="color: #999999;">{{assignment.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 assignment in assignments %} {% if assignment.tags contains navEle %}
<div class="assignment-overview__item">
<a href="{{assignment.url | relative_url}}">
<h2 class="title is-2" id="{{ assignment.id }}">{{ assignment.titel }}</h2>
<p style="color: #999999;">{{assignment.tags | join:' '}}</p>
</a>
</div>
{% endif %} {% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</section>