Что заставит заголовок моего сайта React переопределиться чем-то в одном из моих файлов. js? Вот мой индекс. html, где вы можете ясно видеть текст в моем теге Title. Однако на всех страницах моего сайта на вкладке вверху браузера написано «Блог». Я не понимаю, откуда это. Я также помещаю код со страницы блога ниже, если это помогает. Я использую dropinblog.com для своего блога. Могут ли они переборщить?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo.svg" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/58c601893c.js" crossorigin="anonymous"></script>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous" />
<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#mc_embed_signup {
background: rgba(0, 0, 0, 0);
clear: left;
width: 100%;
}
{
}
</style>
<script id="hire-embed-loader" async defer src="https://hire.withgoogle.com/s/embed/hire-jobs.js?company=pprhrcom">
</script>
<title>PPR - Human Resources Consulting and Executive Placement Services</title>
</head>
<body>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script>
var dib_id = 'my-blog-id';
</script>
<script src="https://dropinblog.com/js/embed.js"></script>
</body>
</html>
А вот моя страница в блоге ...
import React, { Component } from 'react';
import styled, { ThemeProvider } from 'styled-components';
import theme from "../../Config/Theme";
const Div = styled.div`
.jumbotron{
background-color: transparent;
margin: 0px;
padding-top: 0px;
padding-bottom: 1em;
h1{
color: ${props => props.theme.colors.light_blue};
}
}
#blog-header{
background-image: url('/assets/images/blog-banner.jpg');
background-repeat: no-repeat;
background-position: bottom right;
background-size: cover;
margin-top: 0px;
margin-bottom: 0px;
.text-box{
background-color: rgba(63,69,97,0.75);
border-radius: .25em;
padding: 4em;
@media only screen and (min-width: ${props => props.theme.sizes.portrait_phone} ) and (max-width: ${props => props.theme.sizes.landscape_phones}) {
padding: 2em;
}
@media only screen and (max-width: ${props => props.theme.sizes.portrait_phone}) {
padding: 1.75em;
}
.display-4{
color: ${props => props.theme.colors.orange};
margin-bottom:.5em;
@media only screen and (min-width:${props => props.theme.sizes.portrait_phone} ) and (max-width: ${props => props.theme.sizes.landscape_phone}) {
font-size: 2em;
}
@media only screen and (max-width: ${props => props.theme.sizes.portrait_phone}) {
font-size: 1.75em;
}
}
.sub-title{
color: ${props => props.theme.colors.orange};
font-size: 2em;
margin-top: 1em;
@media only screen and (min-width: ${props => props.theme.sizes.portrait_phone} ) and (max-width: ${props => props.theme.sizes.landscape_phone}) {
font-size: 1em;
}
@media only screen and (max-width: ${props => props.theme.sizes.portrait_phone}) {
font-size: 1em;
}
}
p{
color: ${props => props.theme.colors.white};
@media only screen and (min-width: ${props => props.theme.sizes.portrait_phone} ) and (max-width: ${props => props.theme.sizes.landscape_phone}) {
font-size: 1em;
}
@media only screen and (max-width: ${props => props.theme.sizes.portrait_phone}) {
font-size: 1em;
}
}
}
.description{
color: ${props => props.theme.colors.white};
.lead{
@media only screen and (min-width: ${props => props.theme.sizes.portrait_phone}) and (max-width: ${props => props.theme.sizes.landscape_phone}) {
font-size: 1em;
}
@media only screen and (max-width: ${props => props.theme.sizes.portrait_phone}) {
font-size: 1em;
}
}
}
}
.blog-body{
background-color: ${props => props.theme.colors.dark_blue};
}
#dib-posts{
background-color: ${props => props.theme.colors.white};
padding: 1em;
margin-top: 2em;
border-radius: .25em;
}
`
class Blog extends Component {
render() {
return (
<div>
<ThemeProvider theme={theme}>
<Div>
<div className="jumbotron jumbotron-fluid">
<div className="container">
<h1 className="display-1">Blog</h1>
</div>
</div>
<div className="section pt-3 pb-3" id='blog-header'>
<div className="row mx-0">
<div className="col-lg-7 col-md-12 my-5">
<div className="text-box">
<h1 className="display-4">HR Insider</h1>
<div className="description">
</div>
<p className='sub-title'>Features and Information that Matter to You</p>
<p className="lead">Articles from our monthly newsletters as well as featured content to keep you up to date on our community, HR policy and law changes. We also have tips and best practice information.</p>
</div>
</div>
</div>
</div>
<div className="blog-body">
<div className="">
<div className="blog-goes-here">
<div className="mt-0" id="dib-posts"></div>
</div>
</div>
</div>
</Div>
</ThemeProvider>
</div>
)
}
}
export default Blog;