site: tweak script and style tags order

This commit is contained in:
afc163 2018-08-20 17:02:10 +08:00
parent df20c6247a
commit d13187ba1e
2 changed files with 6 additions and 6 deletions

View File

@ -12,11 +12,6 @@
<style id="nprogress-style">
#nprogress { display: none }
</style>
</head>
<body>
<div id="react-content">
{{ content | safe }}
</div>
<link rel="stylesheet/less" type="text/css" href="{{ root }}color.less"/>
<script src="https://gw.alipayobjects.com/os/lib/??es6-shim/0.35.3/es6-sham.min.js,es6-shim/0.35.3/es6-shim.min.js"></script>
<!--[if lte IE 10]>
@ -78,6 +73,11 @@
document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us';
})()
</script>
</head>
<body>
<div id="react-content">
{{ content | safe }}
</div>
<script src="{{ root }}common.js"></script>
<script src="{{ root }}index.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->

View File

@ -68,11 +68,11 @@ class Home extends React.Component {
return (
<DocumentTitle title={`Ant Design - ${intl.formatMessage({ id: 'app.home.slogan' })}`}>
<div className="main-wrapper">
<style dangerouslySetInnerHTML={{ __html: getStyle() }} />
<Banner {...childProps} />
<Page1 {...childProps} />
<Page2 {...childProps} />
<Page3 {...childProps} />
<style dangerouslySetInnerHTML={{ __html: getStyle() }} />
</div>
</DocumentTitle>
);