Skip to content

Commit

Permalink
three backup
Browse files Browse the repository at this point in the history
  • Loading branch information
MUYIio committed Dec 15, 2020
1 parent cd8d093 commit 1dc2645
Show file tree
Hide file tree
Showing 97 changed files with 519 additions and 172 deletions.
22 changes: 13 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
## Source: https://github.com/hexojs/hexo/

# Site
title: Tyzhao`s Blog
subtitle: godxiaolong
description: 派斯学院| C++|Java | Linux操作系统
keywords: "操作系统的编译原理与实现"
title: Shawlon`s Blog
subtitle: Yshawlon
description: C++ | LeetCode | Algorithm
keywords: "被动学习"
author: Tyzhao
language: zh-CN
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://muyiio.com
url: http://118.25.27.52.cn
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
Expand Down Expand Up @@ -113,13 +113,14 @@ theme: matery
deploy:
- type: git
repository:
github: [email protected]:MUYIio/hexo-themes-matery.git
#coding: [email protected]:godxiaolon/godxiaolon.git
github: [email protected]:MUYIio/MUYIio.github.io.git
#coding:
#repo:
branch: master
- type: baidu_url_submitter

live2d:
enable: true
enable: false
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
Expand All @@ -139,8 +140,11 @@ live2d:

baidu_url_submit:
count: 100
host:
host: www.yshawlon.cn
token:
path: baidu_urls.txt

#Daovoice DaoCloud 在线沟通
daovoice: true
daovoice_app_id: #“用户ID” //注意:用户ID不能是其他人的,要填写自己的,可以在刚刚复制的代码中找到用户id.

1 change: 0 additions & 1 deletion hexo-themes-matery
Submodule hexo-themes-matery deleted from 779ebe
24 changes: 12 additions & 12 deletions package-lock.json

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

