add bootstrap
This commit is contained in:
parent
917dde42f2
commit
ba347dc9fd
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": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "npx @11ty/eleventy --serve",
|
||||
"build": "npx @11ty/eleventy"
|
||||
"watch:eleventy": "eleventy --serve",
|
||||
"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": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"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. */
|
||||
:root {
|
||||
/* 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 name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<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>
|
||||
<body>
|
||||
<header>{% include 'partials/header.njk' %}</header>
|
||||
@ -15,4 +24,5 @@
|
||||
</main>
|
||||
<footer>{% include 'partials/footer.njk' %}</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user