Skip to content

Commit a15006d

Browse files
committed
fix for menu issue
- #33
1 parent 6f68622 commit a15006d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/header.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<nav class="navbar is-primary" >
1+
<nav class="navbar is-primary" x-data="{ openNav: false }">
22
<div class="container">
33
<div class="navbar-brand">
44
<a href="{{ site.baseurl }}/" class="navbar-item" style="padding: 0">
55
<img id="header-img" style="max-height: 4rem" src="{{site.url}}/resources/webarkit-logo-social.jpg" alt="WebAR Kit logo" title="webarkit.org home"/>
66
</a>
7-
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navMenu">
7+
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navMenu" :class="{ 'is-active': openNav }" x-on:click="openNav = !openNav">
88
<span aria-hidden="true"></span>
99
<span aria-hidden="true"></span>
1010
<span aria-hidden="true"></span>
1111
</a>
1212
</div>
13-
<div class="navbar-menu" id="navMenu">
13+
<div class="navbar-menu" id="navMenu" :class="{ 'is-active': openNav }">
1414
<div class="navbar-start">
1515
<a href="{{ site.baseurl }}/" class="navbar-item {% if page.url == "/" %}is-active{% endif %}">Home</a>
1616
{% if site.data.navigation %}

0 commit comments

Comments
 (0)