-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add breadcrumbs, tidy up CSS, make code stand out
- Loading branch information
Showing
6 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div id="bread"> | ||
<ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% include breadcrumbs-begin.html %} | ||
|
||
{% assign url = {{page.url}} %} | ||
{% assign delimiter = '/' %} | ||
{% capture allparts %}{{ url | replace: delimiter, ' ' }}{% endcapture %} | ||
|
||
{% capture myFirstWord %}{{ allparts | truncatewords: 1 | remove: '...' }}{% endcapture %} | ||
{% capture minusFirst %}{{ allparts | replace_first: myFirstWord, '' }}{% endcapture %} | ||
|
||
{% capture mySecondWord %}{{ minusFirst | truncatewords: 1 | remove: '...' }}{% endcapture %} | ||
{% capture minusSecond %}{{ minusFirst | replace_first: mySecondWord, '' }}{% endcapture %} | ||
|
||
{% capture myThirdWord %}{{ minusSecond | truncatewords: 1 | remove: '...' }}{% endcapture %} | ||
{% capture minusThird %}{{ minusSecond | replace_first: myThirdWord, '' }}{% endcapture %} | ||
|
||
{% capture myFourthWord %}{{ minusThird | truncatewords: 1 | remove: '...' }}{% endcapture %} | ||
{% capture minusFourth %}{{ minusThird | replace_first: myFourthWord, '' }}{% endcapture %} | ||
|
||
{% capture myFifthWord %}{{ minusFourth | truncatewords: 1 | remove: '...' }}{% endcapture %} | ||
|
||
{% if myFirstWord contains '.html' %} | ||
<li><a href="/">home</a> </li> | ||
{% elsif mySecondWord contains '.html' %} | ||
<li><a href="/">home</a> » </li> | ||
{% unless mySecondWord == 'index.html' %} | ||
<li><a href="/{{myFirstWord}}">{{myFirstWord}}</a> » </li> | ||
{% endunless %} | ||
{% elsif myThirdWord contains '.html' %} | ||
<li><a href="/">home</a> » </li> | ||
<li><a href="/{{myFirstWord}}">{{myFirstWord}}</a> » </li> | ||
{% unless myThirdWord == 'index.html' %} | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}">{{mySecondWord}}</a> » </li> | ||
{% endunless %} | ||
{% elsif myFourthWord contains '.html' %} | ||
<li><a href="/">home</a> » </li> | ||
<li><a href="/{{myFirstWord}}">{{myFirstWord}}</a> » </li> | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}">{{mySecondWord}}</a> » </li> | ||
{% unless myFourthWord == 'index.html' %} | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}/{{myThirdWord}}">{{myThirdWord}}</a> » </li> | ||
{% endunless %} | ||
{% elsif myFifthWord contains '.html' %} | ||
<li><a href="/">home</a> » </li> | ||
<li><a href="/{{myFirstWord}}">{{myFirstWord}}</a> » </li> | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}">{{mySecondWord}}</a> » </li> | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}/{{myThirdWord}}">{{myThirdWord}}</a> » </li> | ||
{% unless myFourthWord == 'index.html' %} | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}/{{myThirdWord}}/{{myFourthWord}}">{{myFourthWord}}</a> » </li> | ||
{% endunless %} | ||
{% else %} | ||
<li><a href="/">home</a> » </li> | ||
<li><a href="/{{myFirstWord}}">{{myFirstWord}}</a> » </li> | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}">{{mySecondWord}}</a> » </li> | ||
<li><a href="/{{myFirstWord}}/{{mySecondWord}}/{{myThirdWord}}">{{myThirdWord}}</a> » </li> | ||
{% endif %} | ||
|
||
{% include breadcrumbs-end.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,42 @@ | ||
body { | ||
/* | ||
background-color:silver; | ||
*/ | ||
background-color:white; | ||
background-color: white; | ||
} | ||
|
||
pre { | ||
white-space: pre-wrap; /* http://www.w3.org/TR/CSS2/text.html */ | ||
border: 1px solid #DEDEDE; | ||
} | ||
|
||
code { | ||
background-color: #F8F8F8; | ||
border: 1px solid #DEDEDE; | ||
} | ||
|
||
pre code { | ||
border: none; | ||
} | ||
|
||
h1 { | ||
font-size: 140% | ||
font-size: 140%; | ||
margin-top: 4px; | ||
margin-bottom: 4px; | ||
} | ||
|
||
h2 { | ||
font-size: 100% | ||
font-size: 100%; | ||
} | ||
|
||
#bread { | ||
/* border: 1px solid #DEDEDE; */ | ||
} | ||
|
||
#bread ul { | ||
padding-left: 0; | ||
margin-top: 2px; | ||
margin-bottom: 2px; | ||
} | ||
|
||
#bread ul li { | ||
display: inline; | ||
font-size: 70%; | ||
} |