Skip to content

Commit 5ad4e18

Browse files
committed
fix: Logo enlarges on return to the home page.
1 parent 413d219 commit 5ad4e18

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

layouts/partials/image-modal.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
var imgTags = document.querySelectorAll("img");
4545
imgTags.forEach(function (img) {
4646
img.onclick = function () {
47-
openModal(img);
47+
if(img.id !== "navbar-brand_logo") {
48+
openModal(img);
49+
}
4850
};
4951
});
5052
});

layouts/partials/navbar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a class="navbar-brand" href="/">
77
<span class="navbar-brand__logo navbar-logo">
88
{{ $svg := resources.Get "icons/logo.svg" }}
9-
<img class="footer-logo" src="{{ $svg.Permalink }}" alt="logo" />
9+
<img class="footer-logo" id="navbar-brand_logo" src="{{ $svg.Permalink }}" alt="logo" />
1010
</span>
1111
<span class="navbar-brand__name"></span
1212
></a>

0 commit comments

Comments
 (0)