Skip to content

Commit

Permalink
Automatically use "Post" tab when using the post or post_fr layout
Browse files Browse the repository at this point in the history
  • Loading branch information
paly2 committed Jun 10, 2017
1 parent 836b423 commit 3e04e22
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ul class="nav navbar-nav">
<li {% if page.tab == "Home" %}class="active"{% endif %}><a href="/index.html">Home</a></li>
<li {% if page.tab == "Screenshots" %}class="active"{% endif %}><a href="/screenshots.html">Screenshots</a></li>
<li {% if page.tab == "Blog" %}class="active"{% endif %}><a href="/blog.html">Blog</a></li>
<li {% if page.tab == "Blog" or include.post %}class="active"{% endif %}><a href="/blog.html">Blog</a></li>
<li {% if page.tab == "Map" %}class="active"{% endif %}><a href="/map.html">Real-time map</a></li>
<li><a href="https://forum.minetest.net/viewtopic.php?f=20&t=14326">Forum topic</a></li>
<li><a href="https://github.com/MT-Eurythmia/Eurythmia-server">GitHub</a></li>
Expand Down
2 changes: 1 addition & 1 deletion _includes/header_fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ul class="nav navbar-nav">
<li {% if page.tab == "Home" %}class="active"{% endif %}><a href="/index_fr.html">Accueil</a></li>
<li {% if page.tab == "Screenshots" %}class="active"{% endif %}><a href="/screenshots_fr.html">Captures d'écran</a></li>
<li {% if page.tab == "Blog" %}class="active"{% endif %}><a href="/blog_fr.html">Blog</a></li>
<li {% if page.tab == "Blog" or include.post %}class="active"{% endif %}><a href="/blog_fr.html">Blog</a></li>
<li {% if page.tab == "Map" %}class="active"{% endif %}><a href="/map_fr.html">Carte en temps réel</a></li>
<li><a href="https://forum.minetest.net/viewtopic.php?f=20&t=14326">Sujet sur le forum</a></li>
<li><a href="https://github.com/MT-Eurythmia/Eurythmia-server">GitHub</a></li>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% include header.html %}
{% include header.html post=true %}

<div class="jumbotron reduced">
<div class="center">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post_fr.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% include header_fr.html %}
{% include header_fr.html post=true %}

<div class="jumbotron reduced">
<div class="center">
Expand Down
1 change: 0 additions & 1 deletion _posts/2017-06-05-new-website-released-fr.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: post_fr
tab: Blog
title: Nouveau site Web !
author: Upsilon
---
Expand Down
1 change: 0 additions & 1 deletion _posts/2017-06-05-new-website-released.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: post
tab: Blog
title: New Website released!
author: Upsilon
---
Expand Down

0 comments on commit 3e04e22

Please sign in to comment.