stdout customization

前面介绍完了deployment,接下来该轮到customization了,这个也同样重要。我目前所能想到的需要customize的地方主要有5个地方,都集中在两个文件,并没有想象中的复杂,且听我一一道来:

[page title]

Location: RAILS_ROOT/app/views/layouts/application.html.erb, line 6
<title>$ cat /dev/stdin >> /dev/stdout | tee stdout.samsonw.info</title>

change to whatever text you want.

[header title,sub-title]

Location: RAILS_ROOT/app/views/activities/index.html.erb, line 2, 3
<div id="title" class="grid_24">$ cat /dev/stdin >> /dev/stdout | tee stdout.samsonw.info</div>
<div id="sub_title" class="grid_24">Don't Panic: fatal system error, core dump file not generated ...</div>

change to whatever text you want.

[footer]

Location: RAILS_ROOT/app/views/activities/index.html.erb, line 23~27
<div id="copyright" class="grid_21">
    <p>卢瑟出品,必属废品&trade;&nbsp;&nbsp;Copyright &copy; 2010&ndash;2011 by <span class="losers">"Losers"</span> Corporation.&nbsp;&nbsp;All Rights Already <span class="losers">Lost</span>.</p>
</div>
<div class="grid_3">
    <div id="curation">Curated by <a id="avatar" href="http://blog.samsonis.me/" target="_blank"><img src="/images/avatar.jpg" alt="Avatar" title="Samson Wu"></a></div>
</div>

change to whatever text you want.

[Disqus]
Disqus register site和profile,然后拿到universal的javascript code,替换我的javascript code,具体位置在:

Location: RAILS_ROOT/app/views/layouts/application.html.erb, line 27~42

[Google Analytics]
同Disqus类似,到Google Analytics注册添加site,然后获得javascript code,替换默认的javascript code,位置在:

Location: RAILS_ROOT/app/views/layouts/application.html.erb, line 12~22

Enjoy and have fun!

历史上的今天:

Related posts:

Trackbacks for this post

  1. Tiny LifeStream widget available on sunng.info United States WordPress Unknow Os

Got something to say? Go for it!

使用新浪微博登陆