Skip to content

Commit

Permalink
Делает лого ссылкой всегда
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Jan 16, 2025
1 parent 0368732 commit 5063264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/includes/header.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% set isMainPage = (page.url == '/') %}
{% if not isMainPage %}
{% set path = '/../../' %}
{% set mainLinkPath = 'href="/"' %}
{% endif %}
{% if isMainPage %}
{% set headerMod = 'header--index' %}
Expand All @@ -11,7 +10,7 @@

<header class="header {{ headerMod }}">
<div class="header__logo logo {{ logoMod }}">
<a class="logo__link"{{ mainLinkPath | safe }}>
<a class="logo__link" href="/">
<img class="logo__image"
src="{{ path }}images/logo.svg"
width="40" height="44"
Expand Down

0 comments on commit 5063264

Please sign in to comment.