summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-26 14:49:32 +0200
committerDavid Robillard <d@drobilla.net>2020-04-26 14:49:32 +0200
commit878bdba53979f11fa582088e47997df129e56d16 (patch)
treee145066c6b8bf8e01786d153cfd26423eedcef8e
parentc7d3468459863bab4b6a155f203746102df78c1f (diff)
downloadautowaf-878bdba53979f11fa582088e47997df129e56d16.tar.gz
autowaf-878bdba53979f11fa582088e47997df129e56d16.tar.bz2
autowaf-878bdba53979f11fa582088e47997df129e56d16.zip
Don't write tags header to posts if it is empty
-rwxr-xr-xextras/autoship.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/autoship.py b/extras/autoship.py
index e6e934b..715e1cf 100755
--- a/extras/autoship.py
+++ b/extras/autoship.py
@@ -422,8 +422,9 @@ def write_posts(entries, out_dir, meta={}):
info = get_project_info()
description = get_blurb("README.md")
title = info["title"]
- meta["Tags"] = ", ".join(info["post_tags"])
meta["Author"] = meta.get("Author", os.getenv("USER"))
+ if info["post_tags"]:
+ meta["Tags"] = ", ".join(info["post_tags"])
try:
os.mkdir(out_dir)