Skip to content

Commit

Permalink
简化页面
Browse files Browse the repository at this point in the history
  • Loading branch information
JiYouMCC committed May 20, 2024
1 parent 0992f09 commit acea729
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
9 changes: 3 additions & 6 deletions tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ <h4><a id="tag_{{ tagitems[1] }}" href="#list_{{ tagitems[1] }}" title="{{ tagit
<table class="table table-striped">
<thead>
<tr>
<th></th><th></th><th class="text-center page_list_item">分类</th><th class="text-center page_list_item">评论</th>
<th></th><th></th><th class="text-center page_list_item">分类</th>
</tr>
</thead>
<tbody>
{% for post in tag[1] %}
<tr>
<td><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}</td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d"}}</td>
<td class="text-center">{% for cat in post.categories %}
{% if cat != 'sticky' %}
<span><a class="label label-default" href="/type#{{ cat }}">{{ cat }}</a></span>
{% endif %}
{% endfor %}</td>
<td class="text-center">{% if post.issue %}<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge ds-thread-count"></span>{% endif %}</td>
</tr>
{% endfor %}
</tbody>
Expand All @@ -50,6 +49,4 @@ <h4><a id="tag_{{ tagitems[1] }}" href="#list_{{ tagitems[1] }}" title="{{ tagit
</div>
<script type="text/javascript">
$("#tag_" + decodeURI(location.hash.replace("#",""))).tab('show');
</script>
<script src="{{ site.baseurl }}/js/git-comments-count.js"></script>
<script src="{{ site.baseurl }}/js/old-comments.js"></script>
</script>
28 changes: 6 additions & 22 deletions type.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<table class="table table-striped">
<thead>
<tr>
<th class="page_list_item"></th><th></th><th></th><th class="text-center page_list_item">分类</th><th class="text-center page_list_item">评论</th>
<th class="page_list_item"></th><th></th><th></th>
</tr>
</thead>
<tbody>
Expand All @@ -31,11 +31,7 @@
<td>
<a href="{{ post.url }}">{{ post.title }}</a>
</td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}</td>
<td class="text-center">{% for cat in post.categories %}<span><a class="label label-default" href="/type#{{ cat }}">{{ cat }}</a></span>{% endfor %}</td>
<td class="text-center">
{% if post.issue %}<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge ds-thread-count"></span> {% endif %}
</td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d"}}</td>
</tr>
{% endif %}
{% endfor %}
Expand All @@ -44,9 +40,7 @@
<tr>
<td class="text-center"></td>
<td><a href="{{ post.url }}">{{ post.title }}</a></td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}</td>
<td class="text-center">{% for cat in post.categories %}<span><a class="label label-default" href="/type#{{ cat }}">{{ cat }}</a></span>{% endfor %}</td>
<td class="text-center">{% if post.issue %}<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge ds-thread-count"></span>{% endif %}</td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d"}}</td>
</tr>
{% endunless %}
{% endfor %}
Expand All @@ -60,23 +54,15 @@
<table class="table table-striped">
<thead>
<tr>
<th class="page_list_item"></th><th></th><th></th><th class="text-center page_list_item">分类</th><th class="text-center page_list_item">评论</th>
<th class="page_list_item"></th><th></th><th></th>
</tr>
</thead>
<tbody>
{% for post in cat[1] %}
<tr>
<td class="text-center">{% if post.is_sticky %}<span class="label label-default">置顶</span>{% endif %}</td>
<td><a href="{{ post.url }}">{{ post.title }}</a></td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}</td>
<td class="text-center">
{% if post.categories.size > 0 %}
{% for cat in post.categories %}
<span><a class="label label-default" href="/type#{{ cat }}">{{ cat }}</a></span>
{% endfor %}
{% endif %}
</td>
<td class="text-center">{% if post.issue %}<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge ds-thread-count"></span>{% endif %}</td>
<td class="page_datetime text-right">{{ post.date | date: "%Y-%m-%d"}}</td>
</tr>
{% endfor %}
</tbody>
Expand All @@ -89,6 +75,4 @@
if (location.hash != "") {
$("#tag_" + decodeURI(location.hash.replace("#",""))).tab('show');
}
</script>
<script src="{{ site.baseurl }}/js/git-comments-count.js"></script>
<script src="{{ site.baseurl }}/js/old-comments.js"></script>
</script>

0 comments on commit acea729

Please sign in to comment.