Adds favicons

This commit is contained in:
Andrew Gioia 2026-05-09 08:20:37 -04:00
parent 7749f132ca
commit d8053e1dbf
Signed by: andrew
GPG Key ID: FC09694A000800C8
5 changed files with 21 additions and 11 deletions

View File

@ -8,10 +8,10 @@
--primary: #00b0cd;
--secondary: #80c0cc;
--yellow: #ECAF21;
--yellow-body: #E29900;
--yellow: #ecaf21;
--yellow-txt: #e29900;
--red: #eb452b;
--red-body: #de342a;
--red-txt: #de342a;
--blue: #0070C0;
--black: #272727;
--green: #03A653;
@ -657,10 +657,10 @@ nav {
.problem
{
&:first-of-type mark {
--mark-color: var(--yellow-body);
--mark-color: var(--yellow-txt);
}
&:nth-of-type(2) mark {
--mark-color: var(--red-body);
--mark-color: var(--red-txt);
}
&:nth-of-type(3) mark {
--mark-color: var(--green);
@ -776,11 +776,11 @@ mark {
padding-bottom: 0.25rem;
&[color="yellow"] {
--mark-color: var(--yellow-body);
--mark-color: var(--yellow-txt);
}
&[color="red"] {
--mark-color: var(--red-body);
--mark-color: var(--red-txt);
}
&[color="green"] {
@ -802,10 +802,10 @@ span[color="blue"] {
color: var(--blue);
}
span[color="red"] {
color: var(--red-body);
color: var(--red-txt);
}
span[color="yellow"] {
color: var(--yellow-body);
color: var(--yellow-txt);
}
span[color="green"] {
color: var(--green);

View File

@ -19,6 +19,16 @@
{{ end }}
</title>
<meta name="description" content="{{ $description }}">
<link rel="icon" href="{{ "/favicon.svg" | relURL }}" type="image/svg+xml">
{{ if fileExists "static/favicon-32.png" }}
<link rel="icon" href="{{ "/favicon-32.png" | relURL }}" sizes="32x32" type="image/png">
{{ end }}
{{ if fileExists "static/apple-touch-icon.png" }}
<link rel="apple-touch-icon" href="{{ "/apple-touch-icon.png" | relURL }}">
{{ end }}
{{ if and (fileExists "static/android-chrome-192x192.png") (fileExists "static/android-chrome-512x512.png") }}
<link rel="manifest" href="{{ "/site.webmanifest" | relURL }}">
{{ end }}
{{ with resources.Get "css/site.css" | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
@ -91,4 +101,4 @@
{{ partial "footer.html" . }}
</footer>
</body>
</html>
</html>

BIN
static/favicon-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

1
static/favicon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M6.434,3.039l5.434,13.043l-10.869,0l5.434,-13.043Z" style="fill:#eb452b;"/><circle cx="17.566" cy="10.647" r="5.434" style="fill:#0070c0;"/><circle cx="18.142" cy="19.521" r="3.44" style="fill:#ecaf21;"/></svg>

After

Width:  |  Height:  |  Size: 659 B

View File

@ -1 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 148 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><rect x="6.693" y="167.817" width="86.4" height="72" style="fill:#fcb70d;"/><rect x="98.268" y="129.523" width="49.732" height="110.477" style="fill:#e62a1b;"/><rect x="98.268" y="96.682" width="49.732" height="32.84" style="fill:#1a52a3;"/><rect x="98.268" y="53.482" width="43.2" height="43.2" style="fill:#272727;"/><rect x="142.859" y="53.482" width="1.448" height="43.2" style="fill:#272727;"/><rect x="145.739" y="53.482" width="1.448" height="43.2" style="fill:#272727;"/><rect x="19.173" y="152.457" width="61.44" height="15.36" style="fill:#1a52a3;"/><rect x="47.985" y="138.83" width="3.816" height="13.627" style="fill:#272727;"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB