玫瑰海岸之行

感觉自己也不小,是时候要结婚,可是每次因为小事而吵架,就对婚姻有一种恐惧!

  • 当我写这边日志的时候,我才发现今天是2015年7月9日;我们在一起的日子刚好有

          一年+一个月+一天
    
  • 上周日在深圳玫瑰海岸,拍了婚纱照;虽然辛苦,但是感觉满足,特别是看到相片;心里还是美滋滋的;纪念一下吧! 拍完婚纱回来的时候,才发现有一件特别惭愧的事情,就是人生中第一次吃了霸王餐; 她靠在我的肩上,我看着她,坐了2个小时的车程,终于回到广州;好吧!特别有意见的一天,是该好好纪念一下-幸福的味道;

婚纱照

Redcarpet和Highlight高亮显示编程语言

语言分类

##java

/**
 * @author John Smith <john.smith@example.com>
 * @version 1.0
*/
package l2f.gameserver.model;

import java.util.ArrayList;

public abstract class L2Character extends L2Object {
  public static final Short ABNORMAL_EFFECT_BLEEDING = 0x0_0_0_1; // not sure

  public void moveTo(int x, int y, int z) {
    _ai = null;
    _log.warning("Should not be called");
    if (1 > 5) {
      return;
    }
  }

  /** Task of AI notification */
  @SuppressWarnings( { "nls", "unqualified-field-access", "boxing" })
  public class NotifyAITask implements Runnable {
    private final CtrlEvent _evt;

    List<String> mList = new ArrayList<String>()

    public void run() {
      try {
        getAI().notifyEvent(_evt, _evt.class, null);
      } catch (Throwable t) {
        t.printStackTrace();
      }
    }
  }
}

使用github和jekyll搭建免费博客

[TOC] # 访问github pages * 点击进入Github pages * 访问jekyll按照页面Jekyll Install # 安装ruby、Bundler、Jekyll

`gem install github-pages`
  • 安装Jekyll的时候特别注意,因为rubygems.org可能别墙了,所以编写Gemfile文件的时候需要修改数据源:具体Gemfile文件为:

    source 'http://ruby.taobao.org/'

    gem 'github-pages'

  • 运行Jekyll

    bundle exec jekyll serve

  • 看到运行启动之后,就可以访问http://localhost:4000 # 绑定自己的域名 访问地址:setup custom domain with Github pages

    vim CNAME

然后再输入

`yourdomain.com`
  • 如果想拥有属于自己的样式,我们可以参考:
  • jekyll网址:jekyll sites
  • 找到github源代码,拷贝复制所有文件夹,之后修改关键字
  • 比如我现在拿Ze3kr代码为例:ze3kr github site
  • 拷贝文件覆盖lonpo.github.io
  • 执行jekyll serve,查看http://localhost:4000

markdown语法

发表一篇新文章,你所需要的就是在_posts文件夹下创建一个新的文件。文件名的命名非常重要。遵循下面的格式:

年-月-日-标题.MARKUP

如下:

2011-12-31-new-years-eve-is-awesome.md
2012-09-12-how-to-write-a-blog.textile

##内容格式 所有博客文章顶部都必须有一段YAML头信息,并且需要按照 YAML 的格式写在两行三虚线之间。如:

---
layout: post
title: 使用github和jekyll搭建免费博客
description: "使用github和jekyll搭建免费博客"
category: github
tags: [github, jekyll, markdown]
comments: true
share: true
---