generic page layout, 404 page, generate sitemap

This commit is contained in:
Matthias Kretschmann 2015-12-22 13:41:58 +01:00
parent 6253b8f18b
commit 0b082c397e
8 changed files with 52 additions and 7 deletions

View File

@ -2,6 +2,7 @@ source "https://rubygems.org"
group :jekyll do
gem 'jekyll'
gem 'jekyll-sitemap'
end
group :development do

View File

@ -35,3 +35,9 @@ redcarpet:
# --------------------
source: ./_src
destination: ./_dist
# Plugins
# --------------------
gems:
- jekyll-sitemap

View File

@ -1,3 +1,9 @@
---
layout: base
layout: page
sitemap: false
---
# Oops, nothing found
[Back to site](/)

View File

@ -28,7 +28,8 @@
@import 'bigchain/_utilities';
// Content types
//@import 'bigchain/content-page';
@import 'bigchain/_content-page';
// specific page styles
@import 'page-front';
@import 'page-404';

View File

@ -0,0 +1,10 @@
.page-header {
padding: $spacer;
.logo { fill: #fff }
}
.page-content {
}

View File

@ -0,0 +1,7 @@
.page-404 {
.page-content {
text-align: center;
padding: ($spacer * 4) 0;
}
}

View File

@ -13,11 +13,7 @@
</div>
<![endif]-->
<section role="main" class="main">
{{ content }}
</section>
{{ content }}
{% include footer.html %}

18
_src/_layouts/page.html Normal file
View File

@ -0,0 +1,18 @@
---
layout: base
---
<header role="banner" class="page-header background--gray">
<svg class="logo logo--sm" aria-labelledby="title">
<title>Logo</title>
<use xlink:href="/assets/img/sprite.svg#logo"></use>
</svg>
</header>
<section role="main" class="page-content">
<div class="row">
{{ content }}
</div>
</section>