Skip to content

Commit

Permalink
add custom head
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Dec 1, 2023
1 parent 5ed8f4c commit 4e66d7d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions boofilsic/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
NEODB_SITE_ICON=(str, "/s/img/logo.svg"),
NEODB_USER_ICON=(str, "/s/img/avatar.svg"),
NEODB_SITE_INTRO=(str, ""),
NEODB_SITE_HEAD=(str, ""),
# Links in site footer
NEODB_SITE_LINKS=(dict, {}),
# Invite only mode
Expand Down Expand Up @@ -163,6 +164,7 @@
"site_icon": env("NEODB_SITE_ICON"),
"user_icon": env("NEODB_USER_ICON"),
"site_intro": env("NEODB_SITE_INTRO"),
"site_head": env("NEODB_SITE_HEAD"),
"site_links": [{"title": k, "url": v} for k, v in env("NEODB_SITE_LINKS").items()],
}

Expand Down
1 change: 1 addition & 0 deletions common/templates/common_libs.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
<link rel="apple-touch-icon" href="{{ site_logo }}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="{{ site_name }}">
{{ site_head|safe }}
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ x-shared:
NEODB_SITE_NAME:
NEODB_SITE_DOMAIN:
NEODB_SITE_INTRO:
NEODB_SITE_HEAD:
NEODB_SITE_LOGO:
NEODB_SITE_ICON:
NEODB_USER_ICON:
Expand Down
2 changes: 1 addition & 1 deletion developer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def form_valid(self, form):
class ApplicationUpdate(BaseApplicationUpdate):
def get_form_class(self):
return modelform_factory(
get_application_model(),
get_application_model(), # type:ignore
fields=(
"name",
"url",
Expand Down

0 comments on commit 4e66d7d

Please sign in to comment.