WebTech

Travel Map via Google Map Engine

尝试了一下Google Map Engine Lite, 用最新的Google Map UI设计的,但似乎现在个人定制化还不是那么的强

反正我希望最后我能够做出一个map,然后点击哪个景点就可以出来那个点的我拍的照片或者blog, 这样多cool呀

for detail please check this url

在Octopress添加新浪微博按钮 札记

其实很简单的,只是对网络技术忘得差不多了,所以花了一点时间

Prepare

  • http://open.weibo.com/sharebutton 去申请一个 share button, 申请之后看到有WBML方法, 和JS方法。 我这里选择的是WBML方法

Steps

  • source/_includes/head.html 里面修改,添加xmlns:
1
2
3
- <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+ <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en" xmlns:wb="http://open.weibo.com/wb"><!--<![endif]-->

  • </head> 之前添加script语句:
    1
    2
    
    + <!-- load sina weibo share -->
    + <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=" type="text/javascript" charset="utf-8"></script>
    
  • source/_includes/post/sharing.html 里面添加Button
1
2
3
{ % if site.weibo_share % }
    <wb:share-button relateuid="xxxxxxxx" title="Share a blog  <<[object Object]>>" ></wb:share-button>
{ % endif % }

这里site.weibo_share 是用于在 _config.yml 上修改的,relateduid 就是你新浪微博的id, 当然这是自动生成的,另外title参数 请看 这个列表, 我这里就加了一个title