From 0b082c397e7b27ba9e1c06bd7640949e429bfc32 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Dec 2015 13:41:58 +0100 Subject: [PATCH] generic page layout, 404 page, generate sitemap --- Gemfile | 1 + _config.yml | 6 ++++++ _src/404.md | 8 +++++++- _src/_assets/styles/bigchain.scss | 3 ++- .../_assets/styles/bigchain/_content-page.scss | 10 ++++++++++ _src/_assets/styles/page-404.scss | 7 +++++++ _src/_layouts/base.html | 6 +----- _src/_layouts/page.html | 18 ++++++++++++++++++ 8 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 _src/_assets/styles/bigchain/_content-page.scss create mode 100644 _src/_assets/styles/page-404.scss create mode 100644 _src/_layouts/page.html diff --git a/Gemfile b/Gemfile index 2dac945..e309e6c 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source "https://rubygems.org" group :jekyll do gem 'jekyll' + gem 'jekyll-sitemap' end group :development do diff --git a/_config.yml b/_config.yml index ac409a4..9ceb150 100644 --- a/_config.yml +++ b/_config.yml @@ -35,3 +35,9 @@ redcarpet: # -------------------- source: ./_src destination: ./_dist + + +# Plugins +# -------------------- +gems: + - jekyll-sitemap diff --git a/_src/404.md b/_src/404.md index 67fb7bf..147d70c 100644 --- a/_src/404.md +++ b/_src/404.md @@ -1,3 +1,9 @@ --- -layout: base +layout: page + +sitemap: false --- + +# Oops, nothing found + +[Back to site](/) diff --git a/_src/_assets/styles/bigchain.scss b/_src/_assets/styles/bigchain.scss index db41ae9..7548d94 100644 --- a/_src/_assets/styles/bigchain.scss +++ b/_src/_assets/styles/bigchain.scss @@ -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'; diff --git a/_src/_assets/styles/bigchain/_content-page.scss b/_src/_assets/styles/bigchain/_content-page.scss new file mode 100644 index 0000000..ed36da8 --- /dev/null +++ b/_src/_assets/styles/bigchain/_content-page.scss @@ -0,0 +1,10 @@ + +.page-header { + padding: $spacer; + + .logo { fill: #fff } +} + +.page-content { + +} diff --git a/_src/_assets/styles/page-404.scss b/_src/_assets/styles/page-404.scss new file mode 100644 index 0000000..d99846e --- /dev/null +++ b/_src/_assets/styles/page-404.scss @@ -0,0 +1,7 @@ + +.page-404 { + .page-content { + text-align: center; + padding: ($spacer * 4) 0; + } +} diff --git a/_src/_layouts/base.html b/_src/_layouts/base.html index 1a9e17c..035c69e 100644 --- a/_src/_layouts/base.html +++ b/_src/_layouts/base.html @@ -13,11 +13,7 @@ -
- - {{ content }} - -
+ {{ content }} {% include footer.html %} diff --git a/_src/_layouts/page.html b/_src/_layouts/page.html new file mode 100644 index 0000000..9e8b4db --- /dev/null +++ b/_src/_layouts/page.html @@ -0,0 +1,18 @@ +--- +layout: base +--- + + + +
+
+ + {{ content }} + +
+