<commit_before>---
layout: default
---

<div id="home">
   <script src="/static/js/canvas-nest.min.js" ></script>
    <h1></h1>
    <ol class="posts">
    {% for post in paginator.posts %}
      <li>
        <h5 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h5>
        <span class="post-meta">{{ post.date | date: "%b %-d, %Y %H:%m" }}</span>
        <hr class="content-meta" />
        <div class="content-excerpt">{{ post.excerpt }}</div>
      </li>
    {% endfor %}
    </ol>

    <!-- Pagination links -->
    {% if paginator.total_pages > 1 %}
    <ul class="pagination pagination-sm">
      <li><a href="/">First</a></li>

      {% if paginator.previous_page %}
        <li>
          <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a>
        </li>
      {% else %}
        <li class="disabled"><span aria-hidden="true">&laquo;</span></li>
      {% endif %}

      {% for page in (1..paginator.total_pages) %}
        {% if page == paginator.page %}
          <li class="active">
             <a>{{ page }}<span class="sr-only">(current)</span></a>
          </li>
        {% elsif page == 1 %}
          <li><a href="/">{{ page }}</a></li>
        {% else %}
          <li>
            <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
          </li>
        {% endif %}
      {% endfor %}

      {% if paginator.next_page %}
        <li>
          <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a>
        </li>
      {% else %}
        <li class="disabled"><span>&raquo;</span></li>
      {% endif %}

       <li><a href="/page{{ paginator.total_pages }}/">Last</a></li>
    </ul>
    {% endif %}
</div><!-- end #home -->
<commit_msg>修改判断，只有pc端才显示蜂窝<commit_after>--- layout: default ---

<div id="home">
  <script type="text/javascript">
    (function() {
      var userAgentInfo = navigator.userAgent;
      var Agents = ["Android", "iPhone",
        "SymbianOS", "Windows Phone",
        "iPad", "iPod"
      ];
      var flag = true;
      for (var v = 0; v < Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) > 0) {
          flag = false;
          break;
        }
      }
      if(flag){
        document.writeln('<script src="/static/js/canvas-nest.min.js"></script>');
      }
    })();
  </script>
  
  <h1></h1>
  <ol class="posts">
    {% for post in paginator.posts %}
    <li>
      <h5 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h5>
      <span class="post-meta">{{ post.date | date: "%b %-d, %Y %H:%m" }}</span>
      <hr class="content-meta" />
      <div class="content-excerpt">{{ post.excerpt }}</div>
    </li>
    {% endfor %}
  </ol>

  <!-- Pagination links -->
  {% if paginator.total_pages > 1 %}
  <ul class="pagination pagination-sm">
    <li><a href="/">First</a></li>

    {% if paginator.previous_page %}
    <li>
      <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo;</a>
    </li>
    {% else %}
    <li class="disabled"><span aria-hidden="true">&laquo;</span></li>
    {% endif %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %}
    <li class="active">
      <a>{{ page }}<span class="sr-only">(current)</span></a>
    </li>
    {% elsif page == 1 %}
    <li><a href="/">{{ page }}</a></li>
    {% else %}
    <li>
      <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
    </li>
    {% endif %} {% endfor %} {% if paginator.next_page %}
    <li>
      <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&raquo;</a>
    </li>
    {% else %}
    <li class="disabled"><span>&raquo;</span></li>
    {% endif %}

    <li><a href="/page{{ paginator.total_pages }}/">Last</a></li>
  </ul>
  {% endif %}
</div>
<!-- end #home -->
{'fraction_non_alphanumeric': 0.2449748743718593, 'fraction_numerical': 0.004020100502512563, 'mean_word_length': 2.2631147540983605, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1392769', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1391, 'n_words': 286}