From 2790bad5c9e88dc893b8d883e81c5a2f2b975620 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Wed, 25 Mar 2026 11:36:58 +0700 Subject: [PATCH] Add favicon --- config/placeholder.py | 4 ++++ modules/sample/sbmb.py | 3 ++- templates/SBModernBiz/html/index.html | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 config/placeholder.py diff --git a/config/placeholder.py b/config/placeholder.py new file mode 100644 index 0000000..b5017e2 --- /dev/null +++ b/config/placeholder.py @@ -0,0 +1,4 @@ +image = { + "favicon" : "https://ditaajipratama.net/img/no-profile-donut.png", + "profile" : "https://ditaajipratama.net/img/no-profile-donut.png" +} diff --git a/modules/sample/sbmb.py b/modules/sample/sbmb.py index b7cb829..4e098ea 100644 --- a/modules/sample/sbmb.py +++ b/modules/sample/sbmb.py @@ -1,5 +1,5 @@ from mako.template import Template -from config import globalvar +from config import globalvar, placeholder class main: @@ -16,6 +16,7 @@ class main: greeting = "A prime dashboard based on bootstrap 5" return Template(params["mako"]["website"]['index']).render( + favicon = placeholder.image["favicon"], title = title, navbar = Template(params["mako"]["website"]['navbar']).render( title = title, diff --git a/templates/SBModernBiz/html/index.html b/templates/SBModernBiz/html/index.html index b8a5bc3..5dc7a1e 100644 --- a/templates/SBModernBiz/html/index.html +++ b/templates/SBModernBiz/html/index.html @@ -6,6 +6,7 @@ ${title} +