Skip to content

Commit 3ce5dbf

Browse files
authored
Merge pull request #219 from xzhuz/dev-1.3.2
release 1.3.2
2 parents e742057 + bd209a7 commit 3ce5dbf

14 files changed

Lines changed: 36 additions & 77 deletions

File tree

archives.ftl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@
2525
<@postTag method="archiveMonth">
2626
<#assign year="">
2727
<#list archives as archive>
28-
<section class="arch-year pt-0.5 pb-0.5 px-0 relative border-transparent">
28+
<section class="archive-year pt-0.5 pb-0.5 px-0 relative border-transparent">
2929
<#if archive.year?c != year>
3030
<h1 class="m-0 leading-9 text-gray-800 dark:text-gray-300 bg-gray-50 dark:bg-gray-900 relative">${archive.year?c}</h1>
3131
<#assign year="${archive.year?c}">
3232
</#if>
3333
<div class="relative pl-12">
34-
<header class="absolute mh-hd py-0 pl-2.5 pr-2.5 rounded left-6 text-white uppercase font-semibold leading-loose mt-6 af-bg-fff bg-gray-400 dark:bg-gray-700 dark:text-gray-100">
34+
<header class="absolute archive-hd py-0 pl-2.5 pr-2.5 rounded left-6 text-white uppercase font-semibold leading-loose mt-6 af-bg-fff bg-gray-400 dark:bg-gray-700 dark:text-gray-100">
3535
${archive.month!}
3636
</header>
3737
<span class="">
3838
<#list archive.posts?sort_by("createTime")?reverse as post>
3939
<a class="archive-info transition-colors relative block ml-6 px-0 pt-2 pb-2 leading-8" href="${post.fullPath!}">
4040
<span class="archive-date float-left pr-2 whitespace-nowrap tracking-wide text-sm opacity-60 dark:text-gray-300" style="line-height: inherit !important;">${post.createTime?string('MM-dd')}</span>
41-
<span class="archive-title table-cell text-lg dark:text-gray-300" style="line-height: inherit !important;">${post.title!}</span>
41+
<span class="archive-title bg-box-shadow table-cell text-lg dark:text-gray-300" style="line-height: inherit !important; position: relative">${post.title!}</span>
4242
</a>
4343
</#list>
4444
</span>

dist/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

journals.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
<div class="flex space-x-5 pt-3 text-gray-500 border-t border-gray-300 dark:border-gray-700">
6363
<div class="flex space-x-2">
64-
<svg viewBox="0 0 24 24" fill="currentColor" onclick="likes(this);" data-path="${blog_url!}/api/content/journals/${journal.id}/likes" class="w-6 h-6" style="">
64+
<svg viewBox="0 0 24 24" fill="currentColor" onclick="likes(this);" data-path="${blog_url!}/api/content/journals/${journal.id}/likes" class="w-6 h-6 hover:text-red-300" style="cursor: pointer;">
6565
<g>
6666
<path d="M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12zM7.354 4.225c-2.08 0-3.903 1.988-3.903 4.255 0 5.74 7.034 11.596 8.55 11.658 1.518-.062 8.55-5.917 8.55-11.658 0-2.267-1.823-4.255-3.903-4.255-2.528 0-3.94 2.936-3.952 2.965-.23.562-1.156.562-1.387 0-.014-.03-1.425-2.965-3.954-2.965z">
6767
</path>

module/footer.ftl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@
9696
</div>
9797
</footer>
9898

99-
<#if settings.right_corner_circle!true>
100-
<#include "menu.ftl"/>
101-
</#if>
99+
<#include "menu.ftl"/>
102100

103101
<#-- 搜索 -->
104102
<form method="get" action="/search">

module/plugins.ftl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424

2525
<script src="${theme_base!}/source/js/plugins/simply-nav.js"></script>
2626

27-
<#if settings.right_corner_circle!true>
28-
<#--右下角按钮-->
29-
<script src="${theme_base!}/source/js/plugins/moon.js"></script>
30-
</#if>
27+
<script src="${theme_base!}/source/js/plugins/moon.js"></script>
3128

3229

3330
<#if settings.visit_statistics!false>

