guides -> guide

This commit is contained in:
Matthias Kretschmann 2018-04-10 11:25:50 +02:00
parent e8227c1e83
commit 87eafe8ed9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
27 changed files with 50 additions and 53 deletions

View File

@ -51,7 +51,7 @@
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<ReplaceKeyPrefixWith>developers/guides/</ReplaceKeyPrefixWith>
<ReplaceKeyPrefixWith>developers/guide/</ReplaceKeyPrefixWith>
<HttpRedirectCode>301</HttpRedirectCode>
</Redirect>
</RoutingRule>

View File

@ -90,18 +90,18 @@ collections:
partners:
output: true
permalink: /:collection/:path/
guides:
guide:
output: true
permalink: /developers/:collection/:path/
defaults:
- scope:
path: ""
type: guides
type: guide
values:
toc: true
image: share-image-guides.png
js: page-guides.min.js
image: share-image-guide.png
js: page-guide.min.js
# Plugins
# --------------------

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -64,4 +64,4 @@
@import 'page-services';
@import 'page-faq';
@import 'oceanprotocol';
@import 'page-guides';
@import 'page-guide';

View File

@ -8,7 +8,7 @@ main:
- title: Get Started
url: /developers/getstarted/
- title: Guide
url: /developers/guides/
url: /developers/guide/
- title: Docs
url: https://docs.bigchaindb.com/
- title: Services

View File

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 278 KiB

View File

Before

Width:  |  Height:  |  Size: 610 KiB

After

Width:  |  Height:  |  Size: 610 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1,9 +1,9 @@
<header role="banner" class="header header--{{ page.url | replace: '/','' }} header--{{ page.layout }}"
{% if page.header %}
{% if page.path contains '_guides' %}
style="background-image:url('../{{ page.header }}')"
{% if page.path contains '_guide' %}
style="background-image:url('../{{ page.header }}');"
{% else %}
style="background-image:url('/assets/img/{{ page.header }}')"
style="background-image:url('/assets/img/{{ page.header }}');"
{% endif %}
{% endif %}>

View File

@ -8,13 +8,13 @@
<div class="row row--wide">
<div class="grid grid--full grid-small--half grid--gutters--small">
{% assign guides = site.guides | sort: 'order' %}
{% for guide in guides limit: 4 %}
{% assign guide = site.guide | sort: 'order' %}
{% for chapter in guide limit: 4 %}
<div class="grid__col">
<article class="guide">
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('/developers/guides/{{ guide.header }}')" {% endif %}>
<h1 class="guide__title">{{ guide.title }}</h1>
<p class="guide__tagline">{{ guide.tagline }}</p>
<a href="{{ chapter.url }}" {% if chapter.header %}style="background-image:url('/developers/guide/{{ chapter.header }}')" {% endif %}>
<h1 class="guide__title">{{ chapter.title }}</h1>
<p class="guide__tagline">{{ chapter.tagline }}</p>
</a>
</article>
</div>
@ -23,6 +23,6 @@
</div>
<div class="row text-center">
<a class="btn btn-secondary" href="{% link developers/guides.html %}">All chapters</a>
<a class="btn btn-secondary" href="{% link developers/guide.html %}">All chapters</a>
</div>
</section>

View File

@ -24,17 +24,17 @@ layout: base
<section class="section section--guides-more">
<div class="row">
<header class="section-header">
<h1 class="section-title">More guides</h1>
<h1 class="section-title">More chapters</h1>
</header>
</div>
<div class="row row--wide">
<div class="grid grid--full grid-small--half grid-medium--third grid--gutters--small">
{% for guide in site.guides limit: 6 %}
{% unless page.id == guide.id %}
{% for chapter in site.guide limit: 6 %}
{% unless page.id == chapter.id %}
<div class="grid__col">
<article class="guide">
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('../{{ guide.header }}')"{% endif %}>
<h1 class="guide__title">{{ guide.title }}</h1>
<a href="{{ chapter.url }}" {% if chapter.header %}style="background-image:url('../{{ chapter.header }}')"{% endif %}>
<h1 class="guide__title">{{ chapter.title }}</h1>
</a>
</article>
</div>
@ -43,7 +43,7 @@ layout: base
</div>
</div>
<div class="row text-center">
<a class="btn btn-primary" href="/guides/">All guides</a>
<a class="btn btn-primary" href="{% link developers/guide.html %}">All guides</a>
</div>
</section>

View File

@ -285,10 +285,10 @@ conn.postTransactionSync(txSigned)
<div class="grid grid--full grid-small--fit grid--gutters">
<div class="grid__col">
<h2 class="docs__title">Guides</h2>
<h2 class="docs__title">Hitchhiker's Guide</h2>
<ul class="docs__list">
{% for guide in site.guides limit: 8 %}
<li><a href="{{ guide.url }}">{{ guide.title }}</a></li>
{% for chapter in site.guide limit: 8 %}
<li><a href="{{ chapter.url }}">{{ chapter.title }}</a></li>
{% endfor %}
</ul>
</div>
@ -310,7 +310,7 @@ conn.postTransactionSync(txSigned)
</div>
<div class="row row--wide text-center">
<div class="docs__actions">
<a class="btn btn-primary" href="{% link developers/guides.html %}">{{ content.docs.button_guides }}</a>
<a class="btn btn-primary" href="{% link developers/guide.html %}">{{ content.docs.button_guides }}</a>
<a class="btn btn-secondary" href="https://docs.bigchaindb.com">{{ content.docs.button_documentation }}</a>
</div>
</div>

View File

@ -0,0 +1,23 @@
---
layout: page
title: "The Hitchhiker's Guide to BigchainDB"
tagline: "This guide explains how to get started and build apps with BigchainDB"
image: share-image-guide.png
---
<section class="section section--guideslist">
<div class="row">
{% assign guide = site.guide | sort: 'order' %}
{% for chapter in guide %}
<article class="guide">
<a href="{{ chapter.url }}" {% if chapter.header %}style="background-image:url('./{{ chapter.header }}')" {% endif %}>
<h1 class="guide__title">{{ chapter.title }}</h1>
<p class="guide__tagline">{{ chapter.tagline }}</p>
</a>
</article>
{% endfor %}
</div>
</section>
{% include sections/section-getstarted.html %}

View File

@ -1,26 +0,0 @@
---
layout: page
title: "The Hitchhiker's Guide to BigchainDB"
tagline: "This guide explains how to get started and build apps with BigchainDB"
image: share-image-guides.png
redirect_from:
- /guides/
---
<section class="section section--guideslist">
<div class="row">
{% assign guides = site.guides | sort: 'order' %}
{% for guide in guides %}
<article class="guide">
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('./{{ guide.header }}')" {% endif %}>
<h1 class="guide__title">{{ guide.title }}</h1>
<p class="guide__tagline">{{ guide.tagline }}</p>
</a>
</article>
{% endfor %}
</div>
</section>
{% include sections/section-getstarted.html %}

View File

@ -61,7 +61,7 @@ intro:
</div>
</section>
{% include sections/section-guides.html %}
{% include sections/section-guide.html %}
{% include sections/section-partners.html %}