From b12d53af60c137ad588732defb0c8ac4ed3dc204 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 4 Jun 2015 14:42:24 +0800 Subject: [PATCH] site title --- README.md | 2 +- nico.js | 4 +++- package.json | 3 ++- theme/templates/layout.html | 16 ++++++++-------- theme/templates/page.html | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 131ccafa4b..e6a8d848af 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ant Design -咩咩咩。 +下一代设计&前端框架。 --- diff --git a/nico.js b/nico.js index d8cd9ede96..3a9fb600ac 100644 --- a/nico.js +++ b/nico.js @@ -1,8 +1,10 @@ var path = require('path'); +var package = require('./package'); // {{ settings for nico exports.site = { - name: 'Ant Design' + name: package.title, + description: package.description }; exports.theme = 'theme'; exports.source = process.cwd(); diff --git a/package.json b/package.json index 647c78f610..0b5b2cc83d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "antd", "version": "0.0.1", - "description": "Design for ease", + "title": "Ant Design", + "description": "下一代设计&前端框架", "homepage": "http://ant-design.github.io/", "repository": { "type": "git", diff --git a/theme/templates/layout.html b/theme/templates/layout.html index 41c895333c..8a955682c4 100644 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -6,7 +6,7 @@ - {% block title %}Ant Design{% endblock %} + {% block title %}{{ config.site.name }} - {{ config.site.description }}{% endblock %} @@ -22,7 +22,7 @@