ant-design/site/templates/layout.html

116 lines
4.5 KiB
HTML
Raw Normal View History

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">
<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 %}
<link rel="stylesheet" href="/dist/{{ config.package.name }}-{{ config.package.version }}.css">
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="/static/tomorrow.css">
<script>
2015-07-20 14:29:11 +08:00
(function (con) {
'use strict';
var prop, method;
var empty = {};
var dummy = function () {
};
var properties = 'memory'.split(',');
var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' +
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,' +
'show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn').split(',');
while (prop = properties.pop()) {
con[prop] = con[prop] || empty;
}
while (method = methods.pop()) {
con[method] = con[method] || dummy;
}
})(this.console = this.console || {});
2015-07-14 20:16:05 +08:00
</script>
<script src="https://a.alipayobjects.com/??bluebird/2.9.30/bluebird.js,jquery/jquery/1.11.1/jquery.js,es5-shim/4.0.5/es5-shim-debug.js,es5-shim/4.0.5/es5-sham-debug.js,html5shiv/3.7.2/src/html5shiv.js,react/0.13.3/react.js,react-router/0.13.3/ReactRouter.js"></script>
<script>
2015-07-21 13:50:37 +08:00
var ANT_COMPONENTS = [];
{%- 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-07-14 20:16:05 +08:00
</script>
<script src="/static/script.js"></script>
<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>
<script src="/dist/{{ config.package.name }}-{{ config.package.version }}.js"></script>
<script src="/dist/demo.js"></script>
<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) {
if (i !== 0 && i === namespaces.length - 1) {
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>
{% block scripts %}{% endblock %}
2015-07-20 14:29:11 +08:00
</head>
<body {% block bodyAttribute %}{% endblock %}>
<header id="header">
<a class="logo" href="/">
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 %}">
<a href="/">首页</a>
</li>
<li class="{%- if post.directory|rootDirectoryIs('docs') %}current{%- endif %}">
<a href="/docs/introduce">使用</a>
</li>
2015-07-29 17:25:45 +08:00
<li class="{%- if post.directory|rootDirectoryIs('spec') %}current{%- endif %}">
<a href="/spec/font">设计</a>
2015-07-20 14:29:11 +08:00
</li>
<li class="{%- if post.directory|rootDirectoryIs('components') %}current{%- endif %}">
<a href="/components">组件</a>
</li>
<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>
</header>
<div class="main-wrapper">
{% block aside %}{% endblock %} {% block content %}{% endblock %}
</div>
{%- include "footer.html" %}
</body>
2015-05-07 18:50:36 +08:00
</html>