Browse Source

rm src

pull/4/head
afc163 10 years ago
parent
commit
08900df2fb
  1. 0
      components/button.md
  2. 0
      docs/case.md
  3. 0
      docs/start.md
  4. 2
      nico.json
  5. 3
      package.json
  6. 3
      src/index.md
  7. 0
      static/script.js
  8. 0
      static/style.css
  9. 0
      static/tomorrow.css
  10. 14
      theme/templates/layout.html
  11. 2
      theme/theme.js

0
src/components/button.md → components/button.md

0
src/docs/case.md → docs/case.md

0
src/docs/start.md → docs/start.md

2
nico.json

@ -1,5 +1,5 @@
{
"source": "src",
"source": ".",
"output": "_site",
"theme": "theme",
"sitename": "Ant Design",

3
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"
}
}

3
src/index.md

@ -1,3 +0,0 @@
# home
---

0
theme/static/script.js → static/script.js

0
theme/static/style.css → static/style.css

0
theme/static/tomorrow.css → static/tomorrow.css

14
theme/templates/layout.html

@ -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>

2
theme/theme.js

@ -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');

Loading…
Cancel
Save