Build first page

This commit is contained in:
Philipp Klüter
2021-09-15 08:15:17 +02:00
parent bad5d0302a
commit f57a4a3443
3 changed files with 19 additions and 2 deletions

View File

@@ -4,6 +4,13 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "cross-env NODE_ENV=production npm-run-all clean - p build:*",
"build:eleventy": "eleventy",
"build:webpack": "webpack",
"clean": "rm -rf dist",
"start": "npm-run-all clean -p build:* -p start:*",
"start:eleventy": "eleventy --serve --quiet",
"start:webpack": "webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],

View File

@@ -9,7 +9,9 @@
<script src="/assets/main.bundle.js" defer></script>
<title>{{title}}</title>
</head>
<body>
<main></main>
<body class="flex flex-col min-h-screen">
<main class="container flex-grow py-8">
{{content}}
</main>
</body>
</html>

8
src/index.njk Normal file
View File

@@ -0,0 +1,8 @@
---
title: Homepage
layout: layout.njk
---
<section>
<h1>Hello to our blog</h1>
</section>