Skip to content

Commit 36099c1

Browse files
authored
fix: favicon and page titles (#1203)
* fix: proper handling of favicon * fix: proper titles for all pages
1 parent 1102d99 commit 36099c1

14 files changed

+55
-5
lines changed

src/_includes/layouts/base.webc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
activeKey: function(data) {
44
return data.eleventyNavigation?.key ?? data.parentNav ?? data.page.fileSlug;
55
},
6+
fullTitle: function(title) {
7+
return `${title} - Alex Dobin`;
8+
}
69
}
710
---
811
<!DOCTYPE html>
@@ -11,8 +14,14 @@
1114
<meta charset="utf-8">
1215
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1316
<meta name="description" content="">
14-
<title @text="this.title"></title>
15-
<link rel="icon" type="image/png" href="favicon.png">
17+
<title @text="fullTitle(this.title)"></title>
18+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
19+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
20+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
21+
<link rel="manifest" href="/site.webmanifest">
22+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
23+
<meta name="msapplication-TileColor" content="#da532c">
24+
<meta name="theme-color" content="#ffffff">
1625
<style webc:keep @html="this.getCSS(this.page.url)"></style>
1726
<script webc:keep @html="this.getJS(this.page.url)"></script>
1827
<script webc:raw webc:keep defer data-domain="alexdobin.com" src="https://plausible.alexdobin.com/js/plausible.js"></script>

src/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: About - Alex Dobin
2+
title: About
33
eleventyNavigation:
44
key: about
55
order: 2

src/favicon.png

-77.5 KB
Binary file not shown.

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Alex Dobin - alexdobin.com
2+
title: Home
33
eleventyNavigation:
44
key: home
55
order: 1

src/posts.vto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Blog posts - Alex Dobin
2+
title: Blog
33
eleventyImport:
44
collections: ["post"]
55
eleventyNavigation:

static/android-chrome-192x192.png

51.7 KB
Loading

static/apple-touch-icon.png

46.3 KB
Loading

static/browserconfig.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/mstile-150x150.png"/>
6+
<TileColor>#da532c</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

static/favicon-16x16.png

2.12 KB
Loading

static/favicon-32x32.png

3.57 KB
Loading

0 commit comments

Comments
 (0)