Skip to content

Commit

Permalink
Wiki url is added as a link to the heather image
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Aug 2, 2021
1 parent 430f46f commit 4f62eae
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion icm/commands/cmd_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,20 @@ def _create_header(package):
# -- Get the header image
if package.get("header"):
file = package["header"]
data += f"![]({file})\n"

# -- If there is a wiki page defined, the heather images is linked
# -- to the wiki
if package.get("wiki"):

# -- Get the wiki URL
url = package["wiki"]

# --- Add the image + link
data += f"[![]({file})]({url})\n"

# -- No wiki: Just place the heather image
else:
data += f"![]({file})\n"

return data

Expand Down

0 comments on commit 4f62eae

Please sign in to comment.