add bootstrap

This commit is contained in:
2023-02-22 19:56:03 +10:30
parent 917dde42f2
commit ba347dc9fd
7 changed files with 1655 additions and 6 deletions

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>