-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.js
42 lines (33 loc) · 1.15 KB
/
header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const fs = require('fs');
const header = async() => {
let fixed = `<!DOCTYPE html>
<html lang="en">
<!-- template for the main page -->
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>Home</title>
</head>
<body>
<div class="container">
<div class="jumbotron">
<center>
<h1>30s of Java 8</h1>
<p>Short Java 8 code snippets for all your development needs </p>
</center>
</div>
<!-- <p>This is some text.</p> -->
<!-- <p>This is another text.</p> -->
</div>
<div class="container">
<div class="card-columns">
`;
fs.writeFile('index.html', fixed, function (err) {
if (err) throw err;
// console.log('header added')
});
}
module.exports = header;