Favicon and remove old dum js

This commit is contained in:
vib 2023-09-07 10:06:44 +03:00
parent f0174becf7
commit fe199205e8
10 changed files with 39 additions and 35 deletions

View file

@ -3,6 +3,5 @@
"url": "https://cheri.pink", "url": "https://cheri.pink",
"authorName": "cheri", "authorName": "cheri",
"description": "A personal website with random things, sometimes a blog, Cherie's corner of the internet.", "description": "A personal website with random things, sometimes a blog, Cherie's corner of the internet.",
"language": "en", "language": "en"
"favicon": "https://cheri.pink/media/favicon.svg"
} }

View file

@ -5,10 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ site.authorName }}"> <meta name="author" content="{{ site.authorName }}">
<meta name="description" content="{{ site.description }}"> <meta name="description" content="{{ site.description }}">
<link rel="icon" href="{{ site.favicon }}" type="image/svg+xml" /> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="stylesheet" href="/resources/style.css"> <link rel="stylesheet" href="/style.css">
</head> </head>
<body> <body>
@ -26,7 +29,7 @@
<div class="nav-right"> <div class="nav-right">
<ul> <ul>
<li><a href="/about.html">about</a></li> <li><a href="/about.html">about</a></li>
<li><a href="https://git.vibb.ro">git</a></li> <li><a href="https://git.cheri.pink">git</a></li>
<li><a href="https://live.cheri.pink">livestreams</a></li> <li><a href="https://live.cheri.pink">livestreams</a></li>
<li><a href="/posts/">posts</a></li> <li><a href="/posts/">posts</a></li>
</ul> </ul>
@ -43,6 +46,5 @@
Content licensed under <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" /></a> Content licensed under <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" /></a>
</p> </p>
</footer> </footer>
<script src="/resources/themechange.js"></script>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

BIN
src/resources/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

4
src/resources/robots.txt Normal file
View file

@ -0,0 +1,4 @@
Sitemap: https://cheri.pink/sitemap.xml
User-agent: *
Disallow:

View file

@ -0,0 +1,28 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="160.000000pt" height="160.000000pt" viewBox="0 0 160.000000 160.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,160.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M644 1541 c-74 -34 -105 -98 -109 -222 -1 -36 4 -91 10 -122 10 -50
9 -59 -5 -72 -15 -14 -22 -13 -63 10 -104 59 -223 85 -294 66 -43 -12 -96 -63
-114 -109 -8 -22 -6 -29 15 -46 13 -12 29 -31 36 -44 10 -20 8 -24 -22 -36
-17 -8 -42 -12 -55 -10 -13 3 -23 3 -23 2 0 -2 -3 -26 -6 -55 -4 -28 -1 -67 5
-86 31 -93 187 -165 366 -168 58 -1 59 -2 35 -17 -50 -31 -166 -159 -193 -214
-52 -102 -44 -169 28 -240 l27 -28 28 20 c39 28 80 27 81 -2 2 -29 2 -28 -6
-60 -6 -24 -2 -29 35 -48 50 -25 115 -28 157 -6 40 20 124 113 158 173 14 26
35 73 46 103 17 49 19 52 26 30 17 -62 96 -199 140 -244 79 -80 152 -98 234
-55 37 18 40 23 34 47 -10 36 -8 61 5 77 13 15 32 11 70 -16 30 -20 40 -15 85
45 63 83 26 205 -101 333 -83 84 -82 98 7 107 80 8 186 45 233 81 50 38 76 86
76 143 0 57 -14 83 -43 78 -27 -4 -64 12 -72 32 -3 9 9 27 30 48 41 38 38 57
-15 117 -58 67 -149 73 -290 20 -8 -3 -21 -7 -28 -9 -8 -1 -22 -10 -31 -18
-10 -9 -21 -16 -25 -16 -4 0 -27 -13 -50 -29 l-43 -30 19 67 c19 67 27 204 15
269 -13 70 -51 116 -114 139 -58 20 -93 18 -93 -6 0 -12 -12 -33 -26 -47 l-26
-26 -23 24 c-12 13 -23 26 -23 29 0 35 -4 40 -34 40 -18 0 -51 -9 -74 -19z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1,29 +0,0 @@
// Get the theme toggle input
const currentTheme = localStorage.getItem("theme"); // If the current local storage item can be found
if (
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches &&
!localStorage.getItem("theme")
) {
localStorage.setItem("theme", "dark");
}
// Function that will switch the theme based on the if the theme toggle is checked or not
function switchTheme() {
if (document.documentElement.getAttribute("data-theme") === "dark") {
document.documentElement.setAttribute("data-theme", "light");
// Set the user's theme preference to dark
localStorage.setItem("theme", "light");
} else {
document.documentElement.setAttribute("data-theme", "dark");
// Set the user's theme preference to light
localStorage.setItem("theme", "dark");
}
}
// Get the current theme from local storage
if (currentTheme) {
// Set the body data-theme attribute to match the local storage item
document.documentElement.setAttribute("data-theme", currentTheme);
}