1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-02-04 16:17:46 +01:00

Building a blog

starting the process to build the bloging function
This commit is contained in:
shemtovo 2016-10-20 16:21:18 +02:00 committed by Matthias Kretschmann
parent e7cac5cc5e
commit fad59da892
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
layout: "post"
title: "test"
date: "2016-10-20 15:57"
categories: "blog"
---
#this is a test
hello world

55
_src/_layouts/post.html Normal file
View File

@ -0,0 +1,55 @@
---
layout: base
---
<header role="banner" class="header">
{% include menu-main.html %}
<div class="row">
<h1 class="header__title">{{ page.title }}</h1>
</div>
</header>
<section role="main" class="content content--page">
{% if page.path contains '.md' %}
<div class="row content--page--markdown">
{% endif %}
{{ content }}
{% if page.path contains '.md' %}
</div>
{% endif %}
</section>
{% if page.title == "Whitepaper" %}
<section class="section section-whitepaper-download background--photo">
<div class="row">
<header class="section-header">
<h1 class="section-title">{{ page.whitepaper.title }}</h1>
<p class="section-description">{{ page.whitepaper.text }}</p>
</header>
<p class="text-center">
{% for whitepaper in page.whitepaper.files %}
<a href="{{ whitepaper.file }}" class="btn btn-primary btn-sm js-tracking-whitepaper-download"><svg class="icon"><use xlink:href="/assets/img/sprite.svg#icon-documents"></use></svg> {{ whitepaper.button }}</a>
{% endfor %}
</p>
<p class="text-center small">Last updated: {{ page.whitepaper.updated | date: '%B %d, %Y' }}</p>
</div>
</section>
{% include section-newsletter.html %}
{% endif %}
{% if page.comments %}
<footer class="comments">
<div class="row">
<h1 id="comments">Comments</h1>
<div id="disqus_thread"></div>
</div>
</footer>
{% endif %}