Skip to content

Commit 9429008

Browse files
authored
Add static assets and update build scripts (#8)
* Add static assets and update build scripts * Add logo to header and revamp header styling
1 parent 150ca36 commit 9429008

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
${{ runner.os }}-node-
2929
3030
- run: npm ci
31-
- run: npm run build
31+
- run: npm run prod
3232

3333
- name: Deploy
3434
uses: peaceiris/actions-gh-pages@v3

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"main": "index.js",
66
"scripts": {
77
"clean": "rm -rf docs && mkdir -p docs/styles",
8-
"dev": "npm run clean && postcss src/styles/global.css > docs/styles/global.css && eleventy --serve",
9-
"build": "npm run clean && NODE_ENV=production postcss src/styles/global.css > docs/styles/global.css && eleventy",
8+
"static": "cp -r static docs",
9+
"build": "npm run clean && npm run static && postcss src/styles/global.css > docs/styles/global.css",
10+
"dev": "npm run build && eleventy --serve",
11+
"prod": "NODE_ENV=production npm run build && eleventy",
1012
"format": "prettier --write src ./*.js ./.*.js"
1113
},
1214
"keywords": [],

src/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ layout: base.html
33
title: The KDL Document Language
44
---
55

6-
<header class="py-10 bg-gray-300">
7-
<h1 class="text-4xl text-center">The KDL Document Language</h1>
6+
<header class="pt-20 pb-10 px-4">
7+
<img src="./static/logo.svg" class="mx-auto h-20">
8+
<h1 class="text-2xl text-center">The KDL Document Language</h1>
89
</header>
910

1011
{% include partials/description.md %}

static/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)