feat: add links page

This commit is contained in:
XPoet 2020-05-13 14:47:03 +08:00
parent 725add39bc
commit 1354c49c3a
4 changed files with 38 additions and 0 deletions

12
layout/links.ejs Normal file
View File

@ -0,0 +1,12 @@
<div class="fade-in-down-animation">
<div class="links-container">
<div class="links-content markdown-body">
<%- page.content %>
</div>
<div class="links-comments">
<% if (page.comments) { %>
<%- partial('_partial/comments/comment') %>
<% } %>
</div>
</div>
</div>

View File

@ -25,7 +25,11 @@
<% } else if (page.title == 'about') { %> <% } else if (page.title == 'about') { %>
<%- partial('about') %> <%- partial('about') %>
<% } else if (page.title == 'links') { %>
<%- partial('links') %>
<% } %> <% } %>
</div> </div>
<% if (theme.magic.enable && theme.magic.sidebar.enable) { %> <% if (theme.magic.enable && theme.magic.sidebar.enable) { %>

View File

@ -0,0 +1,21 @@
@require "./common/magic-theme.styl";
.links-container {
background: var(--background-color);
magic-container(1.005, 1.01, 30px);
.links-content {
h1, h2, h3, h4, h5, h6 {
&:first-child {
margin-top: 0;
}
}
margin-bottom: 30px;
}
}

View File

@ -11,6 +11,7 @@
@import "layout/_partial/archive-list.styl" @import "layout/_partial/archive-list.styl"
@import "layout/_partial/footer.styl" @import "layout/_partial/footer.styl"
@import "layout/about.styl" @import "layout/about.styl"
@import "layout/links.styl"
@import "layout/_partial/article-meta-info.styl" @import "layout/_partial/article-meta-info.styl"
@import "layout/home-content.styl" @import "layout/home-content.styl"
@import "layout/archive-content.styl" @import "layout/archive-content.styl"