Skip to content

Commit

Permalink
Убирает верхний баннер из кода
Browse files Browse the repository at this point in the history
  • Loading branch information
solarrust authored Mar 25, 2024
1 parent ce79fe8 commit ea10c84
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion src/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import './modules/question-form.js'
import './modules/subscribe-form.js'
import './modules/code-line-numbers.js'
import './modules/cookie-notification.js'
import './modules/top-banner.js'
import './modules/copy-code-snippet.js'
import './modules/people.js'
import './modules/filter-panel.js'
Expand Down
1 change: 0 additions & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@
@import url("blocks/subscribe-popup.css");
@import url("blocks/subscribe-page.css");
@import url("blocks/baseline.css");
@import url("blocks/top-banner.css");
5 changes: 0 additions & 5 deletions src/views/article-index.njk
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}

{% set isLogoContrastColor = hasCategory %}

{{ topBanner(
isMainPage=false
) }}

{% set iconEditPlaceholder %}<span class="articles-group__placeholder-icon font-theme font-theme--code" aria-hidden="true"></span>{% endset %}

{{ header(
Expand Down
5 changes: 0 additions & 5 deletions src/views/doc.njk
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}
{% from "blocks/article-image.njk" import articleImage %}
{% from "blocks/linked-article.njk" import linkedArticle %}

{% set isLogoContrastColor = hasCategory %}

{{ topBanner(
isMainPage=false
) }}

{{ header(
pageCategoryId=category,
category=categoryName,
Expand Down
5 changes: 0 additions & 5 deletions src/views/index.njk
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}
{% from "promos/" + promoData.design + ".njk" import promo with context %}

{% set isLogoContrastColor = hasCategory %}

{{ topBanner(
isMainPage=true
) }}

{{ header(
isLogoContrastColor=isLogoContrastColor,
isMainPage=true
Expand Down
5 changes: 0 additions & 5 deletions src/views/page.njk
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}

{% set isLogoContrastColor = hasCategory %}

{{ topBanner(
isMainPage=false
) }}

{{ header(
title=title,
isLogoContrastColor=isLogoContrastColor
Expand Down
5 changes: 0 additions & 5 deletions src/views/people.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}
{% from "blocks/person.njk" import person %}

Expand All @@ -24,10 +23,6 @@

<div class="people-page">

{{ topBanner(
isMainPage=false
) }}

{{ header(
pageCategoryId='people',
category=title,
Expand Down
5 changes: 0 additions & 5 deletions src/views/person.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/top-banner.njk" import topBanner with context %}
{% from "blocks/footer.njk" import footer with context %}
{% from "blocks/person-avatar.njk" import personAvatar %}
{% from "blocks/person-badges.njk" import personBadges %}
Expand Down Expand Up @@ -59,10 +58,6 @@

<div class="person-page">

{{ topBanner(
isMainPage=false
) }}

{{ header(
pageCategoryId='people',
category=categoryName,
Expand Down

0 comments on commit ea10c84

Please sign in to comment.