Skip to content

Commit 00257c8

Browse files
committed
update site to use bootstrap for styling
1 parent 003e28c commit 00257c8

11 files changed

Lines changed: 94 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
_site
22
.sass-cache
33
.jekyll-metadata
4+
node_modules

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ DEPENDENCIES
5757
tzinfo-data
5858

5959
RUBY VERSION
60-
ruby 2.3.4p301
60+
ruby 2.4.1p111
6161

6262
BUNDLED WITH
63-
1.16.0
63+
1.16.2

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ gems:
2626
exclude:
2727
- Gemfile
2828
- Gemfile.lock
29+
sass:
30+
load_paths:
31+
- _sass
32+
- node_modules

_includes/head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4+
5+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
6+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
7+
8+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
9+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
10+
</head>

_includes/navbar.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
2+
<a class="navbar-brand" href="#">OpenIndexMaps</a>
3+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
4+
<span class="navbar-toggler-icon"></span>
5+
</button>
6+
7+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
8+
9+
</div>
10+
</nav>

_layouts/default.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3-
3+
{% include head.html %}
44
<body>
5-
6-
<main class="page-content" aria-label="Content">
7-
<div class="wrapper">
8-
{{ content }}
9-
</div>
10-
</main>
5+
<div class="container">
6+
{% include navbar.html %}
7+
<main class="">
8+
<div class="">
9+
{{ content }}
10+
</div>
11+
</main>
12+
</div>
1113

1214
</body>
1315

_sass/_variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
// $jumbotron-bg: green;
4+
5+
@import '../node_modules/bootstrap/scss/functions';
6+
@import '../node_modules/bootstrap/scss/variables';

assets/main.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# Needed for Jekyll
3+
---
4+
5+
@import 'variables';
6+
@import '../node_modules/bootstrap/scss/bootstrap.scss';

index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
layout: home
66
---
77

8-
OpenIndexMaps is a community and format for sharing [index maps](https://en.wikipedia.org/wiki/Index_map).
8+
<div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light">
9+
<div class="col-md-5 p-lg-5 mx-auto">
10+
<h1 class="display-4">OpenIndexMaps</h1>
11+
<p class="lead">
12+
A community and format for sharing <a href="https://en.wikipedia.org/wiki/Index_map">index maps</a>.
13+
</p>
14+
</div>
15+
</div>
916

1017
<img src="index_map.jpg" width="240">
1118

@@ -81,6 +88,7 @@ OpenIndexMaps should be valid GeoJSON.
8188

8289
These properties represent key and value pair members of a GeoJSON `Feature` represented in an OpenIndexMap. Each property (JSON key) is case sensitive and should be represented in "camel case" format.
8390

91+
{:.table}
8492
Property | Type | Required? | Description | Example
8593
-------- | ---- | --------- | ----------- | -------
8694
`"available"`| `boolean` | no | Determines whether or not this represented area is available. | `true`

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)