Add favicon
This commit is contained in:
parent
91580a54c9
commit
2790bad5c9
4
config/placeholder.py
Normal file
4
config/placeholder.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
image = {
|
||||||
|
"favicon" : "https://ditaajipratama.net/img/no-profile-donut.png",
|
||||||
|
"profile" : "https://ditaajipratama.net/img/no-profile-donut.png"
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
from mako.template import Template
|
from mako.template import Template
|
||||||
from config import globalvar
|
from config import globalvar, placeholder
|
||||||
|
|
||||||
class main:
|
class main:
|
||||||
|
|
||||||
@ -16,6 +16,7 @@ class main:
|
|||||||
greeting = "A prime dashboard based on bootstrap 5"
|
greeting = "A prime dashboard based on bootstrap 5"
|
||||||
|
|
||||||
return Template(params["mako"]["website"]['index']).render(
|
return Template(params["mako"]["website"]['index']).render(
|
||||||
|
favicon = placeholder.image["favicon"],
|
||||||
title = title,
|
title = title,
|
||||||
navbar = Template(params["mako"]["website"]['navbar']).render(
|
navbar = Template(params["mako"]["website"]['navbar']).render(
|
||||||
title = title,
|
title = title,
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<meta name="author" content="" />
|
<meta name="author" content="" />
|
||||||
<title>${title}</title>
|
<title>${title}</title>
|
||||||
|
<link rel="icon" href="${favicon}" type="image/x-icon">
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
|
||||||
<!-- Core theme CSS (includes Bootstrap)-->
|
<!-- Core theme CSS (includes Bootstrap)-->
|
||||||
<link href="/templates/SBModernBiz/css/styles.css" rel="stylesheet" />
|
<link href="/templates/SBModernBiz/css/styles.css" rel="stylesheet" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user