<commit_before><template>
  <nav id=sidebar class=behavior_1 
          :class="{'sidebar-image': sidebarUrl !== ''}"
          :style="{ 
            'background-image': sidebarUrl 
            ? 'url(' + sidebarUrl + ')' : '',
            'transition': sidebarUrl ? option.sidebarMoveCss: ''
          }">
    <div class=wrap>
      <div class=profile>
        <a href="/"> 
          <img :src="logoUrl" 
            :alt="siteInfo.title.value">
        </a> 
        <span :style="{ 'color': option.sidebarFontColor || '' }" >{{siteInfo.title.value}}</span>
      </div>
      <ul class="buttons">
        <li v-for="menu in option.menu">
          <router-link 
            :style="{ 'color': option.sidebarFontColor || '' }"  
            :to="{ path: menu.url }" :title="menu.label"> <i class="iconfont" :class="'icon-' + menu.option"></i> <span>{{menu.label}}</span></router-link>
        </li>
      </ul>
      <ul class="buttons">
        <li>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.githubUrl.value"
            rel="nofollow" target="_blank" :href="'https://github.com/'+siteInfo.githubUrl.value"><i class="iconfont icon-github-v" title="GitHub"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.weiboUrl.value" 
            rel="nofollow" target="_blank" :href="siteInfo.weiboUrl.value"><i class="iconfont icon-twitter-v" title="Twitter"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" href="/rss.xml"><i class="iconfont icon-rss-v" title="RSS"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.siteUrl.value"
            target=_blank :href="'https://www.google.com/webhp#newwindow=1&safe=strict&q=site:' + siteInfo.siteUrl.value"><i class="iconfont icon-search" title="Search"></i></a>
        </li>
      </ul>
    </div>
  </nav>
</template>

<script>
import mixin from '../mixin/image'

export default {
  metaInfo () {
    const {
      title: { value: title },
      description: { value: description },
      keywords: { value: keywords },
      faviconUrl: { value: favicon }
    } = this.siteInfo
    return {
      title,
      titleTemplate: `%s - ${title}`,
      meta: [
        { name: 'charset', content: 'UTF-8' },
        { name: 'description', content: description },
        { name: 'keywords', content: keywords },
        { name: 'viewport', content: 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' }
      ],
      link: [
        { rel: 'icon', href: favicon },
        { rel: 'alternate', type: 'application/rss+xml', title: 'RSS 2.0', href: '/rss.xml' }
      ]
    }
  },
  mixins: [mixin],
  preFetch (store, { path, params, query }) {
    return Promise.all([store.dispatch('FETCH_OPTIONS'), store.dispatch('FETCH_FIREKYLIN')])
  }
}
</script>
 
<style>
@import '../assets/css/icon.css';
@import '../assets/css/article.css';
@import '../assets/css/base.css';
@import '../assets/css/footer.css';
@import '../assets/css/header.css';
@import '../assets/css/highlight.css';
@import '../assets/css/pagination.css';<commit_msg>[前端-前台] 手机浏览器访问时增加touch icon<commit_after><template>
  <nav id=sidebar class=behavior_1 
          :class="{'sidebar-image': sidebarUrl !== ''}"
          :style="{ 
            'background-image': sidebarUrl 
            ? 'url(' + sidebarUrl + ')' : '',
            'transition': sidebarUrl ? option.sidebarMoveCss: ''
          }">
    <div class=wrap>
      <div class=profile>
        <a href="/"> 
          <img :src="logoUrl" 
            :alt="siteInfo.title.value">
        </a> 
        <span :style="{ 'color': option.sidebarFontColor || '' }" >{{siteInfo.title.value}}</span>
      </div>
      <ul class="buttons">
        <li v-for="menu in option.menu">
          <router-link 
            :style="{ 'color': option.sidebarFontColor || '' }"  
            :to="{ path: menu.url }" :title="menu.label"> <i class="iconfont" :class="'icon-' + menu.option"></i> <span>{{menu.label}}</span></router-link>
        </li>
      </ul>
      <ul class="buttons">
        <li>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.githubUrl.value"
            rel="nofollow" target="_blank" :href="'https://github.com/'+siteInfo.githubUrl.value"><i class="iconfont icon-github-v" title="GitHub"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.weiboUrl.value" 
            rel="nofollow" target="_blank" :href="siteInfo.weiboUrl.value"><i class="iconfont icon-twitter-v" title="Twitter"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" href="/rss.xml"><i class="iconfont icon-rss-v" title="RSS"></i></a>
          <a class="inline" :style="{'color': option.sidebarFontColor || ''}" 
            v-if="siteInfo.siteUrl.value"
            target=_blank :href="'https://www.google.com/webhp#newwindow=1&safe=strict&q=site:' + siteInfo.siteUrl.value"><i class="iconfont icon-search" title="Search"></i></a>
        </li>
      </ul>
    </div>
  </nav>
</template>

<script>
import mixin from '../mixin/image'

export default {
  metaInfo () {
    const {
      title: { value: title },
      description: { value: description },
      keywords: { value: keywords },
      faviconUrl: { value: favicon }
    } = this.siteInfo
    return {
      title,
      titleTemplate: `%s - ${title}`,
      meta: [
        { name: 'charset', content: 'UTF-8' },
        { name: 'description', content: description },
        { name: 'keywords', content: keywords },
        { name: 'viewport', content: 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' }
      ],
      link: [
        { rel: 'icon', href: favicon },
        { rel: 'apple-touch-icon', href: favicon},
        { rel: 'alternate', type: 'application/rss+xml', title: 'RSS 2.0', href: '/rss.xml' }
      ]
    }
  },
  mixins: [mixin],
  preFetch (store, { path, params, query }) {
    return Promise.all([store.dispatch('FETCH_OPTIONS'), store.dispatch('FETCH_FIREKYLIN')])
  }
}
</script>
 
<style>
@import '../assets/css/icon.css';
@import '../assets/css/article.css';
@import '../assets/css/base.css';
@import '../assets/css/footer.css';
@import '../assets/css/header.css';
@import '../assets/css/highlight.css';
@import '../assets/css/pagination.css';
{'fraction_non_alphanumeric': 0.20657492354740062, 'fraction_numerical': 0.0024464831804281344, 'mean_word_length': 2.6685361749859786, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '236414', 'n_tokens_mistral': 2175, 'n_tokens_neox': 2104, 'n_words': 373}