adding breadcrumbs to the jekyll layouts

This commit is contained in:
HoneyryderChuck 2020-11-05 19:50:21 +00:00
parent f7af0511fa
commit a0247ef458
4 changed files with 29 additions and 1 deletions

View File

@ -2,6 +2,9 @@
layout: default
---
<div id="breadcrumbs">
<a href="{{ '/' | prepend: site.baseurl }}">Home</a>
</div>
<div class="page">
<h1 class="page-title">{{ page.title }}</h1>
{{ content }}

View File

@ -2,6 +2,10 @@
layout: default
---
<div id="breadcrumbs">
<a href="{{ '/' | prepend: site.baseurl }}">Home</a>
<a href="{{ '/posts' | prepend: site.baseurl }}">Blog</a>
</div>
<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>

View File

@ -2,7 +2,14 @@
layout: default
---
<div class="page">
<div id="breadcrumbs">
<a href="{{ '/' | prepend: site.baseurl }}">Home</a>
{% assign wikihome = '/wiki/home.html' | prepend: site.baseurl %}
{% if page.url != wikihome %}
<a href="{{ wikihome }}">Wiki</a>
{% endif %}
</div>
<div class="page wiki">
<h1 class="page-title">{{ page.title }}</h1>
{{ content }}
</div>

View File

@ -1,3 +1,17 @@
#breadcrumbs {
margin-bottom: 1.8em;
a {
padding-right: 10px;
}
a+a:before {
padding-right: 10px;
color: $color-body-text;
content: "/\00a0";
}
}
.header {
padding: 3em 0 2em;
text-align: center;