Update tag.html
This commit is contained in:
parent
c2cc3beb43
commit
224c59fc20
@ -65,24 +65,7 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div style="margin-bottom: 16px;">{{ blogBase['subTitle'] }}</div>
|
<div style="margin-bottom: 16px;">{{ blogBase['subTitle'] }}</div>
|
||||||
<nav class="SideNav border">
|
<nav class="SideNav border"></nav>
|
||||||
|
|
||||||
{% for num in postListJson -%}
|
|
||||||
<a class="SideNav-item d-flex flex-items-center flex-justify-between" href="{{ postListJson[num]['postUrl']|e }}">
|
|
||||||
<div class="d-flex flex-items-center">
|
|
||||||
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop{{ postListJson[num]['top'] }}" d=""></path>
|
|
||||||
</svg>
|
|
||||||
<span>{{ postListJson[num]['postTitle']|e }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="listLabels">
|
|
||||||
{% if postListJson[num]['commentNum']>0 %}<span class="Label" style="background-color:{{ blogBase['commentLabelColor'] }}">{{ postListJson[num]['commentNum'] }}</span>{% endif %}
|
|
||||||
<span class="Label" style="background-color:{{ postListJson[num]['labelColor'] }}">{{ postListJson[num]['label'] }}</span>
|
|
||||||
<span class="Label" style="background-color:{{ postListJson[num]['dateLabelColor'] }}">{{ postListJson[num]['createdDate'] }}</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
</nav>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
@ -130,7 +113,7 @@ function showList(jsonData){
|
|||||||
|
|
||||||
let title=document.createElement("span");
|
let title=document.createElement("span");
|
||||||
title.setAttribute("class","listTitle");
|
title.setAttribute("class","listTitle");
|
||||||
title.innerHTML=jsonData["postListJson"][i]['title'];
|
title.innerHTML=jsonData["postListJson"][i]['postTitle'];
|
||||||
center.appendChild(svg);
|
center.appendChild(svg);
|
||||||
center.appendChild(title);
|
center.appendChild(title);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user