Skip to content

Commit

Permalink
del archive module, it's not mature
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Sun committed Feb 1, 2016
1 parent 71e2ed1 commit 6dbec89
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 44 deletions.
9 changes: 4 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
menu:
博客: /
归档: /archives/
微博: http://weibo.com/sunchongsheng
github: https://github.com/pinggod
rss: /atom.xml
Blog: /
Weibo: http://weibo.com/sunchongsheng
GitHub: https://github.com/pinggod
Rss: /atom.xml

favicon: /favicon.png
logo: /favicon.png
Expand Down
12 changes: 0 additions & 12 deletions layout/archive.jade

This file was deleted.

15 changes: 3 additions & 12 deletions layout/mixins/post.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@ mixin postInfo(item)
.post-time
!= full_date(item.date, 'll')

mixin postList()
ul.archive.post-list
- page.posts.each(function(item) {
li.post-list-item
article.post-block
h2.post-title
a.post-title-link(href= url_for(item.path))
!= item.title
+postInfo(item)
- })

//- Index Page
mixin posts()
ul.home.post-list
- page.posts.each(function(item) {
- page.posts.each(function (item) {
li.post-list-item
article.post-block
h2.post-title
Expand All @@ -28,6 +18,7 @@ mixin posts()
a.read-more(href=item.path)!= __('more')
- })

//- Post Page
mixin post(item)
.post
article.post-block
Expand Down
2 changes: 2 additions & 0 deletions layout/partial/head.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ title
= config.title
block description
meta(name="description", content= config.description ? config.description : 'A Blog Powered By Hexo')

meta(name="viewport", content="width=device-width, initial-scale=1")
link(rel="short icon", href=url_for(theme.favicon))
link(rel="stylesheet", href=url_for("css/apollo.css"))

if theme.googlefonts
link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600" type='text/css')
else
Expand Down
2 changes: 1 addition & 1 deletion source/css/apollo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions source/scss/_partial/archive-post-list.scss

This file was deleted.

1 change: 0 additions & 1 deletion source/scss/apollo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@import "_partial/base";
@import "_partial/header";
@import "_partial/home-post-list";
@import "_partial/archive-post-list";
@import "_partial/post";
@import "_partial/footer";
@import "_partial/mq";
Expand Down

0 comments on commit 6dbec89

Please sign in to comment.