Skip to content

Commit

Permalink
List blog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
lordiii committed Mar 20, 2024
1 parent 1fc4637 commit 550c28a
Show file tree
Hide file tree
Showing 33 changed files with 221 additions and 86 deletions.
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ language = "Sprache"
not_found_content = "Dies sind nicht die Inhalte die ihr sucht!"
not_found = "Inhalt nicht gefunden"
locale_name = "de_DE"
publish_time = "veröffentlicht am %date% um %time% Uhr von %author%"

[extra]
ifs_base_path = "https://www.mainframe.io/media/ifs-images"
Expand All @@ -68,3 +69,4 @@ language = "Language"
not_found_content = "This is not the content you are looking for!"
not_found = "Content not found"
locale_name = "en_US"
publish_time = "published on %date% at %time% by %author%"
2 changes: 2 additions & 0 deletions content/blog/_index.en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
+++
title = "Blog"
sort_by = "date"
template = "blog.html"
paginate_by = 10
+++
2 changes: 2 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
+++
title = "Blog"
sort_by = "date"
template = "blog.html"
paginate_by = 10
+++
4 changes: 2 additions & 2 deletions content/blog/events/2011-09-20-alpha2.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Alpha 2"
date = "2011-09-20T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2011-09-20T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Our third Hackspace event before the Space existed."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2011-09-20-alpha2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Alpha 2"
date = "2011-09-20T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2011-09-20T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Unser zweites Hackspace Event bevor es den Space gab."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2011-10-13-alpha3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Alpha 3"
date = "2011-10-13T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2011-10-13T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Our third Hackspace event before the Space existed."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2011-10-13-alpha3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Alpha 3"
date = "2011-10-13T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2011-10-13T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Unser drittes Hackspace Event bevor es den Space gab."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2013-12-31-30C3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "30C3"
date = "2013-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2013-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Visit to the 30th Chaos Communication Congress by Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2013-12-31-30C3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "30C3"
date = "2013-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2013-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des 30. Chaos Communication Congress durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2014-12-31-31C3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "31C3"
date = "2014-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2014-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Visit to the 31st Chaos Communication Congress by Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2014-12-31-31C3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "31C3"
date = "2014-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2014-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des 31. Chaos Communication Congress durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2015-08-21-cccamp2015.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Chaos Communication Camp 2015"
date = "2015-08-21T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2015-08-21T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des Chaos Communication Camp 2015 durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2015-08-21-cccamp2015.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Chaos Communication Camp 2015"
date = "2015-08-21T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2015-08-21T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des Chaos Communication Camp 2015 durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2015-12-31-32C3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "32C3"
date = "2015-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2015-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Visit to the 32nd Chaos Communication Congress by Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2015-12-31-32C3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "32C3"
date = "2015-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2015-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des 32. Chaos Communication Congress durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-02-08-co-op1.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op1: Waiting list projects"
date = "2016-02-08T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-02-08T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Our first hackathon in Space 3.0 on the topic of \"Waiting list projects\""

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-02-08-co-op1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op1: Wartelisten-Projekte"
date = "2016-02-08T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-02-08T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Unser erster Hackathon im Space 3.0 zum Thema \"Wartelisten-Projekte\""

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-05-18-co-op2.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op2: Spacebus with MQTT"
date = "2016-05-18T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-05-18T23:42:00"
updated = "2023-03-19T23:42:00"
description = "The next hackathon is all about our Spacebus, MQTT and the Space API"

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-05-18-co-op2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op2: Spacebus mit MQTT"
date = "2016-05-18T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-05-18T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Der nächste Hackathon dreht sich ganz um unseren Spacebus, MQTT und die Space-API"

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-12-08-co-op3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op3: Your project for the congress"
date = "2016-12-08T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-12-08T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Building projects - for the 33C3 visit"

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-12-08-co-op3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "co-op3: Dein Projekt für den Kongress"
date = "2016-12-08T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-12-08T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Projekte bauen - für den 33C3 Besuch"

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-12-31-33C3.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "33C3"
date = "2016-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Visit to the 33rd Chaos Communication Congress by Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2016-12-31-33C3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "33C3"
date = "2016-12-31T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2016-12-31T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Besuch des 33. Chaos Communication Congress durch den Mainframe."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2017-02-02-abschluss-fabule.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Workshop-Wochenende zum Abschluss von Fabulé"
date = "2017-02-02T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2017-02-02T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Am 4. und 5. Februar beenden wir das von der Metropolregion Nordwest geförderte Projekt Fabulé mit einem großen Workshop-Wochenende."

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2019-09-13-cccamp2019.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Chaos Communication Camp 2019"
date = "2019-09-13T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2019-09-13T23:42:00"
updated = "2023-03-19T23:42:00"
description = "We are going camping (again)"

[taxonomies]
Expand Down
4 changes: 2 additions & 2 deletions content/blog/events/2019-09-13-cccamp2019.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Chaos Communication Camp 2019"
date = "2019-09-13T00:00:00"
updated = "2023-03-19T00:00:00"
date = "2019-09-13T23:42:00"
updated = "2023-03-19T23:42:00"
description = "Wir gehen wieder campen"

[taxonomies]
Expand Down
6 changes: 3 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
</head>

<body class="vh-100 m-0 p-0">
<div class="container h-100 d-flex flex-column justify-content-between">
<div class="container d-flex flex-column justify-content-between">

{% include "navbar.html" %}

{% block main %}
<main id="content" class="h-100 row pt-4">
<main id="content" class="row pt-4">
<div class="col-md-9 main-content">
{% block content %}
{% if page.content %}
Expand All @@ -73,7 +73,7 @@
</main>
{% endblock main %}

<footer id="footer" class="mt-auto row">
<footer id="footer" class="border-top pt-2 mt-5 row">
<div class="col">
<p style="text-align: center;">
© 2024 <a href="{{config.base_url}}">Kreativität trifft Technik</a> | License: <a
Expand Down
21 changes: 21 additions & 0 deletions templates/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}

{% block content %}
{% if paginator.current_index > 1 %}
<a class="btn btn-outline-primary w-100" href="{{paginator.previous}}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-arrow-bar-up" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 10a.5.5 0 0 0 .5-.5V3.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 3.707V9.5a.5.5 0 0 0 .5.5m-7 2.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5"/>
</svg>
</a>
{% endif %}
{% set items = paginator.pages %}
{{ macros::blog_list(pages=paginator.pages, count=items | length) }}
{% if paginator.current_index < paginator.number_pagers %}
<a class="btn btn-outline-primary fw-bolder w-100" href="{{paginator.next}}">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-arrow-bar-down" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 3.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5M8 6a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L7.5 12.293V6.5A.5.5 0 0 1 8 6"/>
</svg>
</a>
{% endif %}
{% endblock content %}
14 changes: 10 additions & 4 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,23 @@ <h4>
</div>

<div class="row">
<div class="col p-2">
<h4>
<div class="col">
<h4 class="mb-0">
News
</h4>
</div>
</div>

<div class="row">

{% if lang == config.default_language %}
{% set blog_section = get_section(path="blog/_index.md") %}
{% else %}
{% set blog_section = get_section(path="blog/_index." ~ lang ~ ".md") %}
{% endif %}
<div class="col">
{{ macros::blog_list(pages=blog_section.pages, count=5) }}
</div>
</div>
</div>


{% endblock content %}
Loading

0 comments on commit 550c28a

Please sign in to comment.