Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,26 @@

CONTENT_DIR = Path(__file__).parent / "content" / "blog"

# Canonical field order matches models/blog-post.ini with `body` moved to
# the end. Only fields declared in the model are emitted here — keeping the
# scaffold aligned with the rest of content/blog/.
TEMPLATE_DE = """\
title: {title}
---
pub_date: {pub_date}
---
author: {author}
---
tags:
teaser_image: preview.jpg
---
teaser_text:

Kurze Zusammenfassung des Beitrags (1-2 Sätze). Wird in der Blog-Übersicht angezeigt.

---
teaser_image: preview.jpg
---
cta: Weiterlesen
---
show_on_homepage: False
---
highlighted: False
---
_discoverable: yes
---
body:

#### Überschrift
Expand All @@ -47,25 +43,18 @@
---
pub_date: {pub_date}
---
author: {author}
---
tags:
teaser_image: preview.jpg
---
teaser_text:

Short summary of the post (1-2 sentences). Shown in the blog overview.

---
teaser_image: preview.jpg
---
cta: Read more
---
show_on_homepage: False
---
highlighted: False
---
_discoverable: yes
---
body:

#### Heading
Expand Down Expand Up @@ -110,15 +99,12 @@ def add() -> None:
print(f"Error: '{pub_date}' is not a valid date (expected YYYY-MM-DD).")
sys.exit(1)

author = prompt("Author name", default="PySV")

slug = f"{year}-{slugify(title)}"
post_dir = CONTENT_DIR / slug

print(f"\n── Summary ──")
print(f" Title: {title}")
print(f" Date: {pub_date}")
print(f" Author: {author}")
print(f" Directory: content/blog/{slug}/")
print(f" Files: contents.lr (DE), contents+en.lr (EN)\n")

Expand All @@ -129,7 +115,7 @@ def add() -> None:

post_dir.mkdir(parents=True, exist_ok=False)

fields = {"title": title, "pub_date": pub_date, "author": author}
fields = {"title": title, "pub_date": pub_date}
(post_dir / "contents.lr").write_text(TEMPLATE_DE.format(**fields))
(post_dir / "contents+en.lr").write_text(TEMPLATE_EN.format(**fields))

Expand Down
4 changes: 0 additions & 4 deletions content/blog/2017-jugendhalle/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: Jugend hackt Halle – Bericht vom November 2017
---
pub_date: 2017-11-01
---
author: Python Software Verband
---
tags: python, JugendHackt, grants, 2017
---
teaser_text:

Während Wettbewerbe wie »Jugend musiziert« und »Jugend forscht« seit Jahrzehnten etabliert sind, finden junge Talente aus dem Bereich der Softwareentwicklung kaum einen Platz in staatlich geförderten Initiativen, obgleich das Thema in digitalisierten Gesellschaften zunehmend an Bedeutung gewinnt.
Expand Down
4 changes: 0 additions & 4 deletions content/blog/2017-pythoncamp/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: PythonCamp 2017
---
pub_date: 2017-05-01
---
author: Python Software Verband
---
tags: python, pythonCamp, grants, 2017
---
teaser_text:

Im April 2017 fand zum achten Mal das Kölner [PythonCamp](https://barcamps.eu/pycamp201704/) statt. Gleichfalls im achten Jahr unterstützte die [GFU Cyrus AG](https://www.gfu.net) die Veranstaltung indem sie Schulungsräume zur Nutzung freigab, so dass wieder ein Umfang von 75 Teilnehmern möglich wurde. Wie auch schon in den vergangenen Jahren war das PythonCamp bereits nach wenigen Tagen ausgebucht.
Expand Down
4 changes: 0 additions & 4 deletions content/blog/2018-geopython/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: GeoPython 2018
---
pub_date: 2018-06-01
---
author: Python Software Verband
---
tags: python, geopython, grants, 2018
---
teaser_text: zum dritten Mal in Folge die GeoPython-Konferenz, organisiert durch Prof. Martin Christen, am Institut Geomatik der Fachhochschule Nordwestschweiz in Muttenz/Basel stattgefunden
---
body:
Expand Down
6 changes: 1 addition & 5 deletions content/blog/2018-pyladies-hh/contents+en.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: PyLadies x MicroPython @ PyCon DE 2018
---
pub_date: 2018-11-01
---
author: Python Software Verband
---
tags: python, pyladies, grants, pycon
---
body:

####Im Rahmen unseres Förderprogramms unterstützen wir die PyLadies bei einem Workshop auf der PyConDE um Teilnehmer*innen mit Hardware auszustatten.
Expand Down Expand Up @@ -54,4 +50,4 @@ primarily to empower women tech community. We request non female
attendees to be aware of these situation and make their presence
discrete. Eg. by coming with a female plus one to ensure gender
balance, avoiding to be heard more than the rest of the attendees in
discussions and question sections.
discussions and question sections.
4 changes: 0 additions & 4 deletions content/blog/2018-pyladies-hh/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: PyLadies x MicroPython @ PyCon DE 2018
---
pub_date: 2018-11-01
---
author: Python Software Verband
---
tags: python, pyladies, grants, pycon
---
teaser_text:

Im Rahmen unseres Förderprogramms unterstützen wir die PyLadies bei einem Workshop auf der PyConDE um Teilnehmer*innen mit Hardware auszustatten.
Expand Down
6 changes: 0 additions & 6 deletions content/blog/2018-pythoncamp/contents.lr
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
model: _blog-post
---
title: PythonCamp 2018
---
pub_date: 2018-05-01
---
author: Python Software Verband
---
tags: python, pythonCamp, grants, 2017
---
teaser_text:

Am 7. und 8. April 2018 gabs zum neuntem Mail das Kölner PythonCamp in den Räumnen der GFU Cyrus AG.
Expand Down
12 changes: 3 additions & 9 deletions content/blog/2019-pycon-de-pydata-berlin/contents.lr
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
title: Entwurf: PyCon DE & PyData Berlin 2019
---
author: Python Software Verband
---
show_on_homepage: no
pub_date: 2019-10-11
---
teaser_image:
---
teaser_text:

Die PyCon DE & PyData Berlin 2019 war ein voller Erfolg: 1.111 Teilnehmende, ausverkauft zwei Monate im Voraus, mit 800 weiteren auf der Warteliste.
---
show_on_homepage: no
---
body:

## PyCon DE & PyData Berlin 2019
Expand Down Expand Up @@ -41,9 +41,3 @@ Die Konferenz wurde vom **Python Software Verband e.V.** in Zusammenarbeit mit *
---

*Dieser Beitrag ist ein Entwurf und wird noch ergänzt.*
---
tags: pycon-de, pydata, konferenz, berlin, 2019
---
_discoverable: yes
---
pub_date: 2019-10-11
6 changes: 0 additions & 6 deletions content/blog/2020-barcamp/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ title: Erstes Python BarCamp in Leipzig am 19. Januar 2020
---
pub_date: 2020-01-19
---
author: Python Software Verband
---
avatar: custom_name.jpg
---
tags: python, barcamp, grants
---
teaser_text:

Am 19. Januar 2020 findet im Leipziger Co-Workings-Space Basislager das erste Python BarCamp statt.
Expand Down
6 changes: 0 additions & 6 deletions content/blog/2021-grants-techkids/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ title: Teckids e.V.: Hack'n'Sun 2021
---
pub_date: 2021-08-17
---
author: Teckids
---
avatar: avatar_1f6650.svg
---
tags: community, kids, 2021, grants
---
teaser_text:

Vom 7. bis zum 13. Juli 2021 fanden, erstmals unter dem Namen Hack'n'Sun, unsere diesjährigen Sommerfreizeiten, aufgeteilt in zwei Gruppen mit insgesamt 79 Teilnehmenden, statt. Diese konnten sich in einem Chat vor der Freizeit schon kennenlernen und erlernten in verschiedenen Workshops beim Basteln an ihren Projekten neue Fähigkeiten.
Expand Down
12 changes: 4 additions & 8 deletions content/blog/2021-mv/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ title: Mitgliederversammlung 2021
---
pub_date: 2021-10-17
---
author: Python Software Verband
---
avatar: custom_name.jpg
---
tags: verein, members
teaser_image: preview.png
---
teaser_text: Unsere diesjährige Mitgliederversammlung findet am 13. November 2021 statt. Die Versammlung findet online statt.
teaser_text:

Unsere diesjährige Mitgliederversammlung findet am 13. November 2021 statt. Die Versammlung findet online statt.
Neben dem Geschäftsbericht steht auch die Wahl zum Vorstand an.
---
teaser_image: preview.png
---
show_on_homepage: True
---
highlighted: True
Expand Down
6 changes: 1 addition & 5 deletions content/blog/2021-python-pizza-hh/contents+en.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: Python Pizza Hamburg 2021
---
pub_date: 2021-12-15
---
author: PyLadies Germany
---
tags: python, pyladies, PythonPizzaHH2021, PythonPizzaConf, conference
---
body:

#### Why Python is our favorite Pizza topping!
Expand Down Expand Up @@ -90,4 +86,4 @@ We would also like to thank our sponsors without which such events would just no

##### In case you missed it!
Website: https://lnkd.in/dB6EknT
Youtube stream: https://lnkd.in/dS7z_7Em
Youtube stream: https://lnkd.in/dS7z_7Em
4 changes: 0 additions & 4 deletions content/blog/2021-python-pizza-hh/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ title: Python Pizza Hamburg 2021
---
pub_date: 2021-12-15
---
author: PyLadies Deutschland
---
tags: python, pyladies, PythonPizzaHH2021, PythonPizzaConf, conference
---
teaser_text:

Diesen Monat haben wir die dritte Hamburger Python-Pizza-Veranstaltung abgehalten! Ursprünglich als hybride Veranstaltung geplant, bei der wir hofften, Verbindungen zwischen den Teilnehmern aus der Ferne und den Teilnehmern vor Ort zu schaffen, mussten wir aufgrund der steigenden COVID-19-Zahlen in Hamburg die Veranstaltung komplett aus der Ferne durchführen. Das war zwar ein Rückschlag, hat uns aber nicht davon abgehalten, ein großartiges Community-Event zu veranstalten.
Expand Down
12 changes: 3 additions & 9 deletions content/blog/2022-foerderungen/contents.lr
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
title: Entwurf: Geförderte Projekte 2022
---
author: Python Software Verband
---
show_on_homepage: no
pub_date: 2022-12-31
---
teaser_image:
---
teaser_text:

Überblick über die vom PySV im Jahr 2022 geförderten Projekte und Veranstaltungen.
---
show_on_homepage: no
---
body:

## Geförderte Projekte & Veranstaltungen 2022
Expand Down Expand Up @@ -51,9 +51,3 @@ Wir haben außerdem administrativ und/oder finanziell unterstützt:
---

*Dieser Beitrag ist ein Entwurf und wird noch ergänzt. Quelle: Jahresbericht 2022/2023.*
---
tags: förderprogramm, community, 2022
---
_discoverable: yes
---
pub_date: 2022-12-31
8 changes: 1 addition & 7 deletions content/blog/2022-grants-pydatasw/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ title: PyData Südwest: Big PyData BBQ 2022
---
pub_date: 2022-07-08
---
author: PyData Südwest
---
avatar: avatar_0c8492.svg
---
tags: community, meetup, 2022, grants
teaser_image: MAFINEX-SCREENS-BBQ Slides.jpg
---
teaser_text:

PyData Südwest ist das lokale Meetup für Python & Data im Raum Heidelberg, Mannheim und Karlsruhe.
Das alljährlich stattfindende "Big PyData BBQ" fand dieses Jahr in Kooperation mit PyLadies statt.
---
teaser_image: MAFINEX-SCREENS-BBQ Slides.jpg
---
show_on_homepage: True
---
body:
Expand Down
8 changes: 1 addition & 7 deletions content/blog/2022-grants-techkids/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ title: Teckids e.V.: Hack'n'Sun 2022
---
pub_date: 2022-08-17
---
author: Teckids
---
avatar: avatar_1f6650.svg
---
tags: community, kids, 2022, grants
---
teaser: Im Juni und Juli 2022 fanden wieder Hack'n'Sun Sommerfreizeiten des Techkids e.V. statt.
teaser_text: Im Juni und Juli 2022 fanden wieder Hack'n'Sun Sommerfreizeiten des Techkids e.V. statt.
---
body:

Expand Down
13 changes: 4 additions & 9 deletions content/blog/2022-mv/contents.lr
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ title: Mitgliederversammlung 2022
---
pub_date: 2022-10-19
---
author: Python Software Verband
---
avatar: custom_name.jpg
---
tags: verein, members
teaser_image: preview.png
---
teaser_text: Unsere diesjährige Mitgliederversammlung findet am 12. November 2021 online statt.
teaser_text:

Unsere diesjährige Mitgliederversammlung findet am 12. November 2021 online statt.
Der Vorstand wird den Geschäftsbericht 2021 vorstellen und einen Ausblick auf 2022 geben.
Vorstands-Wahlen stehen dieses Jahr keine an, da seit 2021 der Vorstand nun auf 2 Jahr gewählt wird.
Die Rechnungsprüfer müssen neu bzw. wieder gewählt werden.

---
teaser_image: preview.png
---
show_on_homepage: True
---
Expand Down
12 changes: 3 additions & 9 deletions content/blog/2022-pycon-de-pydata-berlin/contents.lr
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
title: Entwurf: PyCon DE & PyData Berlin 2022
---
author: Python Software Verband
---
show_on_homepage: no
pub_date: 2022-04-13
---
teaser_image:
---
teaser_text:

Nach zwei pandemiebedingten Absagen kehrte die PyCon DE & PyData Berlin 2022 zurück — die erste große Python-Konferenz nach der Pandemie überhaupt.
---
show_on_homepage: no
---
body:

## PyCon DE & PyData Berlin 2022
Expand Down Expand Up @@ -43,9 +43,3 @@ Der PySV war 2022 auch Träger der **EuroSciPy** in Basel und unterstützte weit
---

*Dieser Beitrag ist ein Entwurf und wird noch ergänzt.*
---
tags: pycon-de, pydata, konferenz, berlin, 2022
---
_discoverable: yes
---
pub_date: 2022-04-13
Loading
Loading