-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update nav bar to support links from metadata
- Loading branch information
1 parent
e17f51a
commit 637963a
Showing
8 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<nav class="navbar is-primary has-shadow" role="navigation" aria-label="main navigation"> | ||
|
||
<%# is-active prevents the menu from disappearing < 1024px %> | ||
<%# container keeps the menu within the same boundaries as the main content %> | ||
<div class="navbar-menu is-active container"> | ||
<div class="navbar-end"> | ||
<% (links || []).each do |link| %> | ||
<a class="navbar-item has-text-white has-text-weight-bold" href="<%= link.url %>"> | ||
<%= link.name %> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
</nav> |