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": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [], "keywords": [],

View File

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