diff options
author | David Robillard <d@drobilla.net> | 2020-04-26 14:49:32 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-26 14:49:32 +0200 |
commit | 878bdba53979f11fa582088e47997df129e56d16 (patch) | |
tree | e145066c6b8bf8e01786d153cfd26423eedcef8e /extras | |
parent | c7d3468459863bab4b6a155f203746102df78c1f (diff) | |
download | autowaf-878bdba53979f11fa582088e47997df129e56d16.tar.gz autowaf-878bdba53979f11fa582088e47997df129e56d16.tar.bz2 autowaf-878bdba53979f11fa582088e47997df129e56d16.zip |
Don't write tags header to posts if it is empty
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/autoship.py | 3 |
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) |