Skip to content

Commit

Permalink
fix: Logo enlarges on return to the home page.
Browse files Browse the repository at this point in the history
  • Loading branch information
abbi4code committed Aug 26, 2024
1 parent 413d219 commit 5ad4e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion layouts/partials/image-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
var imgTags = document.querySelectorAll("img");
imgTags.forEach(function (img) {
img.onclick = function () {
openModal(img);
if(img.id !== "navbar-brand_logo") {
openModal(img);
}
};
});
});
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a class="navbar-brand" href="/">
<span class="navbar-brand__logo navbar-logo">
{{ $svg := resources.Get "icons/logo.svg" }}
<img class="footer-logo" src="{{ $svg.Permalink }}" alt="logo" />
<img class="footer-logo" id="navbar-brand_logo" src="{{ $svg.Permalink }}" alt="logo" />
</span>
<span class="navbar-brand__name"></span
></a>
Expand Down

0 comments on commit 5ad4e18

Please sign in to comment.