diff options
author | Tommy Chen <tommy351@gmail.com> | 2012-06-06 05:51:48 +0200 |
---|---|---|
committer | Tommy Chen <tommy351@gmail.com> | 2012-06-06 06:11:28 +0200 |
commit | 40f7f92d165007d5abf98f3cd453d54841c2f39a (patch) | |
tree | 9db7a53165534503b234489735a1ca21b8b9d1e5 /source/_includes/header.html | |
parent | 24d2187f8141a8abbd05e41cc7f113fac5751b6a (diff) | |
download | octopress-theme-jeyzu-40f7f92d165007d5abf98f3cd453d54841c2f39a.zip octopress-theme-jeyzu-40f7f92d165007d5abf98f3cd453d54841c2f39a.tar.gz |
new header for mobile device
Diffstat (limited to 'source/_includes/header.html')
-rw-r--r-- | source/_includes/header.html | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/source/_includes/header.html b/source/_includes/header.html index fa076d1..64db260 100644 --- a/source/_includes/header.html +++ b/source/_includes/header.html @@ -1,6 +1,21 @@ <h1><a href="{{ root_url }}/">{{ site.title }}</a></h1> -<nav class="menu">{% include navigation.html %}</nav> -<div class="alignright"> +<nav id="main-nav">{% include navigation.html %}</nav> +<nav id="mobile-nav"> + <div class="alignleft menu"> + <a class="button">Menu</a> + <div class="container">{% include navigation.html %}</div> + </div> + <div class="alignright search"> + <a class="button"></a> + <div class="container"> + <form action="{{ site.simple_search }}" method="get"> + <input type="text" name="q" results="0"> + <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}"> + </form> + </div> + </div> +</nav> +<nav id="sub-nav" class="alignright"> <div class="social"> {% if site.facebook_user %} <a class="facebook" href="http://www.facebook.com/{{ site.facebook_user }}" title="Facebook">Facebook</a> @@ -28,5 +43,5 @@ <input class="alignright" type="text" name="q" results="0"> <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}"> </form> -</div> +</nav> {% include custom/header.html %} |