Adding favicon to root and as svg inline

This commit is contained in:
Andrew Gioia 2020-07-17 09:19:12 -04:00
parent 2c1c257804
commit 4dbf8a0522
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
{{ block "title" . }} {{ .Site.Title }} {{ end }}
</title>
<link rel="stylesheet" href="/css/style.css">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<link id="favicon" rel="icon" type="image/x-icon" href="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='32' fill-opacity='0'/%3E%3Cg stroke='%23aaa' stroke-opacity='.25' stroke-width='1px'%3E%3Cline x1='12' x2='12' y2='32'/%3E%3Cline x1='24' x2='24' y2='32'/%3E%3Cline x2='32' y1='12' y2='12'/%3E%3Cline x2='32' y1='24' y2='24'/%3E%3C/g%3E%3Cpath d='m4 0h24c2.209 0 4 1.791 4 4v24c0 2.209-1.791 4-4 4h-24c-2.209 0-4-1.791-4-4v-24c0-2.209 1.791-4 4-4z' fill='%2321252B'/%3E%3Cpath d='m13.652 25h3.291l-5.147-14.796h-3.64l-5.137 14.796h3.178l1.128-3.589h5.199zm-3.763-11.966h0.071l1.897 6.06h-3.865z' fill='%2329BAFF'/%3E%3Cpath d='m22.809 29.143c3.291 0 5.485-1.682 5.485-4.297v-10.838h-2.953v1.917h-0.051c-0.574-1.261-1.815-2.092-3.394-2.092-2.789 0-4.512 2.144-4.512 5.63 0 3.435 1.774 5.506 4.461 5.506 1.589 0 2.881-0.8 3.394-1.969h0.061v1.928c0 1.272-0.861 2.123-2.409 2.123-1.139 0-2-0.513-2.236-1.272h-2.932c0.235 1.959 2.194 3.364 5.086 3.364zm0.051-6.481c-1.487 0-2.41-1.169-2.41-3.179 0-1.999 0.933-3.25 2.41-3.25 1.497 0 2.451 1.271 2.451 3.25 0 1.99-0.954 3.179-2.451 3.179z' fill='%2329BAFF'/%3E%3C/svg%3E">
</head>
<body>

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB