Merge pull request #1 from uuupah/add-bootstrap

add bootstrap
This commit is contained in:
2023-02-23 00:47:30 +10:30
committed by GitHub
7 changed files with 1655 additions and 6 deletions

1620
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View 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

View File

@ -1,3 +1,9 @@
// Bootstrap overrides
@import './base/bootstrap_overrides';
// Bootstrap
@import './vendor/bootstrap';
/* Global variables. */
:root {
/* Set sans-serif & mono fonts */

View File

@ -0,0 +1 @@
@import "./../../../../node_modules/bootstrap/scss/bootstrap.scss";

4
src/_data/site.json Normal file
View 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=''>"
}

View File

@ -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>