{{ t.summary }}
- {% if t.description is defined %}{{ t.description | replace("\n\n", "
") | replace("\n", "
") | replace("
", "
")}}
{% endif %} - {% if t.location is defined %}Ort: {{ t.location }}
{% endif %} -diff --git a/pelicanconf.py b/pelicanconf.py
index ad7ad12..9a1c45e 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -8,11 +8,8 @@ SITESUBTITLE = "Schriftsteller"
SITEURL = ""
TIMEZONE = 'Europe/Berlin'
-DATE_FORMATS = {
- 'de': '%a, %d. %b %y',
- 'en': '%Y-%m-%d(%a)',
-}
DEFAULT_LANG = 'de'
+#DEFAULT_DATE_FORMAT = '%d.%m.%Y' (doesn't seem to work)
THEME = "theme/"
@@ -84,6 +81,7 @@ SOCIAL = (
# Technical Settings #
###############################################################################
+PLUGINS = ["pelican.plugins.yaml_metadata"]
JINJA_ENVIRONMENT = { "extensions": ["jinja2.ext.debug", "jinja2.ext.do"] }
diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css
index 8192da8..4f7c919 100644
--- a/theme/static/css/custom.css
+++ b/theme/static/css/custom.css
@@ -227,9 +227,15 @@ a {
}
/* grid settings for event list */
-.event-grid {
- display: grid;
- grid-template-columns: minmax(auto, 250px) minmax(60%, auto);
+.events {}
+
+.event-info {
+ vertical-align: top;
+ max-width: 240px;
+}
+
+.event-detail {
+ vertical-align: top;
}
/* flex settings for layout of cards */
diff --git a/theme/templates/termine.noformat.html b/theme/templates/termine.noformat.html
index 3e6ea34..44fa86a 100644
--- a/theme/templates/termine.noformat.html
+++ b/theme/templates/termine.noformat.html
@@ -1,25 +1,34 @@
{% extends "page.html" %}
-
-{% block content_body %}
+{# note that this template's filename is ''termine.noformat.html'' and not ''termine.html''. This is because vscodium's auto-format breaks the ''replace'' filters in the summary line, which is bad. The double file extension enables an exlude rule for all "noformat.html" files from within vscodium's settings.json file. #}
{% if page.termine is defined %}
- {{ t.description | replace("\n\n", " ") | replace("\n", " ", " ")}} Ort: {{ t.location }}{{ t.summary }}
- {% if t.description is defined %}
") | replace("
| Wann & Wo | +Was & Wieso | +
|---|---|
| {{ t.startdate | strftime(date_format) }}{% if t.enddate is defined %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime is defined %} {{ t.starttime | strftime(time_format) }}{% endif %} {{ t.location }} |
+
+ {{ t.summary }} {% if "Moderation" in t.categories %}(Moderation){%endif%} + {% if t.description is defined %}{{ t.description | replace("\n\n", " ") | replace("\n", " ", " ")}} {% endif %} + {% if t.attach is defined %}{% endif %} + |
+