add bootstrap
This commit is contained in:
1620
package-lock.json
generated
1620
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -4,13 +4,20 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx @11ty/eleventy --serve",
|
"watch:eleventy": "eleventy --serve",
|
||||||
"build": "npx @11ty/eleventy"
|
"build:eleventy": "eleventy",
|
||||||
|
"watch:sass": "sass --watch src/_assets/sass:public/css --style compressed",
|
||||||
|
"build:sass": "sass src/_assets/sass:public/css --style compressed",
|
||||||
|
"start": "npm-run-all build:sass --parallel watch:*",
|
||||||
|
"build": "npm-run-all build:*"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^2.0.0"
|
"@11ty/eleventy": "^2.0.0",
|
||||||
|
"bootstrap": "^5.2.3",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
|
"sass": "^1.58.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
src/_assets/sass/base/_bootstrap_overrides.scss
Normal file
3
src/_assets/sass/base/_bootstrap_overrides.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Override bootstraps variables here
|
||||||
|
// Reference node_modules/bootstrap/scss/_variables.scss for a full list of variables
|
||||||
|
// https://getbootstrap.com/docs/4.3/getting-started/theming/#variable-defaults
|
@ -1,3 +1,9 @@
|
|||||||
|
// Bootstrap overrides
|
||||||
|
@import './base/bootstrap_overrides';
|
||||||
|
|
||||||
|
// Bootstrap
|
||||||
|
@import './vendor/bootstrap';
|
||||||
|
|
||||||
/* Global variables. */
|
/* Global variables. */
|
||||||
:root {
|
:root {
|
||||||
/* Set sans-serif & mono fonts */
|
/* Set sans-serif & mono fonts */
|
1
src/_assets/sass/vendor/_bootstrap.scss
vendored
Normal file
1
src/_assets/sass/vendor/_bootstrap.scss
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@import "./../../../../node_modules/bootstrap/scss/bootstrap.scss";
|
4
src/_data/site.json
Normal file
4
src/_data/site.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"title": "Add the title of your website here. This is used in the <title></title>",
|
||||||
|
"description": "Add your site description here. This is used in <meta name='description' content=''>"
|
||||||
|
}
|
@ -4,7 +4,16 @@
|
|||||||
<meta charset="UTF-8" />
|
<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.0" />
|
||||||
<link rel="stylesheet" href="/css/styles.css" />
|
<link rel="stylesheet" href="/css/styles.css" />
|
||||||
<title>{{ title }}</title>
|
{% if title %}
|
||||||
|
<title>{{ site.title }} - {{ title }}</title>
|
||||||
|
{% else %}
|
||||||
|
<title>{{ site.title }}</title>
|
||||||
|
{% endif %}
|
||||||
|
{% if description %}
|
||||||
|
<meta name="description" content="{{ description }}">
|
||||||
|
{% else %}
|
||||||
|
<meta name="description" content="{{ site.description }}">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>{% include 'partials/header.njk' %}</header>
|
<header>{% include 'partials/header.njk' %}</header>
|
||||||
@ -16,3 +25,4 @@
|
|||||||
<footer>{% include 'partials/footer.njk' %}</footer>
|
<footer>{% include 'partials/footer.njk' %}</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user