diff --git a/iblog/article.html b/iblog/article.html
index fd68da9..4211734 100644
--- a/iblog/article.html
+++ b/iblog/article.html
@@ -1,7 +1,7 @@
- 博客详细列表
+ 博客详情页
diff --git a/iblog/blog/2014-06-21.js b/iblog/blog/2014-06-21.js
index 8047f16..ca19c2a 100644
--- a/iblog/blog/2014-06-21.js
+++ b/iblog/blog/2014-06-21.js
@@ -1,7 +1,7 @@
define(function(require, exports, module){
var blog_2014_06_21 = {
id:'blog_2014_06_21',
- title: '大学这四年',
+ title: '大学这四年',
blog_tags: ['大学四年', '总结' , '展望'],
blog_time: '2014-06-21 凌晨1点',
blog_p:[
@@ -28,7 +28,7 @@ define(function(require, exports, module){
- exports.blog_2014_06_21_am_1 = blog_2014_06_21_am_1;
+ exports.blog_2014_06_21 = blog_2014_06_21;
});
diff --git a/iblog/blog/2014-06-24.js b/iblog/blog/2014-06-24.js
index a3052ea..42d951e 100644
--- a/iblog/blog/2014-06-24.js
+++ b/iblog/blog/2014-06-24.js
@@ -1,7 +1,7 @@
define(function(require, exports, module){
var blog_2014_06_24 = {
id:'blog_2014_06_24',
- title: '关于git和svn',
+ title: '关于git和svn',
blog_tags: ['git', 'svn' , '版本控制'],
blog_time: '2014-06-24 下午9:40',
blog_p:[
diff --git a/iblog/blog/blogs.js b/iblog/blog/blogs.js
index 0dde0d2..fd27a8d 100644
--- a/iblog/blog/blogs.js
+++ b/iblog/blog/blogs.js
@@ -3,8 +3,6 @@
*/
define(function(require, exports, module){
var blogs = [];
-
-
var blog_2 = require('./2014-06-24.js');
var blog_1 = require('./2014-06-21.js'); //取得外界exs -> 调用exs的blog
@@ -12,7 +10,5 @@ define(function(require, exports, module){
blogs.push(blog_2.blog_2014_06_24);
blogs.push(blog_1.blog_2014_06_21);
-
-
exports.blogs = blogs;
});
\ No newline at end of file
diff --git a/iblog/blog/blogs_details.js b/iblog/blog/blogs_details.js
new file mode 100644
index 0000000..fd10e2e
--- /dev/null
+++ b/iblog/blog/blogs_details.js
@@ -0,0 +1,14 @@
+/*
+ 博客详情页
+*/
+define(function(require, exports, module){
+ var blogs = {};
+
+ var blog_2 = require('./2014-06-24.js');
+ var blog_1 = require('./2014-06-21.js'); //取得外界exs -> 调用exs的blog
+
+ blogs['blog_2014_06_24'] = blog_2.blog_2014_06_24;
+ blogs['blog_2014_06_21'] = blog_1.blog_2014_06_21;
+
+ exports.blogs = blogs;
+});
\ No newline at end of file
diff --git a/iblog/blog/blogs_link.js b/iblog/blog/blogs_link.js
new file mode 100644
index 0000000..0867ef6
--- /dev/null
+++ b/iblog/blog/blogs_link.js
@@ -0,0 +1,25 @@
+/*
+ 集合所有的博客的链接
+*/
+
+define(function(require, exports, module){
+ var blogs = [];
+ var blog_2 = require('./2014-06-24.js');
+ var blog_1 = require('./2014-06-21.js');
+
+
+ blogs.push(createObj(blog_2.blog_2014_06_24));
+ blogs.push(createObj(blog_1.blog_2014_06_21));
+
+ function createNewObj = function(obj){
+ return {
+ id: obj.id,
+ title: obj.title,
+ blog_tags: obj.blog_tags,
+ blog_time: obj.blog_time
+ };
+ }
+
+
+ exports.blogs = blogs;
+});
\ No newline at end of file
diff --git a/iblog/css/main.css b/iblog/css/main.css
index 17a9c48..c60dedc 100644
--- a/iblog/css/main.css
+++ b/iblog/css/main.css
@@ -35,6 +35,14 @@ body{
color: #EEEEEE;
}
+.title_a{
+ color: #2F9BD7;
+ font-size: 23px;
+ font-weight: bold;
+ margin-bottom: 10px;
+ cursor: pointer;
+}
+
.footer{
width: 950px;
margin: 0 auto;
diff --git a/iblog/js/article.js b/iblog/js/article.js
index 2c397f3..33762d4 100644
--- a/iblog/js/article.js
+++ b/iblog/js/article.js
@@ -3,12 +3,17 @@
*/
$(function(){
- seajs.use('./blog/blogs.js', function(exports){
- var blogs = exports.blogs;
- createBlogs(blogs, 100);
+ seajs.use('./blog/blogs_details.js', function(exports){
+ var url = window.location.search;
+ var id = url.split('id=')[1];
+
+ var blog = exports.blogs[id];
+ var bs = [];
+ bs.push(blog);
+ createBlog(bs, 100);
});
- function createBlogs(blogs, n){
+ function createBlog(blogs, n){
var blogs = blogs;
var num = n > blogs.length ? blogs.length:n;
var element = $('#showblog');
diff --git a/iblog/js/list.js b/iblog/js/list.js
new file mode 100644
index 0000000..e69de29
diff --git a/iblog/list.html b/iblog/list.html
new file mode 100644
index 0000000..0911ed7
--- /dev/null
+++ b/iblog/list.html
@@ -0,0 +1,72 @@
+
+
+
+ vczero的博客
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file