Commit 36810c0e authored by Floréal Toumikian's avatar Floréal Toumikian

Fixed: Mobile menu

parent acb4ece8
Pipeline #26444 passed with stage
in 1 minute and 14 seconds
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
## Uncomment and set this to only include directories you want to watch
# directories %w(app lib config test spec features) \
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
## Note: if you are using the `directories` clause above and you are not
## watching the project directory ('.'), then you will want to move
## the Guardfile to a watched dir and symlink it back, e.g.
#
# $ mkdir config
# $ mv Guardfile config/
# $ ln -s config/Guardfile .
#
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
guard 'nanoc' do
watch('nanoc.yaml') # Change this to config.yaml if you use the old config file name
watch('Rules')
watch(%r{^(content|layouts|lib)/.*$})
end
......@@ -3,11 +3,17 @@
<div class="container">
<div class="nav-wrapper">
<%= link_to('Nimukaito', '/', class: "brand-logo") %>
<a href="#" data-activates="side-mobile-menu" class="button-collapse right"><i class="material-icons">menu</i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><%= link_to('Tags', '/tags') %></li>
<li><%= link_to('À propos', '/about') %></li>
<li><%= link_to('Me contacter', 'mailto:floreal+blog@nimukaito.net') %></li>
</ul>
<ul class="side-nav" id="side-mobile-menu">
<li><%= link_to('Tags', '/tags') %></li>
<li><%= link_to('À propos', '/about') %></li>
<li><%= link_to('Me contacter', 'mailto:floreal+blog@nimukaito.net') %></li>
</ul>
</div>
</div>
</nav>
......@@ -3,3 +3,9 @@
<!-- Bootstrap Core JavaScript -->
<script src="/js/materialize.min.js"></script>
<script>
$( document ).ready(function(){
$(".button-collapse").sideNav();
});
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment