",
"license": "MIT"
->>>>>>> dev
}
\ No newline at end of file
diff --git a/scripts/filters/post-lazyload.js b/scripts/filters/post-lazyload.js
deleted file mode 100644
index c0a6624..0000000
--- a/scripts/filters/post-lazyload.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-const url_for = require('hexo-util').url_for.bind(hexo);
-
-function lazyProcess(htmlContent) {
- var bg = url_for(hexo.theme.config.lodding_bg.post);
- return htmlContent.replace(/
/gi, (str, p1, p2, p3) => {
- if (/data-src/gi.test(str)) {
- return str;
- }
- if (/class="(.*?)"/gi.test(str)){
- str = str.replace(/class="(.*?)"/gi, (classStr, p1) => {
- return classStr.replace(p1, `${p1} lazyload`);
- })
- str = str.replace(p2, `${bg}`)
- return str.replace('>', ` data-src="${p2}">`);
- }
- str = str.replace(p2, `${bg}`)
- return str.replace(p3, ` class="lazyload" data-src="${p2}" ${p3}`);
- });
-}
-
-var processPost = function(data) {
- if (!hexo.theme.config.lazyload.enable) return;
- data.content = lazyProcess.call(this, data.content);
- return data;
-};
-
-hexo.extend.filter.register('after_post_render', processPost);
\ No newline at end of file
diff --git a/scripts/helpers/list-archives.js b/scripts/helpers/list-archives.js
deleted file mode 100644
index 534d4fe..0000000
--- a/scripts/helpers/list-archives.js
+++ /dev/null
@@ -1,103 +0,0 @@
-"use strict";
-
-hexo.extend.helper.register("list_archives", function(options = {}) {
- const { config } = this;
- const archiveDir = config.archive_dir;
- const { timezone } = config;
- const lang = this.page.lang || this.page.language || config.language;
- let { format } = options;
- const type = options.type || "monthly";
- const { style = "list", transform, separator = ", " } = options;
- const showCount = Object.prototype.hasOwnProperty.call(options, "show_count")
- ? options.show_count
- : true;
- const order = options.order || -1;
- const limit = 8;
- let result = "";
-
- var more_button;
- if (lang === "zh-CN") {
- more_button = "查看更多";
- } else if (lang === "zh-TW") {
- more_button = "查看更多";
- } else {
- more_button = "More";
- }
-
- if (!format) {
- format = type === "monthly" ? "MMMM YYYY" : "YYYY";
- }
-
- const posts = this.site.posts.sort("date", order);
- if (!posts.length) return result;
-
- const data = [];
- let length = 0;
-
- posts.forEach(post => {
- // Clone the date object to avoid pollution
- let date = post.date.clone();
-
- if (timezone) date = date.tz(timezone);
- if (lang) date = date.locale(lang);
-
- const year = date.year();
- const month = date.month() + 1;
- const name = date.format(format);
- const lastData = data[length - 1];
-
- if (!lastData || lastData.name !== name) {
- length = data.push({
- name,
- year,
- month,
- count: 1
- });
- } else {
- lastData.count++;
- }
- });
-
- const link = item => {
- let url = `${archiveDir}/${item.year}/`;
-
- if (type === "monthly") {
- if (item.month < 10) url += "0";
- url += `${item.month}/`;
- }
-
- return this.url_for(url);
- };
-
- result += `";
- return result;
-});
diff --git a/source/css/_global/index.styl b/source/css/_global/index.styl
index 1ba9649..834e24a 100644
--- a/source/css/_global/index.styl
+++ b/source/css/_global/index.styl
@@ -192,13 +192,10 @@ img:not([src])
.img-alt
margin: -.5rem 0 .5rem
-<<<<<<< HEAD
-=======
color: $font-black
&:hover
text-decoration: none !important
->>>>>>> dev
// hexo tag video
.video-container
@@ -222,11 +219,7 @@ img:not([src])
font-size: 20px
.post-ad
-<<<<<<< HEAD
- margin: 2rem 0 !important
-=======
margin: 2rem 0
->>>>>>> dev
.ad_height
display: block !important
@@ -239,11 +232,6 @@ img:not([src])
#nav
animation: nav-effect 1s
-<<<<<<< HEAD
-// #page-header
-// animation: header-effect 1s
-=======
->>>>>>> dev
#site_title,
#site_subtitle
animation: titlescale 1s
@@ -284,14 +272,10 @@ if hexo-config('avatar.effect') == true
animation: tocsidebarRtoL .4s
.sidebar-toc__progress
-<<<<<<< HEAD
- animation: tocsidebarRtoL .7s
-=======
animation: tocsidebarRtoL .6s
->>>>>>> dev
.sidebar-toc__content
- animation: tocsidebarRtoL .9s
+ animation: tocsidebarRtoL .7s
@keyframes scroll-down-effect
0%
@@ -315,21 +299,6 @@ if hexo-config('avatar.effect') == true
opacity: 1
transform: translateY(0)
-<<<<<<< HEAD
-@keyframes header-effect
- 0%
- opacity: 0
-
- 60%
- opacity: 0
- transform: translateY(-30px)
-
- 100%
- opacity: 1
- transform: translateY(0)
-
-=======
->>>>>>> dev
@keyframes headerNoOpacity
0%
transform: translateY(-50px)
diff --git a/source/css/_layout/head.styl b/source/css/_layout/head.styl
index a8d9f3d..8a92ab5 100644
--- a/source/css/_layout/head.styl
+++ b/source/css/_layout/head.styl
@@ -246,24 +246,15 @@
content: ''
li
-<<<<<<< HEAD
- padding: 1px 10px
list-style: none
- text-align: center
-=======
- list-style: none
->>>>>>> dev
&:hover
background: $theme-color
a
-<<<<<<< HEAD
-=======
display: inline-block
padding: .3rem .7rem
width: 100%
->>>>>>> dev
color: $font-black
text-shadow: none
@@ -321,13 +312,9 @@
.post-meta-pv-cv
.post-meta__separator:first-child
-<<<<<<< HEAD
- display: none
-=======
display: none
if !hexo-config('busuanzi.page_pv')
.post-meta-commentcount
.post-meta__separator
- display: none
->>>>>>> dev
+ display: none
\ No newline at end of file
diff --git a/source/js/main.js b/source/js/main.js
index cc233ed..8f05040 100644
--- a/source/js/main.js
+++ b/source/js/main.js
@@ -263,29 +263,11 @@ $(function () {
/**
* 代碼收縮
*/
-<<<<<<< HEAD
- const $highlightTools = $('.highlight-tools')
- if (isHighlightShrink === 'true') {
- $highlightTools.append('')
- } else if (isHighlightShrink === 'false') {
- $highlightTools.append('')
- }
-
- $(document).on('click', '.highlight-tools >.code-expand', function () {
- var $table = $(this).parent().next()
- if ($(this).hasClass('code-closed')) {
- $table.css('display', 'block')
- $(this).removeClass('code-closed')
- } else {
- $table.css('display', 'none')
- $(this).addClass('code-closed')
-=======
const $highlightTools = $('.highlight-tools')
if (isHighlightShrink === 'true') {
$highlightTools.append('')
} else if (isHighlightShrink === 'false') {
$highlightTools.append('')
->>>>>>> dev
}
$(document).on('click', '.highlight-tools >.code-expand', function () {
@@ -790,21 +772,5 @@ $(function () {
}
}
})
-<<<<<<< HEAD
- })
-
- function addPhotoFigcaption () {
- var images = $('#article-container img')
- images.each(function (i, o) {
- var $this = $(o)
- if ($this.attr('alt')) {
- var t = $('' + $this.attr('alt') + '
')
- $this.after(t)
- }
- })
}
- if (GLOBAL_CONFIG.isPhotoFigcaption) addPhotoFigcaption()
-=======
- }
->>>>>>> dev
})