Skip to content

Commit

Permalink
properly format menu content with configuration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed May 28, 2024
1 parent f52fdbd commit 15ff038
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hyperglass/models/config/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ def validate_web(cls, web: Web, info: ValidationInfo) -> Web:
primary_asn=info.data.get("primary_asn", "65000")
)
link.url = HttpUrl(url)

for menu in web.menus:
menu.content = menu.content.format(
site_title=info.data.get("site_title", "hyperglass"),
org_name=info.data.get("org_name", "hyperglass"),
version=__version__,
)
return web

def common_plugins(self) -> t.Tuple[Path, ...]:
Expand Down

0 comments on commit 15ff038

Please sign in to comment.