diff --git a/_config.yml b/_config.yml index ebb2939..8c7593b 100644 --- a/_config.yml +++ b/_config.yml @@ -22,7 +22,12 @@ catalog: true # donate donate: true -# gitment +# comment +# you can set gitment or uyan + +comment: gitment + +# gitment config gitment_owner: yanm1ng gitment_repo: yanm1ng.github.io gitment_oauth_id: 0f87e490e00ee3fd87ef diff --git a/layout/page.ejs b/layout/page.ejs index 13a02fd..05b88e4 100644 --- a/layout/page.ejs +++ b/layout/page.ejs @@ -43,15 +43,17 @@

扫描二维码,分享此文章

- <% if (theme.gitment_owner) { %> + <% if (theme.comment === 'gitment') { %>
- <% } else { %> + <% } else if (theme.comment === 'uyan') { %>
+ <% } else { %> + <% } %> diff --git a/source/css/_partial/footer.styl b/source/css/_partial/footer.styl index 4729a2f..62cbc8d 100644 --- a/source/css/_partial/footer.styl +++ b/source/css/_partial/footer.styl @@ -8,4 +8,5 @@ font-size: 0.9em .copyright - color: color-gray \ No newline at end of file + color: color-gray + line-height: 1.5 \ No newline at end of file diff --git a/source/css/style.styl b/source/css/style.styl index abbc651..2b4764b 100644 --- a/source/css/style.styl +++ b/source/css/style.styl @@ -115,7 +115,7 @@ h2.article-head box-sizing: border-box top: 0 left: 0 - padding: 80px 20px 25px 20px + padding: 100px 20px 25px 20px text-align: center position: relative background-repeat: no-repeat @@ -164,6 +164,7 @@ h2.article-head .post-article margin-top: 0 + width: 100% .money-like padding: 2em 0 3em @@ -241,6 +242,9 @@ h2.article-head padding: 5px box-shadow: 0 0 1px color-shadow +#uyan_frame + margin-top: 20px + .image-view-wrap position: fixed top: 0