Skip to content

Commit

Permalink
feat: chage menu postion
Browse files Browse the repository at this point in the history
  • Loading branch information
wmui committed Jun 26, 2023
1 parent 98fc6cd commit 854c519
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/view/theme/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<%} else if(router === 'setting') {%>
设置-<%= site.nickname %>
<%} else if(router === 'board') {%>
留言板-<%= site.nickname %>
留言板-<%= site.nickname %>
<%} else { %>
404
<%}%>
Expand Down Expand Up @@ -117,16 +117,15 @@
<% for(var i = 0; i < menus.length; i++) {%>
<li><a href="/post?id=<%=menus[i].id%>" class="nav-item"><%= menus[i].title %></a></li>
<%}%>
<li><a href="/board" class="nav-item">大吐槽</a></li>
<% if(loginStatus.status === 1){%>
<li><a href="/draft" class="nav-item">草稿箱</a></li>
<%}%>
<li><a href="/setting" class="nav-item">设置</a></li>
<%}%>
<% if(loginStatus.status === 1){%>
<li><a href="/setting" class="nav-item">设置</a></li>
<li><a href="/draft" class="nav-item">草稿箱</a></li>
<%}%>
<li><a href="/board" class="nav-item">留言板</a></li>
<li><a href="/editor" class="nav-item">新随笔</a></li>
</ul>

<div class="search">
<input type="search" class="ui-input" placeholder="搜索" autofocus />
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/view/theme/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ rel="stylesheet"
href="/public/lib/markdown/cherry-markdown.min.css"
/>
<style>
.post {
font-size: 16px;
color: #333;
}
.post-footer {
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit 854c519

Please sign in to comment.