Sha256: edd943b6f03f63e17c66765ba0a51fbfb3562c6ffed2fcf771844241b4155c58

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

---
layout: master
title: Larry Cai's blog on the github
full_posts: 3
---

<div class='home_box' id='home_left'>
  <h2><a href='http://feeds.feedburner.com/~u/14174549791849888941' class='float-right'><img src='/images/subscribe-icon.gif' alt='Subscribe'/></a
  >最新博客 (<a href='/blog.html'>更多</a>)</h2>
  
  {% for post in site.posts limit:page.full_posts %}
  <div class='post'>
    <span class='date'>{{post.date | date_to_string}}</span>
    <h1><a href='{{post.url}}'>{{post.title}}</a></h1>
    <div class='body'>{{post.content}}</div>
    <a href='{{post.url}}#disqus_thread'>View Comments</a>
  </div>
  {% endfor %}
</div>

<div class='home_box' id='home_right'>
  
  <h2>联系方式</h2>
  <div class='sidebar'>
    <div class="sidebar-item">
    <dl>
      <dt>邮件:</dt>
      <dd>larry.caiyu AT gmail.com </dd>

      <dt>微博:</dt>
      <dd><a href="http://weibo.com/larrycaiyu">http://weibo.com/larrycaiyu</a></dd>

    </dl>

    </div>
  </div>
  <h2>Open Source</h2>
  <div id='github-projects'></div>  
</div>

<script type="text/javascript" charset="utf-8">
  $.githubUser('<%= project %>', function(data) {
    $('#github-projects').html('');
    
    var repos = data.user.repositories;
    repos.sort(function(a,b) {
      return b.watchers - a.watchers;
    });
    
    $(repos.slice(0,6)).each(function() {
      $('#github-projects').append("\
<div class='repo'>\
  <h3><a href='" + this.url + "'>" + this.name + "</a></h3>\
  <span class='desc'>"+this.description+"</span>\
</div>");
    });
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mkblog-0.0.4 templates/index.html.erb