1
0
Fork 0
mirror of https://github.com/netz39/www.netz39.de.git synced 2025-08-11 22:40:47 +02:00

Update stammtisch generator

This commit is contained in:
teuserer 2024-03-16 11:03:13 +01:00
commit acf38b9f6c
17 changed files with 53 additions and 87 deletions

View file

@ -6,17 +6,15 @@ import datetime
def generate_markdown_file(year, month, day):
markdown_content = f"""---
layout: event
title: "Netz39-Stammtisch"
event_date: {year}-{month:02d}-{day:02d}
title: "Netz39-Stammtisch"
event:
start: {year}-{month:02d}-{day:02d} 19:30:00
---
**Wann: 19:30 Uhr**\\
**Wo: Netz39 e.V.**
Es ist wieder Vereins-Stammtisch! Wie immer in allen ganzzahlig durch drei teilbaren Kalenderwochen. Das Protokoll dieses Stammtisches findet ihr [hier](https://wiki.netz39.de/stammtisch:{year}:{year}-{month:02d}-{day:02d}).
"""
folder_path = f"../_events/{year}/"
dirname = os.path.dirname(__file__)
folder_path = os.path.join(dirname, f"../_events/{year}/")
filename = f"{year}-{month:02d}-{day:02d}_n39_stammtisch.md"
file_path = os.path.join(folder_path, filename)