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

8
static/style.css

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

Loading…
Cancel
Save