Merge pull request #419 from betagouv/fix-google-seo

Fix google seo
pull/422/head
Johan Girod 2018-11-06 17:32:07 +01:00 committed by GitHub
commit 6399c3f86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 713 additions and 683 deletions

View File

@ -10,7 +10,6 @@
<meta name="google-site-verification" content="C03WwnrJP0FLqf83ibMBA7_N-TLQcwsJaAhqKXppxaE" />
<!-- vérification pour Bing Webmaster -->
<meta name="msvalidate.01" content="65161AFDF93A706CED3F68C7621C00D7" />
<meta name="description" content="<%= htmlWebpackPlugin.options.description %>" data-react-helmet="true">
<!-- data-helmet pour que React Helmet puisse écraser ce meta par défaut -->
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,600|IBM+Plex+Sans:300,400' rel='stylesheet'
@ -29,7 +28,7 @@
display: none !important;
}
</style>
<!--<![endif]-->
<!--<![endif]-->
<style>
html[data-useragent*='MSIE 10.0'] #outdated-browser {
display: block !important;
@ -157,21 +156,20 @@
<br /><br /> Votre navigateur n'est pas supporté. Vous pouvez le mettre à jour ou en installer un nouveau depuis <a
style="color: #2975d1" href="http://outdatedbrowser.com/fr">cette page</a></h2>
</div>
<script>
<script src="https://use.fontawesome.com/1da10bbdec.js"></script>
<script type="text/javascript">
var doc = document.documentElement;
doc.setAttribute('data-useragent', navigator.userAgent);
</script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Intl.~locale.en,Intl.~locale.fr,IntersectionObserver,fetch,Array.prototype.find,Object.values,Number.parseFloat,Array.prototype.includes,Object.entries,Object.values,Object.keys,Math.log2&unknown=polyfill"></script>
<script src="https://use.fontawesome.com/1da10bbdec.js"></script>
<script type="text/javascript">
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
// For ie, polyfill everything, as I can't figure what's going on, and which polyfill is missing...
if (/MSIE \d|Trident.*rv:|Google/.test(navigator.userAgent)) {
// For ie or google, polyfill everything, as I can't figure what's going on, and which polyfill is missing...
document.write('<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=all"><\/script>');
} else {
document.write('<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Intl.~locale.en,Intl.~locale.fr,IntersectionObserver,fetch,Array.prototype.find,Object.values,Number.parseFloat,Array.prototype.includes,Object.entries,Object.values,Object.keys,Math.log2&unknown=polyfill"><\/script>');
}
</script>
</body>
</html>
</html>

View File

@ -80,7 +80,7 @@
"@babel/preset-flow": "^7.0.0-beta.51",
"@babel/preset-react": "^7.0.0",
"akh": "^3.1.2",
"autoprefixer": "^8.6.3",
"autoprefixer": "^9.3.1",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.2",
"babel-plugin-syntax-dynamic-import": "^6.18.0",

View File

@ -1,4 +1,3 @@
module.exports = {
plugins: [require('autoprefixer')],
sourceMap: 'inline'
plugins: [require('autoprefixer')]
}

View File

@ -41,6 +41,7 @@ export default class Layout extends PureComponent {
this.history = createHistory({
basename: process.env.NODE_ENV === 'production' ? '' : this.props.basename
})
this.props.tracker.connectToHistory(this.history)
const storeEnhancer = composeEnhancers(
applyMiddleware(
// Allows us to painlessly do route transition in action creators
@ -65,7 +66,7 @@ export default class Layout extends PureComponent {
<TrackerProvider value={this.props.tracker}>
<SetCSSColour />
<I18nextProvider i18n={i18next}>
<Router history={this.props.tracker.connectToHistory(this.history)}>
<Router history={this.history}>
<>{this.props.children}</>
</Router>
</I18nextProvider>

View File

@ -1,6 +1,5 @@
import PageFeedback from 'Components/Feedback/PageFeedback'
import Mecanisms from 'Components/Mecanisms'
import ExampleSituations from './pages/ExampleSituations'
import RulePage from 'Components/RulePage'
import DisableScroll from 'Components/utils/DisableScroll'
import TrackPageView from 'Components/utils/TrackPageView'
@ -21,6 +20,7 @@ import trackDomainActions from './middlewares/trackDomainActions'
import About from './pages/About'
import Contact from './pages/Contact'
import Couleur from './pages/Couleur'
import ExampleSituations from './pages/ExampleSituations'
import { Header } from './pages/Header'
import Home from './pages/Home'
import IframeFooter from './pages/IframeFooter'

View File

@ -1,3 +1,3 @@
User-agent: *
Sitemap: https://mycompanyinfrance.fr/sitemap.txt
Disallow:
Disallow:

1360
yarn.lock

File diff suppressed because it is too large Load Diff