update tags for pages | fix bugs

This commit is contained in:
hi-caicai 2016-02-19 22:28:08 +08:00
parent d713b295f2
commit 27f06bb034
10 changed files with 56 additions and 46 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.DS_Store
.DS_Store

View File

@ -3,4 +3,4 @@ html
title Not Found title Not Found
+load('/template/style/css/style.scss') +load('/template/style/css/style.scss')
.page_404 .page_404
p 404 Not Foundvar assert = require("assert") p 404 Not Found

View File

@ -3,7 +3,7 @@ block content
.autopagerize_page_element:.content .autopagerize_page_element:.content
.about.animated.fadeInDown .about.animated.fadeInDown
h3 是我 h3 是我
p 生活的花匠,互联网的裁缝,理想的士兵 p 对,你现在看到的这个家伙,就是我,设计湿,当得了视觉,撸的起交互,还能偷偷改几行代码~
h3 自嘲 h3 自嘲
p p
| 经常嬉笑自嘲,假装不靠谱. | 经常嬉笑自嘲,假装不靠谱.
@ -14,11 +14,8 @@ block content
| 热爱我的职业是这辈子最幸福的事情,虽挖过的坑比填的坑还多,但乐此不疲. | 热爱我的职业是这辈子最幸福的事情,虽挖过的坑比填的坑还多,但乐此不疲.
h3 玩儿 h3 玩儿
p p
| 玩,什么都玩,拼命的玩!喜欢接触新鲜玩意 | 玩什么都玩拼命的玩新鲜每一天人称“app疯子”手机内多达300多app来回摆弄拍的照片不怎么样却老喜欢强迫别人拿去当壁纸
h3 直白 h3 硬广
p
| 不会拐弯抹角,不会阿谀奉承!
h3 硬广
p p
| 如果需要老博客主题,请访问:http://old.cai-cai.me | 如果需要老博客主题,请访问:http://old.cai-cai.me
p p
@ -29,9 +26,4 @@ block content
a(href="http://anatole.cai-cai.me") 点我点我~ a(href="http://anatole.cai-cai.me") 点我点我~
h3 联系 h3 联系
p p
| 任何问题欢迎给我发邮件hi#cai-cai.me #=@或者twitter上@我~~ | 任何问题欢迎给我发邮件hi#cai-cai.me #=@),或者@我~~
br
p
| 也可以用
a(href="https://telegram.me/hicaicai") Telegram
| 联系我

View File

@ -20,17 +20,17 @@ html
+get_resource("blog_basic.css") +get_resource("blog_basic.css")
+load('/template/style/css/style.scss') +load('/template/style/css/style.scss')
body body
.sidebar .sidebar.animated.fadeInDown
.logo-title .logo-title
.title.animated.fadeInDown .title
img(src="/template/style/images/logo@2x.png",style="width:127px;") img(src="/template/style/images/logo@2x.png",style="width:127px;")
h3(title="") h3(title="")
a(href="https://www.caicai.me") {{ site.title }} a(href="/") {{ site.title }}
if site.raw_content if site.raw_content
.description.animated.fadeInDown .description
p= '%s' % site.raw_content[:100] p= '%s' % site.raw_content[:100]
ul.social-links.animated.fadeInDown ul.social-links
if site.configs.twitter if site.configs.twitter
li li
a(href="https://twitter.com/{{site.configs.twitter}}") a(href="https://twitter.com/{{site.configs.twitter}}")
@ -41,7 +41,7 @@ html
i.fa.fa-instagram i.fa.fa-instagram
if site.configs.dribbble if site.configs.dribbble
li li
a(href="https://dribbble.com/{{site.configs.dribbble}}") a(href="https://dribbbble.com/{{site.configs.dribbble}}")
i.fa.fa-dribbble i.fa.fa-dribbble
if site.configs.weibo if site.configs.weibo
li li

7
index+tags.jade Executable file
View File

@ -0,0 +1,7 @@
from mixins import make_post, make_pager
extends base.jade
block content
.autopagerize_page_element:.content
for post in posts
+make_post(post, is_detail=False)
+make_pager('Newer Posts', 'Older Posts')

View File

@ -17,6 +17,10 @@ mixin make_post(post, is_detail=False)
if site.configs.disqus if site.configs.disqus
i.fa.fa-comment-o i.fa.fa-comment-o
a(href="{{post.url}}#disqus_thread") Comments a(href="{{post.url}}#disqus_thread") Comments
if post.tags
i.fa.fa-tag
for tag in post.tags
a.tag(href='/tags/{{tag}}')  {{tag}}
mixin make_pager(pre_text, next_text) mixin make_pager(pre_text, next_text)
.pagination .pagination
ul.clearfix ul.clearfix

