插件可自定义配置
parent
6380118ce1
commit
5d323f9d69
|
@ -20,4 +20,4 @@
|
|||
|
||||
1. 克隆或者[下载](https://codeload.github.com/imkundev/halo-theme-fantastic/zip/master)。
|
||||
2. 压缩为 zip 压缩包之后在后台的主题设置直接上传即可使用。
|
||||
3. 用Halo自还的程序拉取 `https://github.com/Bursteretion/halo-theme-fantastic_plus.git`
|
||||
3. 用Halo自还的程序拉取 `https://github.com/imkundev/halo-theme-fantastic.git`
|
|
@ -1,6 +1,7 @@
|
|||
<#include "layout/layout.ftl">
|
||||
<#include "layout/common/article.ftl">
|
||||
<@layout title="journals - ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}" canonical="${context!}/journals">
|
||||
<@layout title="耳语 - ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options
|
||||
.seo_description!}" canonical="${context!}/journals">
|
||||
<div class="journals">
|
||||
<#include "layout/journals/journals.ftl"/>
|
||||
</div>
|
||||
|
|
|
@ -2,63 +2,70 @@
|
|||
<div class="container">
|
||||
<div class="level">
|
||||
<div class="level-start has-text-centered-mobile">
|
||||
<#-- <a class="footer-logo is-block has-mb-6" href="${context!}">-->
|
||||
<#-- <#if options.blog_logo?? && options.blog_logo!=''>-->
|
||||
<#-- <img src="${options.blog_logo!}" alt="${options.blog_title!}" height="28">-->
|
||||
<#-- <#else>-->
|
||||
<#-- ${options.blog_title!}-->
|
||||
<#-- </#if>-->
|
||||
<#-- </a>-->
|
||||
<@global.footer />
|
||||
<#if settings.busuanzi!true>
|
||||
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
||||
<br>
|
||||
<span id="busuanzi_container_site_pv" style='display:none'> 总访问量 <span
|
||||
id="busuanzi_value_site_pv"></span> 次 </span>
|
||||
<span id="busuanzi_container_site_uv" style='display:none'>| 总访客数 <span
|
||||
id="busuanzi_value_site_uv"></span> 人 </span>
|
||||
</#if>
|
||||
<#if settings.bokejishi!true>
|
||||
<p style="text-align: center; line-height: 20px;margin: 0">
|
||||
我的博客已经运行 <span id="clock"></span> 啦!<br>
|
||||
</p>
|
||||
<script type="text/javascript">
|
||||
/* 尾部定时 */
|
||||
var int = self.setInterval("clock()", 1000);
|
||||
|
||||
<@global.footer />
|
||||
function clock() {
|
||||
var nowDay = new Date();
|
||||
var localDay = new Date("${settings.time_start!}");
|
||||
var time = parseInt((nowDay.getTime() - localDay.getTime()) / 1000);
|
||||
var min = parseInt(time / 60);
|
||||
var hour = parseInt(time / 60 / 60);
|
||||
var day = parseInt(time / 60 / 60 / 24);
|
||||
|
||||
<!-- 不蒜子计数 -->
|
||||
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
||||
<br>
|
||||
<span id="busuanzi_container_site_pv" style='display:none'> 总访问量 <span id="busuanzi_value_site_pv"></span> 次 </span>
|
||||
<span id="busuanzi_container_site_uv" style='display:none'>| 总访客数 <span id="busuanzi_value_site_uv"></span> 人 </span>
|
||||
<p style="text-align: center; line-height: 20px;margin: 0">
|
||||
我的博客已经运行 <span id="clock"></span> 啦!<br>
|
||||
</p><p style="text-align: center; line-height: 20px;margin: 0">
|
||||
<a href="http://beian.miit.gov.cn/" style="color: black;font-style: inherit;font-weight: inherit;">闽ICP备19016323号</a>
|
||||
</p><p style="text-align: center; line-height: 20px;margin: 0px 0px">
|
||||
Thanks for <a href="https://halo.run/" target="_blank" rel="nofollow">Halo</a> & <a href="//www.upyun.com" target="_blank" rel="nofollow"><img src="//www.upyun.com/static/90X45.png" width="56" height="28" style="margin: -5px 0px"></a>
|
||||
</p>
|
||||
<!-- <script type="text/javascript"
|
||||
color="47,135,193" opacity='0.8' zIndex="-2" count="100" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js">
|
||||
</script> -->
|
||||
<!-- 定时 -->
|
||||
<script type="text/javascript">
|
||||
/* 尾部定时 */
|
||||
var int = self.setInterval("clock()", 1000);
|
||||
function clock()
|
||||
{
|
||||
var nowDay = new Date();
|
||||
var localDay = new Date("2019-08-10 00:00:00");
|
||||
var time = parseInt((nowDay.getTime()-localDay.getTime())/1000);
|
||||
var min = parseInt(time/60);
|
||||
var hour = parseInt(time/60/60);
|
||||
var day = parseInt(time/60/60/24);
|
||||
var runTime = "0";
|
||||
if (min == 0) {
|
||||
runTime = time + "秒";
|
||||
} else if (hour == 0) {
|
||||
runTime = min + "分" + (time - min * 60) + "秒";
|
||||
} else if (day == 0) {
|
||||
var mh = min - hour * 60;
|
||||
runTime = hour + "时" + mh + "分" + (time - hour * 3600 - mh * 60) + "秒"
|
||||
} else {
|
||||
var hd = hour - day * 24;
|
||||
var mh = min - day * 24 * 60 - hd * 60;
|
||||
runTime = day + "天" + hd + "时" + mh + "分" + (time - day * 24 * 3600 - hd * 3600 - mh * 60) + "秒";
|
||||
}
|
||||
|
||||
var runTime = "0";
|
||||
if(min == 0) {
|
||||
runTime = time + "秒";
|
||||
} else if(hour == 0) {
|
||||
runTime = min + "分" + (time-min*60) + "秒";
|
||||
} else if(day == 0) {
|
||||
var mh = min-hour*60;
|
||||
runTime = hour + "时" + mh + "分" + (time-hour*3600-mh*60) + "秒"
|
||||
} else {
|
||||
var hd = hour - day*24;
|
||||
var mh = min - day*24*60 - hd*60;
|
||||
runTime = day + "天" + hd + "时" + mh + "分" + (time-day*24*3600-hd*3600-mh*60) + "秒";
|
||||
}
|
||||
|
||||
document.getElementById('clock').innerHTML = runTime;
|
||||
}
|
||||
</script>
|
||||
<script src="https://www.lwjppz.cn/upload/2020/2/caidai-5e8e10ce0efc4886838a9ea8c5e1153a.js"></script>
|
||||
<script src="https://www.lwjppz.cn/upload/2020/2/dianji-1a07321c18b640deafcb13f4cb635307.js"></script>
|
||||
document.getElementById('clock').innerHTML = runTime;
|
||||
}
|
||||
</script>
|
||||
</#if>
|
||||
<#if settings.social_beian?? && settings.social_beian!=''>
|
||||
<p style="text-align: center; line-height: 20px;margin: 0">
|
||||
<a href="http://beian.miit.gov.cn/"
|
||||
style="color: black;font-style: inherit;font-weight: inherit;">${settings.social_beian!}</a>
|
||||
</p>
|
||||
</#if>
|
||||
<#if settings.social_free?? && settings.social_free!=''>
|
||||
${settings.social_free!}
|
||||
</#if>
|
||||
<#if settings.caidai!true>
|
||||
<script src="https://www.lwjppz.cn/upload/2020/2/caidai-5e8e10ce0efc4886838a9ea8c5e1153a.js"></script>
|
||||
</#if>
|
||||
<#if settings.xiantiao!true>
|
||||
<script type="text/javascript"
|
||||
color="47,135,193" opacity='0.8' zIndex="-2" count="100"
|
||||
src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js">
|
||||
</script>
|
||||
</#if>
|
||||
<#if settings.dianji!true>
|
||||
<script src="https://www.lwjppz.cn/upload/2020/2/dianji-1a07321c18b640deafcb13f4cb635307.js"></script>
|
||||
</#if>
|
||||
</p>
|
||||
</div>
|
||||
<div class="level-end">
|
||||
|
|
|
@ -10,6 +10,17 @@
|
|||
<#if settings.sidebar_profile!true>
|
||||
<#include "../widget/profile.ftl">
|
||||
</#if>
|
||||
<#if settings.music!true>
|
||||
<div class="card"
|
||||
style="box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); padding: 5px; backgroud-color: white">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
|
||||
<div id="aplayer" class="aplayer" data-id="${settings.music_id!}" data-server="netease"
|
||||
data-type="playlist"
|
||||
data-fixed="false" data-listfolded="true" data-order="list" data-theme="#F58EA8" style="width: 100%"></div>
|
||||
<script src="https://unpkg.com/meting@1.2/dist/Meting.min.js"></script>
|
||||
</div>
|
||||
</#if>
|
||||
<#if settings.sidebar_categories!true>
|
||||
<#include "../widget/category.ftl">
|
||||
</#if>
|
||||
|
@ -33,10 +44,6 @@
|
|||
<#if settings.sidebar_recentcomment!true>
|
||||
<#include "../widget/recent_comments.ftl">
|
||||
</#if>
|
||||
<#-- <#include "../widget/archive.ftl">-->
|
||||
<#-- <#if settings.sidebar_tags!true>-->
|
||||
<#-- <#include "../widget/tag.ftl">-->
|
||||
<#-- </#if>-->
|
||||
</#if>
|
||||
<#if position == 'left'>
|
||||
<div class="column-right-shadow is-hidden-widescreen is-6-fullhd ">
|
||||
|
|
|
@ -51,11 +51,13 @@
|
|||
padding: 0;
|
||||
vertical-align: unset;
|
||||
}
|
||||
|
||||
.tag {
|
||||
font-size: 1em !important;
|
||||
padding-right: 0 !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.attr-name {
|
||||
padding-left: 0.75em !important;
|
||||
}
|
||||
|
@ -85,7 +87,9 @@
|
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.5/css/swiper.min.css">
|
||||
</#if>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
|
||||
<#if settings.kanbanniang!true>
|
||||
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
|
||||
</#if>
|
||||
</head>
|
||||
<body class="is-3-column">
|
||||
<@navbar 'page' />
|
||||
|
@ -134,7 +138,10 @@
|
|||
<@categoryTag method="list">
|
||||
<#list categories as category>
|
||||
<#if category_index <= 4>
|
||||
<li><a href="${context!}/categories/${category.slugName!}" style="text-transform:capitalize">${category.name}</a></li>
|
||||
<li>
|
||||
<a href="${context!}/categories/${category.slugName!}"
|
||||
style="text-transform:capitalize">${category.name}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#list>
|
||||
</@categoryTag>
|
||||
|
|
|
@ -14,8 +14,9 @@ box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);">
|
|||
<p class="title is-3" style="text-align: center">
|
||||
${user.nickname!}
|
||||
</p>
|
||||
<br>
|
||||
<p class="is-size-6 is-block" style="padding-left: 1em;text-align: center;font-size: 7px">${user.description!}</p>
|
||||
<br>
|
||||
<p class="is-size-6 is-block"
|
||||
style="padding-left: 1em;text-align: center;font-size: 7px">${user.description!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
|
@ -112,11 +113,4 @@ box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);">
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card" style="box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); padding: 5px; backgroud-color: white">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
|
||||
<div id="aplayer" class="aplayer" data-id="4884303316" data-server="netease" data-type="playlist" data-fixed="false" data-listfolded="true" data-order="list" data-theme="#F58EA8" style="width: 100%"></div>
|
||||
<script src="https://unpkg.com/meting@1.2/dist/Meting.min.js"></script>
|
||||
</div>
|
121
settings.yaml
121
settings.yaml
|
@ -160,18 +160,8 @@ post:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
# code_pretty:
|
||||
# name: code_pretty
|
||||
# label: 文章代码高亮主题
|
||||
# type: select
|
||||
# default: light
|
||||
# options:
|
||||
# - value: Dark
|
||||
# label: dark
|
||||
# - value: light
|
||||
# label: light
|
||||
social:
|
||||
label: 社交设置
|
||||
label: 博客信息
|
||||
items:
|
||||
social_github:
|
||||
name: social_github
|
||||
|
@ -208,6 +198,113 @@ social:
|
|||
label: Telegram
|
||||
type: text
|
||||
placeholder: 'Telegram 用户名'
|
||||
social_beian:
|
||||
name: social_beian
|
||||
label: 备案号
|
||||
type: text
|
||||
placeholder: '备案号'
|
||||
social_free:
|
||||
name: social_free
|
||||
label: 底部自定义
|
||||
type: textarea
|
||||
default: '<p style="text-align: center; line-height: 20px;margin: 0px 0px">
|
||||
Thanks for <a href="https://halo.run/" target="_blank" rel="nofollow">Halo</a> & <a
|
||||
href="//www.upyun.com" target="_blank" rel="nofollow"><img
|
||||
src="//www.upyun.com/static/90X45.png" width="56" height="28" style="margin: -5px 0px"></a>
|
||||
</p>'
|
||||
|
||||
plugins:
|
||||
label: 插件
|
||||
items:
|
||||
music:
|
||||
name: music
|
||||
label: 音乐播放器
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
music_id:
|
||||
name: music_id
|
||||
label: 外链音乐Id (如果已开启音乐播放器, 此项必填)
|
||||
type: text
|
||||
default: ''
|
||||
placeholder: '外链音乐Id'
|
||||
kanbanniang:
|
||||
name: kanbanniang
|
||||
label: 看板娘
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
busuanzi:
|
||||
name: busuanzi
|
||||
label: 不蒜子计数
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bokejishi:
|
||||
name: bokejishi
|
||||
label: 博客计时
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
time_start:
|
||||
name: time_start
|
||||
label: 开始时间 (如果已开启博客计时, 此项必填)
|
||||
type: text
|
||||
default: ''
|
||||
placeholder: '形如2019-08-10 00:00:00格式'
|
||||
caidai:
|
||||
name: caidai
|
||||
label: 背景彩带
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
xiantiao:
|
||||
name: xiantiao
|
||||
label: 背景线条
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
dianji:
|
||||
name: dianji
|
||||
label: 鼠标点击特效
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
|
||||
custom_links:
|
||||
label: 自定义链接
|
||||
|
@ -233,3 +330,5 @@ custom_links:
|
|||
<i class="fab fa-creative-commons-by title is-4"></i>
|
||||
</a>
|
||||
</p>'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue