mirror of
https://github.com/extreme-tech-seminar/extreme-tech-seminar.github.io.git
synced 2024-11-14 19:19:34 +00:00
Doing away with categories and tags
This commit is contained in:
parent
03639f18a4
commit
5fa62c821d
3 changed files with 1 additions and 83 deletions
|
@ -10,21 +10,8 @@ layout: default
|
|||
<span>
|
||||
Posted:
|
||||
<a href="{{ page.url }}">{{ page.date | date:"%Y-%m-%d" }}</a>
|
||||
by <em>{{ page.author }}</em>
|
||||
</span>
|
||||
<span><i class="fa fa-ellipsis-v"></i></span>
|
||||
<span>
|
||||
Categories:
|
||||
{% for cat in page.categories %}
|
||||
<a href="/categories.html#{{ cat }}-ref">{{ cat }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
<span><i class="fa fa-ellipsis-v"></i></span>
|
||||
<span>
|
||||
Tags:
|
||||
{% for tag in page.tags %}
|
||||
<a href="/tags.html#{{ tag }}-ref">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
<span>
|
||||
</div>
|
||||
<div class="post-entry">
|
||||
{{ content }}
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
title: 文章分类
|
||||
---
|
||||
|
||||
<div class="page-categories">
|
||||
<ul class="list-group">
|
||||
{% for cat in site.categories %}
|
||||
<li class="list-group-item">
|
||||
<span class="badge">{{ cat[1].size }}</span>
|
||||
<a href="#{{ cat[0] }}-ref" class="category-heading" title="分类:{{ cat[0] }}" >{{ cat[0] }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="page-blank">
|
||||
{% for cat in site.categories %}
|
||||
<div class="page-list">
|
||||
<h3 id="{{ cat[0] }}-ref"> {{ cat[0] }}</h3>
|
||||
<ul>
|
||||
{% for post in cat[1] %}
|
||||
<li>
|
||||
<span>{{ post.date | date:"%Y年%m月%d日" }} </span>
|
||||
<a href="{{ post.url }}">{{post.title}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
37
tags.html
37
tags.html
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
title: 文章标签
|
||||
---
|
||||
|
||||
<div class="page-tags" id="page-tagcloud">
|
||||
{% for tag in site.tags %}
|
||||
<a href="#{{ tag[0] }}-ref" rel={{ tag[1].size }} title="标签:{{ tag[0] }}">{{ tag[0] }}<span>{{ tag[1].size }}</span></a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="page-blank">
|
||||
{% for tag in site.tags %}
|
||||
<div class="page-list">
|
||||
<h3 id="{{ tag[0] }}-ref"> {{ tag[0] }}</h3>
|
||||
<ul>
|
||||
{% for post in tag[1] %}
|
||||
<li>
|
||||
<span>{{ post.date | date:"%Y年%m月%d日" }} </span>
|
||||
<a href="{{ post.url }}">{{post.title}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<script src="/static/js/jquery.tagcloud.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$.fn.tagcloud.defaults = {
|
||||
size: {start: 13, end: 30, unit: 'px'},
|
||||
color: {start: '#1982d1', end: '#f00'}
|
||||
};
|
||||
$(document).ready(function() {
|
||||
$('#page-tagcloud a').tagcloud();
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in a new issue