highlight projects in sidebar on project pages
This commit is contained in:
parent
0e041aa4e7
commit
dbf43952ea
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
||||||
<a href='/' {%- if page.title == "Home" %} class='current'{% endif -%}>Home</a>
|
<a href='/' {%- if page.title == "Home" %} class='current'{% endif -%}>Home</a>
|
||||||
{%- for html_page in site.content -%}
|
{%- for html_page in site.content -%}
|
||||||
{%- unless html_page.title == 'Home' -%}
|
{%- unless html_page.title == 'Home' -%}
|
||||||
<a href='{{ html_page.url }}' {%- if page.title == html_page.title %} class='current'{% endif -%}>
|
<a href='{{ html_page.url }}' {%- if page.title == html_page.title or layout.sidebar_title == html_page.title %} class='current'{% endif -%}>
|
||||||
{{ html_page.title }}
|
{{ html_page.title }}
|
||||||
</a>
|
</a>
|
||||||
{%- endunless -%}
|
{%- endunless -%}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
|
sidebar_title: Projects
|
||||||
---
|
---
|
||||||
{% comment %}<h1>{{ page.name }}</h1>{% endcomment %}
|
|
||||||
<div class='subheading-links'>
|
<div class='subheading-links'>
|
||||||
{% if page.source %}<a href='{{ page.source }}'>Source code</a>{% endif %}
|
{% if page.source %}<a href='{{ page.source }}'>Source code</a>{% endif %}
|
||||||
{% if page.website %}<a href='{{ page.website }}'>Website</a>{% endif %}
|
{% if page.website %}<a href='{{ page.website }}'>Website</a>{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue