1 Star 0 Fork 0

钟振升/fwxperson

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tags.html 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
钟振升 提交于 2021-04-18 09:50 . 1
---
layout: main
title: Tags
permalink: /tags/
---
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
<section class="blog-tags">
<h1>Tags in Blog</h1>
<ul class="tags">
<!-- cycles through tag list and creates header row of all tags used in site with accompanying per-tag counts...-->
{% for this_word in tag_words %}
<li ><a href="#{{ this_word | cgi_escape }}" class="tag">{{ this_word }} <span>({{ site.tags[this_word].size }})</span></a></li>
{% endfor %}
</ul>
<!--cycles through tag list and creates subheader for each tag name...-->
{% for this_word in tag_words %}
<h2 id="{{ this_word | cgi_escape }}">{{ this_word }}</h2>
<!-- lists all posts corresponding to specific tag...-->
{% for post in site.tags[this_word] %}{% if post.title != null %}
<div class="tag-list">
<span><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></span>
<small><span>| {{ post.date | date_to_string }}</span></small>
</div>
{% endif %}{% endfor %}
{% endfor %}
</section>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Michael07/fwxperson.git
git@gitee.com:Michael07/fwxperson.git
Michael07
fwxperson
fwxperson
master

搜索帮助