Skip to content

Commit 930e166

Browse files
committed
Add web manifest and favicon
1 parent aa1904c commit 930e166

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

web/.eleventy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function (eleventyConfig) {
1414
eleventyConfig.addPassthroughCopy({'_src/style': 'style'})
1515
eleventyConfig.addPassthroughCopy({'_src/js': 'js'})
1616
eleventyConfig.addPassthroughCopy({'_includes/icons': 'icons'})
17+
eleventyConfig.addPassthroughCopy({'_includes/manifest.json': 'manifest.json'})
1718
eleventyConfig.addPassthroughCopy({'_src/assets': 'assets'}) // If you have other assets
1819

1920
// Filters

web/_includes/manifest.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"lang": "en",
3+
"name": "UX Methods",
4+
"short_name": "UX Methods",
5+
"description": "UX Methods is a community powered, linked data driven knowledge graph for learning about the techniques of user experience design.",
6+
"theme_color": "#182125",
7+
"background_color": "#28B7FF",
8+
"display": "standalone",
9+
"start_url": "/index.html",
10+
"icons": [
11+
{
12+
"src": "icons/pwa_icon.png",
13+
"sizes": "72x72",
14+
"type": "image/png"
15+
}
16+
]
17+
}

web/_includes/partials/head.njk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<head>
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1">
4+
<meta name="theme-color" content="#182125">
5+
<link rel="manifest" href="/manifest.json"/>
46
<link rel="stylesheet" href="/style/global.css">
7+
<link rel="icon" type="image/png" sizes="72x72" href="/icons/favicon.png">
8+
59
<title>UX Methods V2 {{ title | prependPipe if title }}{{ resource.title | prependPipe if resource.title}}</title>
610

711
</title>

0 commit comments

Comments
 (0)