Skip to content

Commit

Permalink
Fix icon links requirement (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Mar 5, 2023
1 parent da06253 commit 3bf5e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pydata_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ def update_config(app):
]
# Add extra icon links entries if there were shortcuts present
# TODO: Deprecate this at some point in the future?
icon_links = theme_options.get("icon_links", [])
for url, icon, name in shortcuts:
if theme_options.get(url):
# This defaults to an empty list so we can always insert
theme_options["icon_links"].insert(
icon_links.insert(
0,
{
"url": theme_options.get(url),
Expand All @@ -208,6 +209,7 @@ def update_config(app):
"type": "fontawesome",
},
)
theme_options["icon_links"] = icon_links

# Prepare the logo config dictionary
theme_logo = theme_options.get("logo")
Expand Down

0 comments on commit 3bf5e06

Please sign in to comment.