Skip to content

Commit

Permalink
[Fix] Fix styles of hbs files (#1722)
Browse files Browse the repository at this point in the history
Because there is something wrong in formation, and when we run `npm run test` we cannot continue:
![error](https://user-images.githubusercontent.com/40081831/42437285-36ee8274-838f-11e8-8c9b-741e694705ce.PNG)
This is the fixture for that:
![success](https://user-images.githubusercontent.com/40081831/42437290-417e65c4-838f-11e8-8929-e2d801d1780e.PNG)
  • Loading branch information
Maledong authored and fhemberger committed Jul 9, 2018
1 parent ecfdb0a commit 2b73296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

<nav>
<ul class="list-divider-pipe">
<li{{#equals path ''}} class="active"{{/equals}}>
<li {{#equals path ''}}class="active"{{/equals}}>
<a href="/{{site.locale}}/">{{site.home.text}}</a>
</li>

{{#each nav.main}}
<li{{#startswith ../path link}} class="active"{{/startswith}}{{#startswith link 'https://foundation.nodejs.org'}} class="nav-foundation"{{/startswith}}>
<li {{#startswith ../path link}}class="active"{{/startswith}}{{#startswith link 'https://foundation.nodejs.org'}} class="nav-foundation"{{/startswith}}>
{{#startswith link 'http'}}
<a href="{{link}}">{{text}}</a>
{{else}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navigation.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{#each nav}}
{{#equals @key ../key}}
{{#each this}}
<li{{#equals ../../path link}} class="active"{{/equals}}>
<li {{#equals ../../path link}}class="active"{{/equals}}>
{{#startswith link '/'}}
<a href="{{link}}">{{text}}{{#if subtext}} <span class="small color-lightgray">{{subtext}}</span>{{/if}}</a>
{{else}}
Expand Down

0 comments on commit 2b73296

Please sign in to comment.