Skip to content

Commit 66c1bae

Browse files
committed
fix: add favicon.ico support
1 parent aeed8bf commit 66c1bae

3 files changed

Lines changed: 2 additions & 0 deletions

File tree

.eleventy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = (eleventyConfig) => {
44
eleventyConfig.addShortcode("currentYear", () => new Date().getFullYear());
55
// Add this line to copy your external assets
66
eleventyConfig.addPassthroughCopy("src/assets");
7+
eleventyConfig.addPassthroughCopy("src/favicon.ico");
78
// 1. Recognize YAML as a template format
89
eleventyConfig.addTemplateFormats("yaml");
910

src/favicon.ico

2.99 KB
Binary file not shown.

src/index.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ layout: false
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
99
<title>Developer Directory</title>
10+
<link rel="icon" type="image/x-icon" href="/favicon.ico?v=2">
1011
<link rel="stylesheet" href="/assets/css/tailwind.css">
1112
<link rel="stylesheet" href="/assets/css/style.css">
1213
</head>

0 commit comments

Comments
 (0)