mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 01:36:55 +01:00
generic page layout, 404 page, generate sitemap
This commit is contained in:
parent
6253b8f18b
commit
0b082c397e
1
Gemfile
1
Gemfile
@ -2,6 +2,7 @@ source "https://rubygems.org"
|
||||
|
||||
group :jekyll do
|
||||
gem 'jekyll'
|
||||
gem 'jekyll-sitemap'
|
||||
end
|
||||
|
||||
group :development do
|
||||
|
@ -35,3 +35,9 @@ redcarpet:
|
||||
# --------------------
|
||||
source: ./_src
|
||||
destination: ./_dist
|
||||
|
||||
|
||||
# Plugins
|
||||
# --------------------
|
||||
gems:
|
||||
- jekyll-sitemap
|
||||
|
@ -1,3 +1,9 @@
|
||||
---
|
||||
layout: base
|
||||
layout: page
|
||||
|
||||
sitemap: false
|
||||
---
|
||||
|
||||
# Oops, nothing found
|
||||
|
||||
[Back to site](/)
|
||||
|
@ -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';
|
||||
|
10
_src/_assets/styles/bigchain/_content-page.scss
Normal file
10
_src/_assets/styles/bigchain/_content-page.scss
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
.page-header {
|
||||
padding: $spacer;
|
||||
|
||||
.logo { fill: #fff }
|
||||
}
|
||||
|
||||
.page-content {
|
||||
|
||||
}
|
7
_src/_assets/styles/page-404.scss
Normal file
7
_src/_assets/styles/page-404.scss
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
.page-404 {
|
||||
.page-content {
|
||||
text-align: center;
|
||||
padding: ($spacer * 4) 0;
|
||||
}
|
||||
}
|
@ -13,11 +13,7 @@
|
||||
</div>
|
||||
<![endif]-->
|
||||
|
||||
<section role="main" class="main">
|
||||
|
||||
{{ content }}
|
||||
|
||||
</section>
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
|
18
_src/_layouts/page.html
Normal file
18
_src/_layouts/page.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user