Skip to content

Commit

Permalink
Merge pull request harvard-lil#29 from rebeccacremona/comma-delimited…
Browse files Browse the repository at this point in the history
…-tags

Support tags with spaces, like "AI Research"
  • Loading branch information
rebeccacremona authored Jun 17, 2024
2 parents 24065c8 + 1eb9a09 commit d5b760a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/generator/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</label>
<input required name="title" id="title" type="text" class="u-full-width" value="{{request.form['title']}}">

<label for="tags">Tags/Categories (separated by spaces)</label>
<label for="tags">Tags/Categories (separated by commas)</label>
<input name="tags" id="tags" type="text" class="u-full-width">

<div class="row">
Expand Down

0 comments on commit d5b760a

Please sign in to comment.