add emoji favicon to homepage
alex wennerberg alex@alexwennerberg.com
Thu, 05 Nov 2020 22:41:43 -0800
3 files changed,
3 insertions(+),
2 deletions(-)
M
example-config.toml
→
example-config.toml
@@ -1,5 +1,5 @@
# Used in HTML templates and titles -SiteTitle="๐flounder" +SiteTitle="flounder" # Include port if running locally Host="localhost:8165"
M
templates/header.html
→
templates/header.html
@@ -6,6 +6,7 @@ <meta charset="utf-8" />
<title>{{.PageTitle }}</title> <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" type="text/css" href="/style.css" /> + <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>๐</text></svg>"> </head> <body> <main>
M
templates/index.html
→
templates/index.html
@@ -1,6 +1,6 @@
{{$domain := .Host}} {{template "header" .}} -<h1>{{.PageTitle}}!</h1> +<h1>๐{{.PageTitle}}!</h1> {{template "nav.html" .}} <br> Welcome to flounder! For more information and site updates, check out the <a href="//admin.{{$domain}}">admin page</a>