bulma/docs/_layouts/post.html

97 lines
2.5 KiB
HTML
Raw Normal View History

---
layout: default
route: blog
2018-04-09 20:16:50 +00:00
breadcrumb:
- home
- blog
---
2018-04-09 21:25:26 +00:00
{% include global/navbar.html id="Blog" %}
2018-04-09 20:16:50 +00:00
<main class="bd-main">
<div class="bd-side-background"></div>
<div class="bd-main-container container">
<div class="bd-duo">
<div class="bd-lead">
<div class="bd-breadcrumb">
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li>
{% assign link = site.data.links.by_id['home'] %}
<a href="{{ site.url }}{{ link.path }}">{{ link.name }}</a>
</li>
<li>
{% assign link = site.data.links.by_id['blog'] %}
<a href="{{ site.url }}{{ link.path }}">{{ link.name }}</a>
</li>
<li class="is-active">
<a href="{{ page.url }}">{{ page.name }}</a>
</li>
</ul>
</nav>
{% if page.previous.url or page.next.url %}
<nav class="bd-prev-next">
{% if page.previous.url %}
<a href="{{ site.url }}{{ page.previous.url }}">
</a>
{% else %}
<span>
</span>
{% endif %}
{% if page.next.url %}
<a href="{{ site.url }}{{ page.next.url }}">
</a>
{% else %}
<span>
</span>
{% endif %}
</nav>
2018-01-18 17:45:54 +00:00
{% endif %}
2018-04-09 20:16:50 +00:00
</div>
<header class="bd-header">
<div class="bd-header-titles">
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle is-4">
{{ page.date | date_to_string }}
</p>
</div>
<div class="bd-header-carbon">
2018-04-09 21:25:26 +00:00
{% include elements/carbon.html %}
2018-04-09 20:16:50 +00:00
</div>
</header>
<div class="bd-content">
<div class="content is-medium">
{{ content }}
</div>
</div>
</div>
2018-04-09 20:16:50 +00:00
<aside class="bd-side">
<nav class="bd-categories">
{% for post in site.posts %}
<div class="bd-category">
<header class="bd-category-header">
<a class="bd-category-name" href="{{ post.url }}">
<strong>{{ post.name }}</strong>
</a>
</header>
</div>
{% endfor %}
</nav>
</aside>
2017-07-29 13:38:45 +00:00
</div>
</div>
2018-04-09 20:16:50 +00:00
</main>