Skip to content

Commit 83d54c0

Browse files
committed
👷 inject author and description in HTML head
1 parent 48c0c61 commit 83d54c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.posthtmlrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
locals: {
77
BASE_URL: process.env.BASE_URL,
88
VERSION: pjson.version,
9+
DESCRIPTION: pjson.description,
10+
AUTHOR: pjson.author,
911
},
1012
},
1113
},

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6-
<meta name="description" content="" />
7-
<meta name="author" content="" />
6+
<meta name="description" content="{{ DESCRIPTION }}" />
7+
<meta name="author" content="{{ AUTHOR }}" />
88
<meta name="version" content="{{ VERSION }}" />
99

1010
<title>playground elm</title>

0 commit comments

Comments
 (0)