Build first page
This commit is contained in:
@@ -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": [],
|
||||
|
||||
@@ -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
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