Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
QiShaoXuan committed Mar 6, 2020
1 parent 8dbd7c3 commit 3807eb0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
5 changes: 5 additions & 0 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

IP="111.229.162.122"

scp -r ../dist root@$IP:/site/css_tricks
10 changes: 1 addition & 9 deletions docs/.vuepress/components/comment/comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,7 @@
body.appendChild(script);
script.onload = () => {
const commentConfig = {
clientID: "9eb624fa10d287c81385",
clientSecret: "20e11930755d795b3230fd0b535b7ddacda5ad54",
repo: "css_tricks",
owner: "QiShaoXuan",
admin: ["QiShaoXuan"],
id: location.pathname,
distractionFreeMode: false
};
const commentConfig = require('../../../../private-config')['gitalk'];
const gitalk = new Gitalk(commentConfig);
gitalk.render("gitalk-container");
}
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
title: "CSS Tricks",
description: "some CSS tricks, 一些常用的 CSS 样式, 一点 CSS 技巧",
dest: "./dist",
base: "/css_tricks/",
// base: "/css_tricks/",
head: [
["link", { rel: "icon", href: "/images/favicon.png" }],
["meta", { name: "theme-color", content: "#00adb5" }],
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/plugins/comment/initComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default function initComment() {
body.appendChild(script);
script.onload = () => {
const commentConfig = Object.assign(CONFIG.gitalk, {
// id: `/css_tricks${location.pathname}`
id: location.pathname
id: `/css_tricks${location.pathname}`
// id: location.pathname
});
const gitalk = new Gitalk(commentConfig);
gitalk.render("gitalk-container");
Expand Down
4 changes: 2 additions & 2 deletions middle.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<body>
<article>
<p>CSS Tricks 已经迁移至<a
href="http://css-tricks.neatbang.com/">这里</a>,如果你已收藏当前网址,请在跳转后更新
href="http://css-tricks.neatbang.com/">这里</a>如果你已收藏当前网址,请在跳转后更新
</p>
<p>CSS Tricks has been migrated <a
href="http://css-tricks.neatbang.com/">here</a>, please update after the jump if you have a favorite current url
Expand All @@ -68,7 +68,7 @@
</body>
<script>
const secondSpans = document.querySelectorAll('.second')
countdown(5, secondSpans, () => {
countdown(8, secondSpans, () => {
window.location.href = 'http://css-tricks.neatbang.com/'
})

Expand Down

0 comments on commit 3807eb0

Please sign in to comment.