Skip to content

Commit

Permalink
Remove all meta googlebot (Hexlet#158)
Browse files Browse the repository at this point in the history
* removes meta googlebot on professions page

* removes meta googlebot on [professionid] pages

* removes meta googlebot on [competitorIdLine] page

* removes meta googlebot on [schoolid] pages
  • Loading branch information
EvSedov authored and fey committed May 5, 2023
1 parent 897ccd6 commit cf074ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/professions/[professionId].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { useRouter } from 'next/router.js';
import React, { useState } from 'react';
import { useTranslation } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import SEO from '../../next-seo.json';

const ComparingRow = (props) => {
const { state, profession } = props;
Expand Down Expand Up @@ -97,6 +98,8 @@ const Profession = (props) => {
return (
<BaseLayout>
<NextSeo
// eslint-disable-next-line react/jsx-props-no-spreading
{...SEO}
title={t('titles.title_certain_school', { profession: profession.name })}
description={t('descriptions.description_certain_school', { profession: profession.name })}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { getSchools, getProfessions } from 'lib/api.js';
import { cartesian, getPathnameSortedBySchoolNames } from 'lib/utils.js';
import assetsRoutes from 'lib/assetsRoutes.js';
import routes from 'lib/routes.js';
import SEO from '../../../../next-seo.json';

const Value = (props) => {
const dicts = useTranslation('dicts');
Expand Down Expand Up @@ -219,6 +220,8 @@ const Home = (props) => {
return (
<BaseLayout>
<NextSeo
// eslint-disable-next-line react/jsx-props-no-spreading
{...SEO}
title={t('titles.title_comparison', {
profession: profession.name,
school_1: selectedSchools[0].name[i18n.language],
Expand Down
3 changes: 3 additions & 0 deletions pages/professions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import BaseLayout from 'components/layouts/BaseLayout.jsx';
import routes from 'lib/routes.js';
import { NextSeo } from 'next-seo';
import { useTranslation } from 'next-i18next';
import SEO from '../../next-seo.json';

const ProfessionItem = (props) => {
const { profession } = props;
Expand Down Expand Up @@ -43,6 +44,8 @@ const ProfessionsHome = (props) => {
return (
<BaseLayout>
<NextSeo
// eslint-disable-next-line react/jsx-props-no-spreading
{...SEO}
title={t('titles.title_professions')}
description={t('descriptions.description_professions')}
/>
Expand Down
3 changes: 3 additions & 0 deletions pages/schools/[schoolId].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import assetsRoutes from 'lib/assetsRoutes.js';

import BaseLayout from 'components/layouts/BaseLayout.jsx';
import { useTranslation } from 'next-i18next';
import SEO from '../../next-seo.json';

const descriptionFields = [
'link', 'blog', 'email', 'ceo', 'legal', 'address', 'foundationDate', 'supportOptions',
Expand Down Expand Up @@ -213,6 +214,8 @@ const School = (props) => {
return (
<BaseLayout>
<NextSeo
// eslint-disable-next-line react/jsx-props-no-spreading
{...SEO}
title={t('titles.title_school', { school: school.name[i18n.language] })}
description={t('descriptions.description_school', { school: school.name[i18n.language] })}
/>
Expand Down

0 comments on commit cf074ff

Please sign in to comment.