Skip to content

Commit 7e9650c

Browse files
authored
Use favicons (and related assets) (#10)
* Have static copy directly to root * Add favicon (and related) assets
1 parent 9429008 commit 7e9650c

13 files changed

+70
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"clean": "rm -rf docs && mkdir -p docs/styles",
8-
"static": "cp -r static docs",
8+
"static": "cp -r static/* docs",
99
"build": "npm run clean && npm run static && postcss src/styles/global.css > docs/styles/global.css",
1010
"dev": "npm run build && eleventy --serve",
1111
"prod": "NODE_ENV=production npm run build && eleventy",

src/_includes/base.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
content="kdl is a document language, mostly based on SDLang, with xml-like semantics that looks like you're invoking a bunch of CLI commands!"
99
/>
1010
<title>{{ title }}</title>
11-
<link rel="stylesheet" href="/styles/global.css" />
11+
12+
<link rel="stylesheet" href="/styles/global.css">
13+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
14+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
15+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
16+
<link rel="manifest" href="/site.webmanifest">
17+
<meta name="msapplication-TileColor" content="#da532c">
18+
<meta name="theme-color" content="#ffffff">
19+
1220
</head>
1321
<body>
1422
<main>{{ content | safe }}</main>

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: The KDL Document Language
44
---
55

66
<header class="pt-20 pb-10 px-4">
7-
<img src="./static/logo.svg" class="mx-auto h-20">
7+
<img src="./logo.svg" class="mx-auto h-20" alt="KDL Logo">
88
<h1 class="text-2xl text-center">The KDL Document Language</h1>
99
</header>
1010

static/android-chrome-192x192.png

9.8 KB
Loading

static/android-chrome-256x256.png

13.8 KB
Loading

static/apple-touch-icon.png

9.05 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

931 Bytes
Loading

static/favicon-32x32.png

1.38 KB
Loading

static/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)