Build first page
This commit is contained in:
@@ -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": [],
|
||||||
|
|||||||
@@ -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
8
src/index.njk
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: Homepage
|
||||||
|
layout: layout.njk
|
||||||
|
---
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h1>Hello to our blog</h1>
|
||||||
|
</section>
|
||||||
Reference in New Issue
Block a user