<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 在github pages上搭建好octopress博客之后,博客的基本功能就能使用了。如果想自己定制也是没问题的,octopress有较详尽的官方文档,原则上有问题求助官方即可:<a href="http://octopress.org/help/" style="color:rgb(65,131,196); text-decoration:initial">octopress-help</a>。官方没有包纳的也可以去询问<a href="http://stackoverflow.com/questions/tagged/octopress" style="color:rgb(65,131,196); text-decoration:initial">stackoverflow</a>。 当然,中文的看起来总会省事儿点。我做了如下一些总结;)</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 不会ruby的童鞋特别注意:配置_config.yml的过程中特别注意,配置项『:』后要留空格,否则会报错。</p>
<h2 style="margin:1em 0px 15px; line-height:1.7; font-size:2em; padding:0px; position:relative; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(238,238,238); color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif"> <a class="anchor" href="https://github.com/biaobiaoqi/biaobiaoqi.github.com/blob/source/source/_posts/2013-07-10-decorate-octopress.markdown#1" name="1" style="color:rgb(65,131,196); text-decoration:initial; display:block; padding-left:30px; margin-left:-30px; position:absolute; top:0px; left:0px; bottom:0px"></a>1.装饰边栏</h2>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 以增加豆瓣展示框为例。参加正反反长大哥的博客<a href="http://icodeit.org/2012/10/how-to-embed-douban-show-in-your-octopress-site/" style="color:rgb(65,131,196); text-decoration:initial">How to Embed Douban-Show in Your Octopress Site</a></p>
<h2 style="margin:1em 0px 15px; line-height:1.7; font-size:2em; padding:0px; position:relative; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(238,238,238); color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif"> <a class="anchor" href="https://github.com/biaobiaoqi/biaobiaoqi.github.com/blob/source/source/_posts/2013-07-10-decorate-octopress.markdown#2" name="2" style="color:rgb(65,131,196); text-decoration:initial; display:block; padding-left:30px; margin-left:-30px; position:absolute; top:0px; left:0px; bottom:0px"></a>2.增加国内的第三方评论</h2>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 虽然octopress内置的评论系统也很不错,但国内的第三方评论更接地气,将微博、人人等各方SNS都纳入旗下。比较出名的有友言、多说。</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 这里以唐巧大哥的博文<a href="http://blog.devtang.com/blog/2012/02/10/setup-blog-based-on-github/" style="color:rgb(65,131,196); text-decoration:initial">《象写程序一样写博客:搭建基于github的博客》</a>为例,他使用的是友言。</p>
<h2 style="margin:1em 0px 15px; line-height:1.7; font-size:2em; padding:0px; position:relative; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(238,238,238); color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif"> <a class="anchor" href="https://github.com/biaobiaoqi/biaobiaoqi.github.com/blob/source/source/_posts/2013-07-10-decorate-octopress.markdown#3" name="3" style="color:rgb(65,131,196); text-decoration:initial; display:block; padding-left:30px; margin-left:-30px; position:absolute; top:0px; left:0px; bottom:0px"></a>3.定制域名</h2>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 如果你拥有自己的域名,可以CNAME到github pages上。以我的配置为例(我的域名为<code style="font-family:Consolas,'Liberation Mono',Courier,monospace; font-size:12px; margin:0px 2px; padding:0px 5px; border:1px solid rgb(221,221,221); background-color:rgb(248,248,248); white-space:nowrap">biaobiaoqi.me</code>)。</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 1.在octopress的source目录下创建CNAME文件,并输入新域名:biaobiaoqi.com</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 2.在域名管理中,创建或修改A记录,指向207.97.227.245这个地址。</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 3.创建CNAME记录,www.biaobiaoqi.com -> biaobiaoqi.github.com</p>
<p style="margin-top:15px; margin-bottom:15px; color:rgb(51,51,51); font-family:Helvetica,arial,freesans,clean,sans-serif; font-size:15px; line-height:25px"> 这一过程可能 |
|