2015-05-07 18:50:36 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2015-07-20 14:29:11 +08:00
|
|
|
<head>
|
2015-07-14 20:16:05 +08:00
|
|
|
<meta charset="utf-8">
|
2015-10-21 14:53:48 +08:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2015-07-14 20:16:05 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
2015-07-20 14:01:20 +08:00
|
|
|
<meta name="description" content="{{ config.site.description }}"/>
|
2015-07-14 20:16:05 +08:00
|
|
|
<title>{% block title %}{{ config.site.name }} - {{ config.site.description }}{% endblock %}</title>
|
|
|
|
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
|
|
|
<link rel="shortcut icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
|
|
|
{% block styles %}{% endblock %}
|
2015-10-20 16:47:55 +08:00
|
|
|
<link rel="stylesheet" href="{{static_url('../dist/demo.css')}}">
|
2015-09-17 17:29:03 +08:00
|
|
|
<link rel="stylesheet" href="{{static_url('style.css')}}">
|
|
|
|
<link rel="stylesheet" href="{{static_url('tomorrow.css')}}">
|
2015-10-27 16:26:56 +08:00
|
|
|
<!--[if IE 8]>
|
|
|
|
<script src="https://t.alipayobjects.com/images/rmsweb/T1q8JiXftaXXXXXXXX.js"></script>
|
|
|
|
<![endif]-->
|
2015-11-02 16:21:49 +08:00
|
|
|
<script src="https://as.alipayobjects.com/component/??console-polyfill/0.2.2/index.js,es5-shim/4.1.14/es5-shim.min.js,es5-shim/4.1.14/es5-sham.min.js,html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
|
|
<script src="https://a.alipayobjects.com/??bluebird/2.9.30/bluebird.js,jquery/jquery/1.11.1/jquery.js"></script>
|
2015-07-14 20:16:05 +08:00
|
|
|
<script>
|
2015-09-17 18:05:06 +08:00
|
|
|
(function() {
|
|
|
|
window.ANT_COMPONENTS = [];
|
|
|
|
window.InstantClickChangeFns = [];
|
2015-07-21 13:50:37 +08:00
|
|
|
{%- for item in resource.pages|find_category(["CSS","Components"]) %}
|
|
|
|
ANT_COMPONENTS.push({
|
|
|
|
title: '{{item.title}}',
|
|
|
|
desc: '{{item.meta.chinese}}'
|
|
|
|
});
|
2015-07-20 14:29:11 +08:00
|
|
|
{%- endfor %}
|
2015-09-17 18:05:06 +08:00
|
|
|
var i = location.pathname.split('/').lastIndexOf('ant-design');
|
|
|
|
if (i > 0) {
|
|
|
|
window.rootUrl = location.origin + location.pathname.split('/').slice(0, 2+1).join('/');
|
|
|
|
} else {
|
|
|
|
window.rootUrl = location.origin;
|
|
|
|
}
|
|
|
|
})();
|
2015-07-14 20:16:05 +08:00
|
|
|
</script>
|
2015-09-17 17:29:03 +08:00
|
|
|
<script src="{{static_url('script.js')}}"></script>
|
2015-07-14 20:16:05 +08:00
|
|
|
<script>
|
2015-07-20 14:29:11 +08:00
|
|
|
window.antdVersion = {
|
|
|
|
latest: '{{config.package.version}}',
|
|
|
|
stable: '{{config.package.stableVersion}}'
|
|
|
|
};
|
2015-07-14 20:16:05 +08:00
|
|
|
</script>
|
2015-09-17 17:29:03 +08:00
|
|
|
<script src="{{static_url('../dist/demo.js')}}"></script>
|
2015-07-14 20:16:05 +08:00
|
|
|
<script>
|
2015-07-20 14:29:11 +08:00
|
|
|
window.require = function (path) {
|
|
|
|
var result = window;
|
|
|
|
var namespaces = path.split('/');
|
|
|
|
namespaces.forEach(function (key, i) {
|
2015-11-16 14:10:42 +08:00
|
|
|
if (i === 2) {
|
2015-07-20 14:29:11 +08:00
|
|
|
key = capitalizeFirstLetter(key);
|
|
|
|
}
|
|
|
|
if (key !== 'lib') {
|
|
|
|
if (result[key]) {
|
|
|
|
result = result[key];
|
|
|
|
} else {
|
|
|
|
throw 'There should not have modules here 2.';
|
2015-07-14 20:16:05 +08:00
|
|
|
}
|
2015-07-20 14:29:11 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
function capitalizeFirstLetter(string) {
|
|
|
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
|
|
}
|
2015-07-14 20:16:05 +08:00
|
|
|
|
2015-07-20 14:29:11 +08:00
|
|
|
return result;
|
|
|
|
};
|
2015-07-14 20:16:05 +08:00
|
|
|
</script>
|
2015-11-04 16:55:02 +08:00
|
|
|
<script src="https://t.alipayobjects.com/images/T1DrxhXe0mXXXXXXXX.js"></script>
|
2015-07-14 20:16:05 +08:00
|
|
|
{% block scripts %}{% endblock %}
|
2015-07-20 14:29:11 +08:00
|
|
|
</head>
|
|
|
|
<body {% block bodyAttribute %}{% endblock %}>
|
2015-07-30 15:33:45 +08:00
|
|
|
<header id="header" class="clearfix">
|
2015-09-17 20:05:13 +08:00
|
|
|
<a class="logo" href="{{static_url('../')}}">
|
2015-07-20 19:32:42 +08:00
|
|
|
<img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
|
|
|
|
{{ config.site.name }}
|
2015-07-20 14:29:11 +08:00
|
|
|
</a>
|
2015-07-20 19:32:42 +08:00
|
|
|
<div class="search">
|
|
|
|
<div id="autoComplete"></div>
|
2015-07-20 14:29:11 +08:00
|
|
|
</div>
|
|
|
|
<nav class="nav">
|
2015-07-14 20:16:05 +08:00
|
|
|
<span class="bar"></span>
|
|
|
|
<ul>
|
2015-07-20 14:29:11 +08:00
|
|
|
<li class="{%- if post.meta.filepath === 'README.md' %}current{%- endif %}">
|
2015-09-17 17:37:15 +08:00
|
|
|
<a href="{{static_url('../')}}" data-no-instant>首页</a>
|
2015-07-20 14:29:11 +08:00
|
|
|
</li>
|
2015-08-22 17:21:47 +08:00
|
|
|
<li class="{%- if post.directory|rootDirectoryIn(['spec']) %}current{%- endif %}">
|
2015-09-17 17:37:15 +08:00
|
|
|
<a href="{{static_url('../spec/introduce')}}">设计</a>
|
2015-07-20 14:29:11 +08:00
|
|
|
</li>
|
2015-08-22 16:33:18 +08:00
|
|
|
<li>
|
|
|
|
<a class="nav-link-disabled" href="">案例</a>
|
2015-07-20 14:29:11 +08:00
|
|
|
</li>
|
2015-08-24 15:57:00 +08:00
|
|
|
<li class="{%- if post.directory|rootDirectoryIn(['docs','components']) %}current{%- endif %}">
|
2015-09-17 17:37:15 +08:00
|
|
|
<a href="{{static_url('../docs/introduce')}}">React</a>
|
2015-08-24 15:57:00 +08:00
|
|
|
</li>
|
2015-07-20 14:29:11 +08:00
|
|
|
<li>
|
|
|
|
<a target="_blank" href="https://github.com/ant-design/ant-design">Github</a>
|
|
|
|
</li>
|
2015-07-14 20:16:05 +08:00
|
|
|
</ul>
|
2015-07-20 14:29:11 +08:00
|
|
|
</nav>
|
2015-08-26 22:16:20 +08:00
|
|
|
<div class="nav-phone-icon"></div>
|
2015-07-20 14:29:11 +08:00
|
|
|
</header>
|
|
|
|
<div class="main-wrapper">
|
|
|
|
{% block aside %}{% endblock %} {% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
{%- include "footer.html" %}
|
2015-09-11 14:57:32 +08:00
|
|
|
<script src="https://t.alipayobjects.com/images/rmsweb/T1AmXhXg0kXXXXXXXX.js" data-no-instant></script>
|
|
|
|
<script data-no-instant>
|
|
|
|
InstantClick.on('change', function() {
|
|
|
|
InstantClickChangeFns.forEach(function(fn) {
|
|
|
|
fn();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
InstantClick.init();
|
|
|
|
</script>
|
2015-07-20 14:29:11 +08:00
|
|
|
</body>
|
2015-05-07 18:50:36 +08:00
|
|
|
</html>
|