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 @@