mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
site: tweak script and style tags order
This commit is contained in:
parent
df20c6247a
commit
d13187ba1e
@ -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 -->
|
||||
|
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user