8000 fix blog layout (#1112) · vuejs/v2.vuejs.org@19d8fa7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19d8fa7

Browse files
sabrinaluochrisvfritz
authored andcommitted
fix blog layout (#1112)
1 parent 75988a3 commit 19d8fa7

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

themes/vue/layout/post.ejs

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<div class="sidebar blog">
2-
<ul class="main-menu">
3-
<%- partial('partials/main_menu', { context: 'nav' }) %>
4-
</ul>
5-
<div class="list">
6-
<h2>
7-
Recent Posts
8-
<a href="<%- url_for("/atom.xml") %>" target="_blank" style="vertical-align: middle; margin-left: 5px">
9-
<img src="<%- url_for("/images/feed.png") %>" style="width:15px;height:15px">
10-
</a>
11-
</h2>
12-
<ul style="padding:0">
13-
<% site.posts.sort('date', -1).limit(10).each(function (post) { %>
14-
<li>
15-
<a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- post.title %></a>
16-
</li>
17-
<% }) %>
2+
<div class="sidebar-inner">
3+
<ul class="main-menu">
4+
<%- partial('partials/main_menu', { context: 'nav' }) %>
185
</ul>
6+
<div class="list">
7+
<h2>
8+
Recent Posts
9+
<a href="<%- url_for("/atom.xml") %>" target="_blank" style="vertical-align: middle; margin-left: 5px">
10+
<img src="<%- url_for("/images/feed.png") %>" style="width:15px;height:15px">
11+
</a>
12+
</h2>
13+
<ul style="padding:0">
14+
<% site.posts.sort('date', -1).limit(10).each(function (post) { %>
15+
<li>
16+
<a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- post.title %></a>
17+
</li>
18+
<% }) %>
19+
</ul>
20+
</div>
1921
</div>
2022
</div>
2123
<div class="content with-sidebar blog post">

0 commit comments

Comments
 (0)
0