Hexo
This commit is contained in:
parent
4d4215231a
commit
47ef91d7a2
|
@ -138,7 +138,7 @@
|
|||
<section class="inner">
|
||||
<section class="inner-main">
|
||||
<div class="post">
|
||||
<article id="post-cld64uboy0000tsgu50tabpcq" class="article article-type-post" itemscope
|
||||
<article id="post-cld66gjjc0000giguaf4a09sr" class="article article-type-post" itemscope
|
||||
itemprop="blogPost">
|
||||
|
||||
<div class="article-inner">
|
||||
|
@ -176,7 +176,12 @@
|
|||
</div>
|
||||
|
||||
<div class="article-entry post-inner-html hairline" itemprop="articleBody">
|
||||
<h2 id="2023-真的来了"><a href="#2023-真的来了" class="headerlink" title="2023 真的来了"></a>2023 真的来了</h2><p>一年很长 仿佛要纪念的很少 细细想来 原来最重要的瞬间 只是遇见你</p>
|
||||
<h1 id="新年快乐"><a href="#新年快乐" class="headerlink" title="新年快乐"></a>新年快乐</h1><p>2023 确实到来咯</p>
|
||||
<p>一年很长 仿佛要纪念的很少</p>
|
||||
<p>细细想来 原来最重要的瞬间 只是遇见你</p>
|
||||
<p>我会永远站在你这边</p>
|
||||
<p>哦 还有六年后的婚礼<br>哈哈哈哈哈</p>
|
||||
<p><img src="https://p.ipic.vip/9dhtcj.png"></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -195,7 +200,7 @@
|
|||
|
||||
|
||||
<section class="share">
|
||||
<div class="share-title">シェア</div>
|
||||
<div class="share-title">分享</div>
|
||||
<a class="share-item" target="_blank"
|
||||
href="https://twitter.com/share?text=新年快乐 - Vvvvv-&url=http%3A%2F%2Flwvvvvv.cn%2F2023%2F01%2F21%2F%25E6%2596%25B0%25E5%25B9%25B4%25E5%25BF%25AB%25E4%25B9%2590%2F">
|
||||
<ion-icon name="logo-twitter"></ion-icon>
|
||||
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 434 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 219 KiB |
1372
css/style.css
1372
css/style.css
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -142,7 +142,12 @@ class="article article-type-post"
|
|||
</header>
|
||||
<div class="article-entry post-inner-html">
|
||||
|
||||
<h2 id="2023-真的来了"><a href="#2023-真的来了" class="headerlink" title="2023 真的来了"></a>2023 真的来了</h2><p>一年很长 仿佛要纪念的很少 细细想来 原来最重要的瞬间 只是遇见你</p>
|
||||
<h1 id="新年快乐"><a href="#新年快乐" class="headerlink" title="新年快乐"></a>新年快乐</h1><p>2023 确实到来咯</p>
|
||||
<p>一年很长 仿佛要纪念的很少</p>
|
||||
<p>细细想来 原来最重要的瞬间 只是遇见你</p>
|
||||
<p>我会永远站在你这边</p>
|
||||
<p>哦 还有六年后的婚礼<br>哈哈哈哈哈</p>
|
||||
<p><img src="https://p.ipic.vip/9dhtcj.png"></p>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
138
js/script.js
138
js/script.js
|
@ -1,138 +0,0 @@
|
|||
(function($){
|
||||
// Search
|
||||
var $searchWrap = $('#search-form-wrap'),
|
||||
isSearchAnim = false,
|
||||
searchAnimDuration = 200;
|
||||
|
||||
var startSearchAnim = function(){
|
||||
isSearchAnim = true;
|
||||
};
|
||||
|
||||
var stopSearchAnim = function(callback){
|
||||
setTimeout(function(){
|
||||
isSearchAnim = false;
|
||||
callback && callback();
|
||||
}, searchAnimDuration);
|
||||
};
|
||||
|
||||
$('#nav-search-btn').on('click', function(){
|
||||
if (isSearchAnim) return;
|
||||
|
||||
startSearchAnim();
|
||||
$searchWrap.addClass('on');
|
||||
stopSearchAnim(function(){
|
||||
$('.search-form-input').focus();
|
||||
});
|
||||
});
|
||||
|
||||
$('.search-form-input').on('blur', function(){
|
||||
startSearchAnim();
|
||||
$searchWrap.removeClass('on');
|
||||
stopSearchAnim();
|
||||
});
|
||||
|
||||
// Share
|
||||
$('body').on('click', function(){
|
||||
$('.article-share-box.on').removeClass('on');
|
||||
}).on('click', '.article-share-link', function(e){
|
||||
e.stopPropagation();
|
||||
|
||||
var $this = $(this),
|
||||
url = $this.attr('data-url'),
|
||||
encodedUrl = encodeURIComponent(url),
|
||||
id = 'article-share-box-' + $this.attr('data-id'),
|
||||
title = $this.attr('data-title'),
|
||||
offset = $this.offset();
|
||||
|
||||
if ($('#' + id).length){
|
||||
var box = $('#' + id);
|
||||
|
||||
if (box.hasClass('on')){
|
||||
box.removeClass('on');
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
var html = [
|
||||
'<div id="' + id + '" class="article-share-box">',
|
||||
'<input class="article-share-input" value="' + url + '">',
|
||||
'<div class="article-share-links">',
|
||||
'<a href="https://twitter.com/intent/tweet?text=' + encodeURIComponent(title) + '&url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"></a>',
|
||||
'<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"></a>',
|
||||
'<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"></a>',
|
||||
'<a href="https://www.linkedin.com/shareArticle?mini=true&url=' + encodedUrl + '" class="article-share-linkedin" target="_blank" title="LinkedIn"></a>',
|
||||
'</div>',
|
||||
'</div>'
|
||||
].join('');
|
||||
|
||||
var box = $(html);
|
||||
|
||||
$('body').append(box);
|
||||
}
|
||||
|
||||
$('.article-share-box.on').hide();
|
||||
|
||||
box.css({
|
||||
top: offset.top + 25,
|
||||
left: offset.left
|
||||
}).addClass('on');
|
||||
}).on('click', '.article-share-box', function(e){
|
||||
e.stopPropagation();
|
||||
}).on('click', '.article-share-box-input', function(){
|
||||
$(this).select();
|
||||
}).on('click', '.article-share-box-link', function(e){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
|
||||
});
|
||||
|
||||
// Caption
|
||||
$('.article-entry').each(function(i){
|
||||
$(this).find('img').each(function(){
|
||||
if ($(this).parent().hasClass('fancybox') || $(this).parent().is('a')) return;
|
||||
|
||||
var alt = this.alt;
|
||||
|
||||
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
|
||||
|
||||
$(this).wrap('<a href="' + this.src + '" data-fancybox=\"gallery\" data-caption="' + alt + '"></a>')
|
||||
});
|
||||
|
||||
$(this).find('.fancybox').each(function(){
|
||||
$(this).attr('rel', 'article' + i);
|
||||
});
|
||||
});
|
||||
|
||||
if ($.fancybox){
|
||||
$('.fancybox').fancybox();
|
||||
}
|
||||
|
||||
// Mobile nav
|
||||
var $container = $('#container'),
|
||||
isMobileNavAnim = false,
|
||||
mobileNavAnimDuration = 200;
|
||||
|
||||
var startMobileNavAnim = function(){
|
||||
isMobileNavAnim = true;
|
||||
};
|
||||
|
||||
var stopMobileNavAnim = function(){
|
||||
setTimeout(function(){
|
||||
isMobileNavAnim = false;
|
||||
}, mobileNavAnimDuration);
|
||||
}
|
||||
|
||||
$('#main-nav-toggle').on('click', function(){
|
||||
if (isMobileNavAnim) return;
|
||||
|
||||
startMobileNavAnim();
|
||||
$container.toggleClass('mobile-nav-on');
|
||||
stopMobileNavAnim();
|
||||
});
|
||||
|
||||
$('#wrap').on('click', function(){
|
||||
if (isMobileNavAnim || !$container.hasClass('mobile-nav-on')) return;
|
||||
|
||||
$container.removeClass('mobile-nav-on');
|
||||
});
|
||||
})(jQuery);
|
Loading…
Reference in New Issue