1. Feature: random cover #10

2. Fix: valine lang not work
3. Fix: archives page site name not change when the language change
4. Fix: related posts url error
This commit is contained in:
hwy0127@gmail.com
2019-07-06 20:15:31 +08:00
Unverified
parent dfdd3289bb
commit 0a1d8b0eba
16 changed files with 50 additions and 2600 deletions

View File

@@ -31,11 +31,9 @@
color: $white
#site-info
// position: absolute
position: absolute
width: 100%
// top: 43%
padding-top: 43%
padding-bottom: 43%
top: 43%
#site-title,
#site-sub-title

View File

@@ -242,25 +242,25 @@ $(function () {
}
//---------------------------------------------------------------------------------------------------
//fancybox
var imgList = $(".recent-post-info img");
var imgList = $(".recent-post-info img").not('.no-fancybox');
if (imgList.length === 0) {
imgList = $("#post-content img");
imgList = $("#post-content img").not('.no-fancybox');
}
for (var i = 0; i < imgList.length; i++) {
var $a = $(
'<a href="' +
imgList[i].src +
'" data-fancybox="group" data-caption="' +
imgList[i].alt +
'" class="fancybox"></a>'
);
var alt = imgList[i].alt;
var $wrap = $(imgList[i]).wrap($a);
imgList[i].src +
'" data-fancybox="group" data-caption="' +
imgList[i].alt +
'" class="fancybox"></a>'
)
var alt = imgList[i].alt
var $wrap = $(imgList[i]).wrap($a)
if (alt) {
$wrap.after('<div class="img-alt">' + alt + "</div>");
$wrap.after('<div class="img-alt">' + alt + '</div>')
}
}
$().fancybox({
selector: "[data-fancybox]",
loop: true,