diff --git a/src/components/button.md b/components/button.md similarity index 100% rename from src/components/button.md rename to components/button.md diff --git a/src/docs/case.md b/docs/case.md similarity index 100% rename from src/docs/case.md rename to docs/case.md diff --git a/src/docs/start.md b/docs/start.md similarity index 100% rename from src/docs/start.md rename to docs/start.md diff --git a/nico.json b/nico.json index f943281e6c..a17e3b4977 100644 --- a/nico.json +++ b/nico.json @@ -1,5 +1,5 @@ { - "source": "src", + "source": ".", "output": "_site", "theme": "theme", "sitename": "Ant Design", diff --git a/package.json b/package.json index f04a9e60cf..a34a98e42d 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/index.md b/src/index.md deleted file mode 100644 index c185aa284a..0000000000 --- a/src/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# home - ---- diff --git a/theme/static/script.js b/static/script.js similarity index 100% rename from theme/static/script.js rename to static/script.js diff --git a/theme/static/style.css b/static/style.css similarity index 100% rename from theme/static/style.css rename to static/style.css diff --git a/theme/static/tomorrow.css b/static/tomorrow.css similarity index 100% rename from theme/static/tomorrow.css rename to static/tomorrow.css diff --git a/theme/templates/layout.html b/theme/templates/layout.html index 792ed03023..ed5a8cb78c 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -39,7 +39,19 @@ - {%- block main %}{% endblock -%} + {%- block main %} + {%- if post.filename === 'index' %} +
+
+ +
+
+ {%- endif %} + {% endblock -%}