Permalink
Browse files

update

  • Loading branch information...
1 parent 41179bb commit e56e4996d749b0d038fe30c7ee962940c6aa1e40 @maplebeats committed Apr 30, 2012
Showing with 75 additions and 20 deletions.
  1. +5 −18 README
  2. +7 −0 _includes/json.html
  3. +39 −1 _layouts/default.html
  4. +3 −1 index.html
  5. +13 −0 post.json
  6. +5 −0 stylesheets/index.css
  7. +3 −0 stylesheets/main.css
View
23 README
@@ -1,18 +1,5 @@
-这是maplebeats.com的源码文件
-
- _layouts   --jeykll模版
- _posts   --文章
- images --模版中使用的图片
- javascripts --js
- stylesheets --CSS
- 404.textile --404
- CHAME --域名
- _config.yml --jeykll配置文件
- anime.textile --动漫列表
- atom.xml --RSS
- index.html --首页
- killie.html --IE跳转页面
- links.html --友链页面
- me.html --about me
- search.html --搜索页面
- sitemap.xml --网页地图
+Theme is licensed under the GPLv3
+Posts are licensed under the C.C BY-SA 3.0
+Animate.css is licensed under the ☺ license.
+Dual licensed under the MIT and GPL licenses.
+thanks!
View
@@ -0,0 +1,7 @@
+<div class="content">
+ <ul class="posts"></ul>
+ <div class="postbutton">
+ <input id="up" type="button" value="不能按" />
+ <input id="down" type="button" value="下一页" />
+</div>
+</div>
View
@@ -64,9 +64,47 @@ <h2>ACG才是我们唯一的归宿! Σ(っ°д°)っ</h2>
</section>
</div>
</footer>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
{% for js in page.javascript %}
<script src="{{ js }}"></script>
{% endfor %}
+ {% if page.Isindex %}
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $.getJSON("/post.json",function(data){
+ var content = ''
+ var i=0,down=5,up=10
+ while(i<5)
+ {
+ content += "<li>" + "<h2 class=\"title\">" + "<a href=" + data[i].url + ">" + data[i].title + "</a></h2>" + "<p>" + data[i].summary + "</p>"
+ i += 1
+ }
+ $(".posts").append(content);
+ $("#down").click(function(){
+ var post = ''
+ for(down;down<up;down++)
+ {
+ post += "<li>" + "<h2 class=\"title\">" + "<a href=" + data[down].url + ">" + data[down].title + "</a></h2>" + "<p>" + data[down].summary + "</p>"
+ }
+ up = down + 5
+ $(".posts").html(post);
+ });
+ $("#up").click(function(){
+ if(down!=5){
+ var post = ''
+ up-=5
+ down-=5
+ for(down;down<=up-5;down++)
+ {
+ post += "<li>" + "<h2 class=\"title\">" + "<a href=" + data[down].url + ">" + data[down].title + "</a></h2>" + "<p>" + data[down].summary + "</p>"
+ }
+ down-=5
+ $(".posts").html(post);
+ }
+ });
+ });
+ });
+ </script>
+ {% endif %}
</body>
</html>
View
@@ -1,6 +1,7 @@
---
layout: default
title: maplebeats's blog
+Isindex: true
javascript:
- /javascripts/jquery.jplayer.min.js
- /javascripts/jquery.grab.js
@@ -12,5 +13,6 @@
- /stylesheets/circle.skin/circle.player.css
- /stylesheets/index.css
---
-{% include post.html %}
+<noscript>{% include post.html %}</noscript>
{% include music.html %}
+{% include json.html %}
View
@@ -0,0 +1,13 @@
+---
+layout: nil
+---
+
+[{% for post in site.posts %}
+ {
+ "title":"{{post.title}}",
+ "summary":"{{post.summary}}",
+ "url":"{{site.url}}{{post.url}}",
+ "date":"{{post.date|date_to_string}}"
+ }{% if forloop.last == false %},{% endif %}
+{% endfor %}
+]
View
@@ -13,3 +13,8 @@
margin: 0 auto;
text-align: center;
}
+.posts h2 {
+}
+.postbutton {
+ text-align: center;
+}
View
@@ -51,6 +51,9 @@ ins,a { text-decoration:none; }
min-height: 500px;
margin: 0 auto 20px auto;
}
+site h1,h3 {
+ font-size: 130%;
+}
/*-----------footer--------*/
footer {
background: rgba(128,128,128,0.3);

0 comments on commit e56e499

Please sign in to comment.