Skip to content

Commit

Permalink
More vertical option
Browse files Browse the repository at this point in the history
Make dynamic the more vertical option in the headers nav
  • Loading branch information
oscarmcm committed Jul 25, 2015
1 parent 98da566 commit dd225d8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ header_type: default # values [ drawer, default ]
post_type: highlight # values [ highlight, default ]
pagination_type: default # values [ ops, default ]

more_vert:
option1:
name: Cool Option 1
link: www.myawesomelink.com
option2:
name: Cool Option 2
link: www.myawesomelink.com
option3:
name: Cool Option 3
link: www.myawesomelink.com

# Build settings
markdown: kramdown
7 changes: 3 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
</button>

<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="menu-lower-left">
<li class="mdl-menu__item">Some Action</li>
<li class="mdl-menu__item">Another Action</li>
<li disabled class="mdl-menu__item">Disabled Action</li>
<li class="mdl-menu__item">Yet Another Action</li>
{% for option in site.more_vert %}
<li><a href="{{ option[1].link }}" class="mdl-menu__item">{{ option[1].name }}</a></li>
{% endfor %}
</ul>
</div>
</header>
Expand Down
7 changes: 3 additions & 4 deletions _includes/header_fixed.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
</button>

<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="fixed-menu-lower-left">
<li class="mdl-menu__item">Some Action</li>
<li class="mdl-menu__item">Another Action</li>
<li disabled class="mdl-menu__item">Disabled Action</li>
<li class="mdl-menu__item">Yet Another Action</li>
{% for option in site.more_vert %}
<li><a href="{{ option[1].link }}" class="mdl-menu__item">{{ option[1].name }}</a></li>
{% endfor %}
</ul>

</div>
Expand Down

0 comments on commit dd225d8

Please sign in to comment.