Skip to content

Commit 4a0637c

Browse files
committed
Move string to Markdown for translation purposes.
1 parent 5f5c734 commit 4a0637c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs/en/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,16 @@ BeeWare is supported by users like you! Every little bit helps: [click here to c
122122

123123
### Upcoming events
124124

125+
{% if upcoming_events(files) == None %}
126+
127+
Nothing at the moment...
128+
129+
{% else %}
130+
125131
{{ upcoming_events(files) }}
126132

133+
{% endif %}
134+
127135
### Documentation
128136

129137
<div class="index-docs" markdown="1">

docs/macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def upcoming_events(files):
289289

290290
if events:
291291
return "\n".join(item[1] for item in sorted(events)[:5])
292-
return "Nothing at the moment..."
292+
return None
293293

294294
@env.macro
295295
def latest_news(files):

0 commit comments

Comments
 (0)