Skip to content

Commit

Permalink
feat(header): use slugify name for header link state comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 13, 2017
1 parent ebd2241 commit fe98930
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion _app/_includes/themes/curtana/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% for item in site.data.header %}
{% include amsf/relative_url url=item.url %}
{% assign item_url = amsf_relative_url | strip %}
{% assign lowercased_title = item.title | downcase %}
{% assign lowercased_title = item.title | slugify %}
<li {% if page.permalink == item.url or page.category == lowercased_title %}class=current{% endif %}>
<a href="{{ item_url }}">
{% if item.title == "__home__" %}
Expand Down
3 changes: 0 additions & 3 deletions _app/_includes/themes/curtana/includes/open-graph.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<!-- Open Graph and Twitter Cards support, more info: https://dev.twitter.com/docs/cards -->
{% if page.category %}
{% endif %}

<meta property="og:type" content="{{ amsf_page_type | strip }}">
<meta property="og:site_name" content="{{ site.name }}">
<meta property="og:title" content="{{ amsf_page_title }}">
Expand Down

0 comments on commit fe98930

Please sign in to comment.