156 changes: 156 additions & 0 deletions scripts/loading-pages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
/* global hexo */
"use strict";
hexo.extend.filter.register('after_render:html', function (htmlContent) {
const injectHead =
`<style type="text/css" lang="css">
#loading-container{
position: fixed;
top: 0;
left: 0;
min-height: 100vh;
width: 100vw;
z-index: 9999;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #FFF;
text-align: center;
/* loader页面消失采用渐隐的方式*/
-webkit-transition: opacity 1s ease;
-moz-transition: opacity 1s ease;
-o-transition: opacity 1s ease;
transition: opacity 1s ease;
}
.loading-image{
width: 120px;
height: 50px;
transform: translate(-50%);
}
.loading-image div:nth-child(2) {
-webkit-animation: pacman-balls 1s linear 0s infinite;
animation: pacman-balls 1s linear 0s infinite
}
.loading-image div:nth-child(3) {
-webkit-animation: pacman-balls 1s linear .33s infinite;
animation: pacman-balls 1s linear .33s infinite
}
.loading-image div:nth-child(4) {
-webkit-animation: pacman-balls 1s linear .66s infinite;
animation: pacman-balls 1s linear .66s infinite
}
.loading-image div:nth-child(5) {
-webkit-animation: pacman-balls 1s linear .99s infinite;
animation: pacman-balls 1s linear .99s infinite
}
.loading-image div:first-of-type {
width: 0;
height: 0;
border: 25px solid #49b1f5;
border-right-color: transparent;
border-radius: 25px;
-webkit-animation: rotate_pacman_half_up .5s 0s infinite;
animation: rotate_pacman_half_up .5s 0s infinite;
}
.loading-image div:nth-child(2) {
width: 0;
height: 0;
border: 25px solid #49b1f5;
border-right-color: transparent;
border-radius: 25px;
-webkit-animation: rotate_pacman_half_down .5s 0s infinite;
animation: rotate_pacman_half_down .5s 0s infinite;
margin-top: -50px;
}
@-webkit-keyframes rotate_pacman_half_up {0% {transform: rotate(270deg)}50% {transform: rotate(1turn)}to {transform: rotate(270deg)}}
@keyframes rotate_pacman_half_up {0% {transform: rotate(270deg)}50% {transform: rotate(1turn)}to {transform: rotate(270deg)}}
@-webkit-keyframes rotate_pacman_half_down {0% {transform: rotate(90deg)}50% {transform: rotate(0deg)}to {transform: rotate(90deg)}}
@keyframes rotate_pacman_half_down {0% {transform: rotate(90deg)}50% {transform: rotate(0deg)}to {transform: rotate(90deg)}}
@-webkit-keyframes pacman-balls {75% {opacity: .7}to {transform: translate(-100px, -6.25px)}}
@keyframes pacman-balls {75% {opacity: .7}to {transform: translate(-100px, -6.25px)}}
.loading-image div:nth-child(3),
.loading-image div:nth-child(4),
.loading-image div:nth-child(5),
.loading-image div:nth-child(6){
background-color: #49b1f5;
width: 15px;
height: 15px;
border-radius: 100%;
margin: 2px;
width: 10px;
height: 10px;
position: absolute;
transform: translateY(-6.25px);
top: 25px;
left: 100px;
}
.loading-text{
margin-bottom: 20vh;
text-align: center;
color: #2c3e50;
font-size: 2rem;
box-sizing: border-box;
padding: 0 10px;
text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
@media only screen and (max-width: 500px) {
.loading-text{
font-size: 1.5rem;
}
}
.fadeout {
opacity: 0;
filter: alpha(opacity=0);
}
/* logo出现动画 */
@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}
@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);}}
</style>
<script>
(function () {
const loaded = function(){
setTimeout(function(){
const loader = document.getElementById("loading-container");
loader.className="fadeout" ;//使用渐隐的方法淡出loading page
// document.getElementById("body-wrap").style.display="flex";
setTimeout(function(){
loader.style.display="none";
},1000);
},1000);//强制显示loading page 1s
};
loaded();
})()
</script>`;
const injectBody = `
<div id="loading-container">
<p class="loading-text"></p>
<div class="loading-image">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>`;
if (/<\/head>/gi.test(htmlContent)) {
let lastIndex = htmlContent.lastIndexOf('</head>');
htmlContent = htmlContent.substring(0, lastIndex) + injectHead + htmlContent.substring(lastIndex, htmlContent.length);
}
if (/<body>/gi.test(htmlContent)) {
let index = htmlContent.indexOf('<body>');
htmlContent = htmlContent.substring(0, index) + injectBody + htmlContent.substring(index, htmlContent.length);
}
return htmlContent;
}, 1);
2 changes: 1 addition & 1 deletion source/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
muyiio.com
www.yshawlon.cn
26 changes: 24 additions & 2 deletions source/_data/friends.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"name": "Hexo+Github个人博客搭建美化",
"name": "Hexo博客搭建",
"url": "https://zhuanlan.zhihu.com/c_1215655729367113728",
"title": "访问主页",
"introduction": "我的知乎专栏,欢迎大家关注",
"introduction": "我的知乎博客搭建专栏,欢迎大家关注",
"avatar": "/medias/avatars/myzhihu.png"
},
{
Expand All @@ -12,5 +12,27 @@
"title": "访问主页",
"introduction": "我的CSDN主页,欢迎大家关注!",
"avatar": "/medias/avatars/csdn.ico"
},
{
"name": "陈YF的博客",
"url": "https://blog.cyfan.top",
"title": "访问主页",
"introduction": "一个在互联网角落挣扎的小小博客,很小很小。",
"avatar": "https://blog.cyfan.top/pic/BLOGER.jpg"
},
{
"name": "DylanLi",
"url": "https://cloudguest.cn",
"title": "前去学习",
"introduction": "人在少年,梦中不觉,醒后要归去。",
"avatar": "https://my-markdown-picbed.oss-cn-qingdao.aliyuncs.com/DylanBlog/logo2.jpg"
},
{
"name": "框架师",
"url": "https://www.mobaijun.com",
"title": "前去学习",
"introduction": "墨白",
"avatar": "https://www.mobaijun.com/medias/avatar.jpg"
}

]
Loading

0 comments on commit 1dc2645

Please sign in to comment.