mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
rm src
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"source": "src",
|
||||
"source": ".",
|
||||
"output": "_site",
|
||||
"theme": "theme",
|
||||
"sitename": "Ant Design",
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
"scripts": {
|
||||
"build": "npm run clean && nico build",
|
||||
"start": "nico server",
|
||||
"clean": "rm -rf _site",
|
||||
"deploy": "npm run build && git checkout gh-pages && git merge master && git push origin gh-pages && git checkout master"
|
||||
"clean": "rm -rf _site"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# home
|
||||
|
||||
---
|
||||
@@ -39,7 +39,19 @@
|
||||
<div class="nav-phone-icon"></div>
|
||||
</header>
|
||||
|
||||
{%- block main %}{% endblock -%}
|
||||
{%- block main %}
|
||||
{%- if post.filename === 'index' %}
|
||||
<div class="main">
|
||||
<div class="main-box" id="main">
|
||||
<div class="banner-box">
|
||||
<div id="bannerAnim"></div>
|
||||
<div class="banner-img"></div>
|
||||
<div class="banner-text"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
{% endblock -%}
|
||||
|
||||
<footer id="footer">
|
||||
<ul>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
exports.reader = function(post) {
|
||||
var filename = post.meta.filepath.toLowerCase();
|
||||
if (post.meta.filepath.indexOf('components') >= 0) {
|
||||
if (filename.indexOf('components') >= 0) {
|
||||
post.template = post.meta.template = 'component';
|
||||
} else {
|
||||
post.template = post.meta.template = (post.meta.template || 'page');
|
||||
|
||||
Reference in New Issue
Block a user