module/widget/post_cards.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
alt="${post.title!}"
1515
/>
1616
<#else>
17-
<span class="full-image placeholder-bg w-full h-56" role="img" aria-label=""></span>
17+
<span class="full-image placeholder-bg w-full" role="img" aria-label=""></span>
1818
</#if>
1919
</figure>
2020
<div class="flex flex-col gap-2 px-4 py-6" style="flex: 1 1 auto; ">
21-
<h2 class="flex items-center gap-2 text-xl leading-7 font-bold my-4 ">
21+
<h2 class="flex items-center gap-2 text-xl leading-7 font-bold my-4 z-50">
2222
<a href="${post.fullPath!}" class="text-gray-800 dark:text-gray-600">${post.title!}</a>
2323
</h2>
2424
<div class="flex flex-wrap items-end gap-2 justify-end text-sm">

photos.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
<nav id="gallery-filter">
2525
<ul>
2626
<li>
27-
<a href="javascript:void(0);" data-filter="*" class="active text-gray-800 dark:text-gray-300">全部</a>
27+
<a href="javascript:void(0);" data-filter="*" class="active text-gray-800 dark:text-gray-300 bg-box-shadow">全部</a>
2828
</li>
2929
<@photoTag method="listTeams">
3030
<#list teams as item>
3131
<li>
3232
<a href="javascript:void(0);"
33-
class="text-gray-800 dark:text-gray-300"
33+
class="text-gray-800 dark:text-gray-300 bg-box-shadow"
3434
data-filter=".${((item.team)?length>0)?string((item.team),'默认')}">${((item.team)?length>0)?string((item.team),'默认')}</a>
3535
</li>
3636
</#list>

post.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<div class="mx-auto md-content mt-8 text-center max-w-4xl tracking-wider md:leading-relaxed sm:leading-normal">
5757
<#include "module/widget/sponsor.ftl">
5858
<section class="donate inline-block text-center my-4 w-56" onclick="likes(this);" data-path="${blog_url!}/api/content/posts/${post.id}/likes">
59-
<div class="icon relative inline-block bg-red-600 hover:bg-red-500 rounded-full py-3 px-6 z-20 w-28 cursor-pointer">
59+
<div class="icon relative inline-block bg-red-600 hover:bg-red-500 rounded-full py-3 px-6 z-20 w-28 cursor-pointer">
6060
<span class="iconfont icon-like-fill text-white" ></span>
6161
<span class="like-count inline-block text-white">${post.likes}</span>
6262
</div>

source/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ function likes(e) {
388388
success: function (data) {
389389
$(e).addClass('liked')
390390
$(e).removeAttr('onclick');
391-
var count = $(e).siblings('.like-count')
391+
var count = $(e).parent('div').find('.like-count')
392392
var likeCount = parseInt(count.html())
393-
$(e).siblings('.like-count').html(likeCount + 1);
393+
$(e).parent('div').find('.like-count').html(likeCount + 1);
394394
},
395395
error: function (msg) {
396396
}

src/styles/archives.less

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
.arch-year {
1+
.archive-year {
22
border-color: inherit;
33
}
44

5-
.dark .arch-year {
5+
.dark .archive-year {
66
--tw-text-opacity: 1;
77
border-color: rgba(209,213,219,var(--tw-text-opacity));
88
opacity: .6;
99
}
1010

11-
.arch-year:first-of-type {
11+
.archive-year:first-of-type {
1212
margin-top: -2.15rem;
1313
}
1414

15-
.arch-year:before {
15+
.archive-year:before {
1616
position: absolute;
1717
top: 0;
1818
left: 1.5rem;
@@ -22,20 +22,19 @@
2222
content: "";
2323
}
2424

25-
.bg-fff,
2625
.af-bg-fff:after {
2726
background: #fff;
2827
}
2928

30-
.mh-hd:after {
29+
.archive-hd:after {
3130
position: absolute;
3231
}
3332

34-
.mh-hd {
33+
.archive-hd {
3534
transform: translate3d(-50%, -50%, 0) scale3d(0.75, 0.75, 1);
3635
}
3736

38-
.mh-hd:after {
37+
.archive-hd:after {
3938
top: 0;
4039
right: 0;
4140
bottom: 0;
@@ -47,19 +46,6 @@
4746
transition: opacity 0.4s;
4847
}
4948

50-
.archive-info {
51-
52-
.archive-title {
53-
transition: all 0.5s;
54-
}
55-
56-
&:hover .archive-title {
57-
text-decoration: underline;
58-
text-decoration-style: dashed;
59-
text-underline-position: under;
60-
}
61-
}
62-
6349
.archive-info:before {
6450
position: absolute;
6551
top: 1.5rem;

0 commit comments

Comments
 (0)