Skip to content

Commit

Permalink
highlight testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbliv committed Jul 14, 2024
1 parent 450bc6e commit 3e1a812
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<a class="navbar-item {% if page.layout == 'default' %}is-active{% endif %}"
href="{% if page.layout == 'default' %}{{site.url}}{{site.baseurl}}/#{% else %}{{site.url}}{{site.baseurl}}/{% endif %}">HOME</a>
<a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#about">ABOUT</a>
<a class="navbar-item" href="{{site.url}}{{site.baseurl}}/projects">PROJECTS</a>
<a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#contact">CONTACT</a>
<a class="navbar-item {% if page.url == sitepage.url | absolute_url %}is-active{% endif %}" href="{{site.url}}{{site.baseurl}}/projects">PROJECTS</a>
<a class="navbar-item" href="{{site.url}}{{site.baseurl}}/assets/JohnLyleResume.pdf" target="_blank">RESUME</a>
</div>

Expand All @@ -37,7 +38,7 @@
/* Get all "navbar-burger" elements */
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
/* Check if there are any navbar burgers */
if ($navbarBurgers.length > 0) {
if (1 == 1) {
/* Add a click event on each of them */
$navbarBurgers.forEach(function ($el) {
$el.addEventListener('click', function () {
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var scroll = this.scrollY;
var position = window.pageYOffset;

for (var i = 0; i < navItems.length; i++) {
for (var i = 0; i < 4; i++) {
navItems[i].classList.remove('is-active');
}

Expand Down
1 change: 1 addition & 0 deletions _layouts/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
{% include footer.html %}
</body>


</html>
1 change: 1 addition & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ a.navbar-item.is-active {
width: 10rem;
padding: 0.25rem;
margin: auto auto 1rem auto;
border-radius: 5px;

&:hover {
transform: scale(1.05);
Expand Down

0 comments on commit 3e1a812

Please sign in to comment.