chore: optimize the project directory structure
This commit is contained in:
parent
979e7261f5
commit
9304f9ed25
|
@ -27,3 +27,4 @@ top: TOP
|
|||
read_more: Read more
|
||||
wordcount: Words
|
||||
min2read: Mins
|
||||
changelog: Changelog
|
||||
|
|
|
@ -27,3 +27,4 @@ top: 顶置
|
|||
read_more: 阅读全文
|
||||
wordcount: 字
|
||||
min2read: 分钟
|
||||
changelog: 更新日志
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<div class="fade-in-down-animation">
|
||||
<div class="about-container">
|
||||
<div class="about-content markdown-body">
|
||||
<div class="empty-page-container">
|
||||
<div class="empty-page-content markdown-body">
|
||||
<%- page.content %>
|
||||
</div>
|
||||
<div class="about-comments">
|
||||
<div class="empty-page-comments">
|
||||
<% if (page.comment) { %>
|
||||
<%- partial('_partial/comment/comment') %>
|
||||
<% } %>
|
|
@ -13,10 +13,8 @@
|
|||
title = __('category') + ': ' + page.category;
|
||||
} else if (is_tag()) {
|
||||
title = __('tag') + ': ' + page.tag;
|
||||
} else if (page.title === 'about') {
|
||||
title = __('about');
|
||||
} else if (page.title === 'links') {
|
||||
title = __('links');
|
||||
} else {
|
||||
title = __(page.title);
|
||||
}
|
||||
%>
|
||||
<title>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<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.comment) { %>
|
||||
<%- partial('_partial/comment/comment') %>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -37,14 +37,10 @@
|
|||
<% } else if (page.title === 'tag' || page.title === 'tags') { %>
|
||||
<%- partial('_partial/tagcloud') %>
|
||||
|
||||
<% } else if (page.title === 'about') { %>
|
||||
<%- partial('about') %>
|
||||
|
||||
<% } else if (page.title === 'link' || page.title === 'links') { %>
|
||||
<%- partial('links') %>
|
||||
<% } else { %>
|
||||
<%- partial('_partial/empty-page') %>
|
||||
|
||||
<% } %>
|
||||
|
||||
</main>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@require "./common/magic-theme.styl";
|
||||
@require "../common/magic-theme.styl";
|
||||
|
||||
.about-container {
|
||||
.empty-page-container {
|
||||
|
||||
background: var(--background-color);
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
|||
magic-container(1.001, 1.005, 20px);
|
||||
}
|
||||
|
||||
.about-content {
|
||||
.empty-page-content {
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
|
@ -26,4 +26,4 @@
|
|||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
@require "./common/magic-theme.styl";
|
||||
|
||||
.links-container {
|
||||
|
||||
background: var(--background-color);
|
||||
|
||||
magic-container(1.005, 1.01, 30px);
|
||||
|
||||
+ils-tablet() {
|
||||
magic-container(1.001, 1.005, 20px);
|
||||
}
|
||||
|
||||
.links-content {
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
margin-bottom: 30px;
|
||||
|
||||
+ils-tablet() {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,9 +11,8 @@
|
|||
@import "layout/_partial/archive-list.styl"
|
||||
@import "layout/_partial/footer.styl"
|
||||
@import "layout/_partial/paginator.styl"
|
||||
@import "layout/about.styl"
|
||||
@import "layout/_partial/empty-page.styl"
|
||||
@import "layout/category-list.styl"
|
||||
@import "layout/links.styl"
|
||||
@import "layout/_partial/article-meta-info.styl"
|
||||
@import "layout/home-content.styl"
|
||||
@import "layout/archive-content.styl"
|
||||
|
|
Loading…
Reference in New Issue