tags.html 2.0 KB
Newer Older
L
Liberxue 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
---
title: 全部标签
description: "标签分类的博文"
---
<div class="main-content archive-page clearfix">
  {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tags_list = site_tags | split:',' | sort %}
    <h3 class="post-title" itemprop="name headline">标签分类的博文--点击自动查找相应`Tags`</h3>
											 <div class="post-data">
			 						  <div class="post-tags">
  {% for item in (0..site.tags.size)  %}{% unless forloop.last %}
    {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
			<a href="#{{ this_word }}">{{ this_word }} <span>({{ site.tags[this_word].size }})个</span>
								</a>
		{% endunless %}{% endfor %}					
		</div>	
	</div>		
	</div>	
<div class="main-content archive-page" >
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
	{% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %}
     <div id="{{ this_word }}" class="post-lists" id="{{ this_word }}">
    <div class="categorys-item">
         <div class="categorys-title">
  {{ this_word }} : {{ site.tags[this_word].size }}
   </div>
    {% for post in site.tags[this_word] %}{% if post.title != null %}
    			<div class="post-list-item" >
					<div class="post-list-item-container">
						<div class="item-label">
							<div class="item-title" >
								<a href="{{ site.url }}{{ post.url }}" data-hover="{{ post.title }}">{{ post.title }}</a>
							</div>
							<div class="item-meta clearfix">
								<div class="item-meta-date">
								<a href="/archives#{{ post.date | date: "%Y"}}" data-hover="{{ post.date | date: "%F %H:%M:%S "}}">	{{ post.date | date: "%F %H:%M:%S "}}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/archives#{{ post.date | date: "%Y"}}" data-hover="{{ post.category }}">{{ post.category }}</a>   
								</div>
							</div>
						</div>
					</div>
        </div>  
          {% endif %}{% endfor %}
   	</div>
	</div>

{% endunless %}{% endfor %}
</div>