BIN
style/.DS_Store vendored

Binary file not shown.

BIN
style/css/.DS_Store vendored

Binary file not shown.

View File

@ -6,7 +6,7 @@ html {
body { body {
color: rgba(0, 0, 0, 0.5); color: rgba(0, 0, 0, 0.5);
font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","STHeitiSC-Light","Microsoft YaHei","微软雅黑",Arial,sans-serif; font-family: 'PingHei', 'PingFang SC', Helvetica Neue, 'Work Sans', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif;
font-size: 15px; font-size: 15px;
width: 100%; width: 100%;
margin: 0 auto 30px auto; margin: 0 auto 30px auto;
@ -35,7 +35,7 @@ a:link, a:visited {
} }
a:hover, a:active { a:hover, a:active {
color: #555; color: #4786D6;
} }
@ -157,7 +157,7 @@ a:hover, a:active {
color:#5A5A5A; color:#5A5A5A;
} }
a:hover{ a:hover{
color:#464545; color:#4786D6;
} }
a.current{ a.current{
color:#5A5A5A; color:#5A5A5A;
@ -259,6 +259,9 @@ a:hover, a:active {
a { a {
color: #565654; color: #565654;
} }
a:hover{
color: #4786D6;
}
} }
} }
@ -299,7 +302,9 @@ a:hover, a:active {
text-decoration: none; text-decoration: none;
letter-spacing: 1px; letter-spacing: 1px;
color: #5f5f5f; color: #5f5f5f;
font-family: Open Sans; &:hover{
text-decoration: underline;
}
} }
} }
@ -310,22 +315,17 @@ a:hover, a:active {
letter-spacing: 1px; letter-spacing: 1px;
color: #4786D6; color: #4786D6;
} }
a:hover{
color: #2F69B3;
}
h3{ h3{
color: #5F5F5F; color: #5F5F5F;
font-size:22px; font-size:22px;
font-weight:600; font-weight:600;
font-family: Open Sans;
} }
h4 { h4 {
color: #5F5F5F; color: #5F5F5F;
font-size:16px; font-size:16px;
font-family: Open Sans;
}
img {
min-width: 100%;
} }
} }
@ -343,16 +343,20 @@ a:hover, a:active {
float: left; float: left;
font-size: 12px; font-size: 12px;
.date{ .date{
margin-right: 5px; margin-right: 10px;
} }
} }
a { a {
text-decoration: none; text-decoration: none;
color: #bbbbbb; color: #bbbbbb;
padding-right: 10px;
&:hover{
color: #4786D6;
}
} }
i{ i{
margin-right: 3px; margin-right: 6px;
} }
} }
@ -469,6 +473,9 @@ a:hover, a:active {
a { a {
color: #A6A6A6; color: #A6A6A6;
} }
a:hover{
color: #4786D6;
}
span{ span{
} }
.by_farbox{ .by_farbox{
@ -511,7 +518,7 @@ a:hover, a:active {
color: #8F8F8F; color: #8F8F8F;
&:hover{ &:hover{
color: #464545; color: #4786D6;
} }
} }
@ -520,11 +527,8 @@ a:hover, a:active {
} }
/* share */ /* share */
.share{ .share{
padding-left: 30px; margin: 0px 30px;
display: flex; display: inline-flex;
width: 100%;
height: 60px;
display: -webkit-box;
} }
.evernote{ .evernote{
width: 32px; width: 32px;
@ -722,13 +726,13 @@ a.btn {
} }
@media screen and (max-width: 414px) { @media screen and (max-width: 960px) {
.sidebar { .sidebar {
width: 100%; width: 100%;
position:absolute; position:absolute;
border-right:none; border-right:none;
.logo-title{ .logo-title{
padding-top: 100px; padding-top: 120px;
.title{ .title{
@ -742,19 +746,20 @@ a.btn {
} }
} }
.page-top{ .page-top{
display: none; width: 100%
}
.post-title h3{
line-height: 1.6;
} }
.content{ .content{
margin-top: 360px; margin-top: 420px;
width: 100%; width: 100%;
overflow: hidden;
} }
.footer{ .footer{
display: none; display: none;
} }
.share{ .share{
display: flex; display: grid;
display: -webkit-box;
} }
} }