Skip to content

Commit

Permalink
Fix breadcrumb, Compress images
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Sep 18, 2016
1 parent 0b0b084 commit f759936
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 32 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ description: A free tutorial to learn HTML and CSS
markdown: kramdown
kramdown:
input: GFM
exclude: ['images/original']
permalink: :title.html
66 changes: 34 additions & 32 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,43 @@ <h2>{{ page.subtitle }}</h2>

<div class="page-content">
<div class="container">
<header id="breadcrumb" class="breadcrumb" data-spy="affix">
<a id="open" class="breadcrumb-toggle">
<span></span>
<span></span>
<span></span>
</a>
<div class="breadcrumb-holder">
<header id="breadcrumb" class="breadcrumb" data-spy="affix">
<a id="open" class="breadcrumb-toggle">
<span></span>
<span></span>
<span></span>
</a>

<span class="breadcrumb-section">
{% case page.section %}
{% when "web" %}
<i class="fa fa-globe"></i>
{% when "html" %}
<i class="fa fa-html5"></i>
{% when "css" %}
<i class="fa fa-css3"></i>
{% when "sass" %}
<i class="fa fa-rocket"></i>
{% endcase %}
{{ page.section }}
</span>
<span class="breadcrumb-section">
{% case page.section %}
{% when "web" %}
<i class="fa fa-globe"></i>
{% when "html" %}
<i class="fa fa-html5"></i>
{% when "css" %}
<i class="fa fa-css3"></i>
{% when "sass" %}
<i class="fa fa-rocket"></i>
{% endcase %}
{{ page.section }}
</span>

{% if page.next %}
<a class="breadcrumb-next" href="{{ page.next.url }}">
<i class="fa fa-angle-right"></i>
<span>Next article</span>
</a>
{% endif %}
{% if page.next %}
<a class="breadcrumb-next" href="{{ page.next.url }}">
<i class="fa fa-angle-right"></i>
<span>Next article</span>
</a>
{% endif %}

{% if page.previous %}
<a class="breadcrumb-previous" href="{{ page.previous.url }}">
<i class="fa fa-angle-left"></i>
<span>Previous article</span>
</a>
{% endif %}
</header>
{% if page.previous %}
<a class="breadcrumb-previous" href="{{ page.previous.url }}">
<i class="fa fa-angle-left"></i>
<span>Previous article</span>
</a>
{% endif %}
</header>
</div>

<nav id="menu" class="menu">
<ul></ul>
Expand Down
4 changes: 4 additions & 0 deletions _sass/elements.sass
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
.container
padding: 120px

.breadcrumb-holder
height: 40px
position: relative

.breadcrumb
background-color: $yellow
background-image: linear-gradient(#fffde9, $yellow)
Expand Down
Binary file modified images/marksheet-free-html-css-tutorial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/marksheet-hello.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f759936

Please sign in to comment.