Skip to content

Commit 374ccf3

Browse files
authored
Merge pull request #334 from xzhuz/halo
🐛 Fix: 修复复制代码时每行多换行符#324
2 parents ef16773 + 8fb681f commit 374ccf3

11 files changed

Lines changed: 2497 additions & 236 deletions

File tree

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.

module/plugins.ftl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@
1717

1818
<#-- 代码高亮-->
1919
<script src="${theme_base!}/source/highlight.js/highlight.min.js"></script>
20-
2120
<#--其他语言包-->
22-
<#if settings.more_lang_code!false>
23-
<script src="${theme_base!}/source/highlight.js/highlight.lang.js"></script>
24-
</#if>
21+
<script src="${theme_base!}/source/highlight.js/highlight.lang.js"></script>
2522
<#--代码行数-->
26-
<script src="${theme_base!}/source/highlight.js/linesNumber.js"></script>
23+
<script src="${theme_base!}/source/highlight.js/highlight-line-numbers.js"></script>
2724

2825
<#--标签云-->
2926
<script src="${theme_base!}/source/js/plugins/jqcloud-1.0.4.min.js"></script>

module/widget/sponsor.ftl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,30 @@
44
<#if settings.QR_code_zfb??>
55
<a href="javascript:;" id="alipay" class="text-xl"
66
style="text-decoration: none !important; box-shadow: none !important;">
7-
<i class="iconfont icon-yooxi hover:text-red-500 text-xl dark:text-gray-300 border-r border-gray-600 dark:border-gray-700 pr-3"></i></a>
7+
<i class="iconfont icon-yooxi hover:text-red-500 text-xl dark:text-gray-300"></i>
8+
</a>
9+
</#if>
10+
<#if settings.QR_code_zfb?? && settings.QR_code_wx??>
11+
<i class="border-r border-gray-600 dark:border-gray-700 pl-1.5 mr-1.5"></i>
812
</#if>
913
<#if settings.QR_code_wx??>
10-
<a href="javascript:;" id="wechat" class="pl-3"
14+
<a href="javascript:;" id="wechat"
1115
style="text-decoration: none !important; box-shadow: none !important;">
1216
<i class="iconfont icon-wechat hover:text-red-500 text-xl dark:text-gray-300"></i></a>
1317
</#if>
1418
</div>
1519
<#if settings.QR_code_zfb??>
1620
<div class="qrcode qrcode-alipay hidden p-4 w-56 h-56 z-50 my-4 mx-auto">
17-
<img class="fade-down max-h-200 dark:filter-60" src="${settings.QR_code_zfb}">
21+
<span style="display: block;" data-fancybox="gallery" href="${settings.QR_code_zfb}">
22+
<img class="fade-down max-h-200 dark:filter-60" src="${settings.QR_code_zfb}">
23+
</span>
1824
</div>
1925
</#if>
2026
<#if settings.QR_code_wx??>
2127
<div class="qrcode qrcode-wechat hidden p-4 w-56 h-56 z-50 my-4 mx-auto">
22-
<img class="fade-down max-h-200 dark:filter-60" src="${settings.QR_code_wx}">
28+
<span style="display: block;" data-fancybox="gallery" href="${settings.QR_code_wx}">
29+
<img class="fade-down max-h-200 dark:filter-60" src="${settings.QR_code_wx}">
30+
</span>
2331
</div>
2432
</#if>
2533
</section>

post.ftl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
</div>
3232
</div>
3333
</header>
34+
<#-- 文章主内容 -->
3435
<div class="article-content fade-up">
3536
<div class="mx-auto bg-white dark:bg-gray-800 rounded-md px-10 py-10 md-content mt-8 max-w-4xl tracking-wider md:leading-relaxed sm:leading-normal heti text-gray-800 dark:text-gray-300"
3637
id="lightGallery">
3738
${post.content!}
3839
<hr class="bg-gray-100 dark:bg-gray-700 ">
40+
<#-- 标签 -->
3941
<div class="flex flex-row justify-between flex-wrap">
4042
<div class="tag-list leading-9">
4143
<#if post.tags?? && post.tags?size gt 0>
@@ -53,6 +55,7 @@
5355
</#list>
5456
</#if>
5557
</div>
58+
<#-- 分享 -->
5659
<#if settings.allow_share!true>
5760
<div class="share-items">
5861
<a class="share-link share-item" href="javascript:;" data-clipboard-text="${post.fullPath!}"

source/highlight.js/highlight-line-numbers.js

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

source/highlight.js/highlight.lang.js

Lines changed: 40 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)