Browse Source

fix aside show

pull/16/head
afc163 10 years ago
parent
commit
1c15c225de
  1. 2
      site/templates/component-aside.html
  2. 8
      static/style.css

2
site/templates/component-aside.html

@ -5,7 +5,7 @@
{%- set items = resource.pages|find_category(category) %}
<li>
<h4>{{category}}</h4>
<ul >
<ul class="{%- if category === post.meta.category %}aside-list-show{%- endif %}">
{%- for item in items %}
<li class="{%- if item.title === post.title %}current{%- endif %}">
<a href="{{permalink_url(item)}}">

8
static/style.css

@ -455,16 +455,16 @@ footer ul li > a {
cursor: pointer;
transition: background .5s, border .5s;
border-left: 3px solid transparent;
position: relative;
z-index: 1;
background: #F9F9F9;
position: relative;
z-index: 1;
background: #F9F9F9;
}
.aside-container li>ul {
display: none;
}
.aside-container li>ul.show {
.aside-container li>ul.aside-list-show {
display: block;
}

Loading…
Cancel
Save