From 1eb9a09242486cee00d8ef9ef2e17e335da9c6dc Mon Sep 17 00:00:00 2001 From: Rebecca Cremona Date: Mon, 17 Jun 2024 13:13:42 -0400 Subject: [PATCH] Support tags with spaces, like "AI Research" --- app.py | 2 +- templates/generator/download.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 759b8c3..dccfed5 100644 --- a/app.py +++ b/app.py @@ -140,7 +140,7 @@ def download(): else: head_matter['no-excerpt'] = True if request.form['tags']: - head_matter['tags'] = request.form['tags'].split(' ') + head_matter['tags'] = request.form['tags'].split(',') head_matter = dump(head_matter, sort_keys=False) # assemble the head matter and the markdown diff --git a/templates/generator/download.html b/templates/generator/download.html index 6655db3..58e694e 100644 --- a/templates/generator/download.html +++ b/templates/generator/download.html @@ -8,7 +8,7 @@ - +