Skip to content

Commit 2fa9bf6

Browse files
committed
Seite 'Frühere Projekte' hinzugefügt
1 parent 61504f1 commit 2fa9bf6

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

_includes/projekte.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<section id="projects">
2-
<br>
3-
<h2 class="section-heading">Projekte im Dachverband</h2>
2+
{% if include.heading %}
3+
<h2 class="section-heading">{{ include.heading }}</h2>
44
<hr class="primary">
5+
{% endif %}
56
<div class="container-fluid">
67
<div class="row">
78
{% for projekt in site.data.projekte %}
8-
{% if projekt.archived == false %}
9+
{% if projekt.archived == include.archived %}
910
<div class="col-lg-4 col-12 p-3">
1011
<div class="card h-100 shadow" >
1112
<img src="{{projekt.image}}" class="card-img" alt="{{projekt.title}}">
1213
<div class="card-body d-flex flex-column">
1314
<h3>{{projekt.title}}</h3>
1415
<p>{{projekt.text}}</p>
16+
{% if projekt.link != '' %}
1517
<a href="{{ projekt.link }}" class="btn btn-primary btn-xl align-self-center mt-auto" title="{{projekt.title}}">Mehr erfahren</a>
18+
{% endif %}
1619
</div>
1720
</div>
1821
</div>

_layouts/front.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
imagealt="Unsere Mission" overlayheadline="Studierende durch Technik verbinden." text="" buttonlink="aboutus.html"
1212
buttontext="Erfahre mehr!" %}
1313

14-
{% include projekte.html %}
14+
<br>
15+
16+
{% include projekte.html archived=false heading="Projekte im Dachverband" %}
17+
18+
<div class="row">
19+
<div style="margin-left: auto; margin-right: auto;"><a href="past_projects.html" class="btn btn-default" title="Vergangene Projekte">Vergangene Projekte</a></div>
20+
</div>
1521

1622
<!-- {% include card.html title="Unterstützer und Partner" image375="img/cards/placeholder_quote_375.svg" image690="img/cards/placeholder_quote_690.svg" image1110="img/cards/placeholder_quote_1110.svg"
1723
imagealt="Gruppenfoto" overlayheadline="\"...Zeigen was neben dem Studium geht.\"" text="" buttonlink="contact.html"

past_projects.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: page
3+
title: Frühere Projekte
4+
---
5+
6+
# Frühere Projekte
7+
8+
***
9+
10+
{% include projekte.html archived=true %}

0 commit comments

Comments
 (0)