layout: default title: Tags permalink: /tag/ icon: tags type: page


<div class=“page clearfix”>

<div class="left">
    <h1>{{page.title}}</h1>
    <hr>
    {% assign alltags = '' | split: '' %}
    {% for tag in site.tags %}
      {% assign alltags = alltags | push: tag[0]%}
    {% endfor %}
    {% assign sortedtags = alltags | sort %}
    <ul>
    {% for tag in sortedtags %}
      <h2 id="{{ tag }}">{{ tag }}</h2>
      {% for post in site.tags[tag] %}
        <li>
            <time>
            {{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
            </time>
            <a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>

            {% include category.html %}
            {% include tag.html %}
        </li>
      {% endfor %}
    {% endfor %}
    </ul>

</div>
<button class="anchor"><i class="fa fa-anchor"></i></button>
<div class="right">
    <div class="wrap">

        <div class="side content" id="search-div">
            {% include sidebar-search.html %}
        </div>
        <!-- Content -->
        <div class="side content">
            <div>
                Content
            </div>
            <ul id="content-side" class="content-ul">
                {% for tag in sortedtags %}
                <li>
                    <a data-scroll href="#{{ tag }}">
                        {{ tag }} ({{ site.tags[tag].size }})
                    </a>
                </li>
                {% endfor %}

            </ul>
        </div>
        <!-- 其他div框放到这里 -->
        <!-- <div class="side">bbbb</div> -->
    </div>
</div>

</div> <script src=“{{ ”/assets/js/pageContent.js “ | prepend: site.baseurl }}” charset=“utf-8”></script>