code: function getSitesHtml(sites, groupsize) {
    var html = '';
    var groupsize = getType(groupsize) === 'number' && groupsize !== 0 ? groupsize : 0;
    for (var i = 0, length = sites.length; i < length; i++) {
      if (groupsize && i % groupsize === 0) {
        html += '<div class="soshm-group group' + ((i / groupsize) + 1) + '">';
      }
  
      var key = sites[i];
      var siteObj = sitesObj[key];
      if (siteObj) {
        html += templateStr.
          replace(/\{\{site\}\}/g, key)
          .replace(/\{\{icon\}\}/g, siteObj.icon)
          .replace(/\{\{name\}\}/g, siteObj.name);
      } else {
        console.warn('site [' + key + '] not exist.');
      }
  
      if (groupsize && (i % groupsize === groupsize - 1 || i === length - 1)) {
        html += '</div>';
      }
    }
    return html;
  }
docs: 获取分享站点的html字符串
  @param  {Array} sites      [需要展示的站点数组]
  @param  {Number} groupsize [分组的大小，不传表示不分组]
  @return {String}           [html字符串]