generated from halo-dev/halo-theme-quick-starter
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from lsh1358046425/feat/deal_jsdelivr
feat:删除jsdelivr和做了一些优化
- Loading branch information
Showing
57 changed files
with
2,017 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<link href="${theme_base!}/source/lib/tocbot/tocbot.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/lib/font-awesome/css/all.min.css?v=${theme.version!}" rel="stylesheet" | ||
type="text/css"> | ||
<link href="${theme_base!}/source/lib/nprogress/nprogress.css?v=${theme.version!}" rel="stylesheet" type="text/css"/> | ||
<link href="${theme_base!}/source/lib/social-share/css/share.min.css?v=${theme.version!}" rel="stylesheet" | ||
type="text/css"> | ||
<link href="${theme_base!}/source/lib/zoomify/zoomify.min.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/lib/fancybox/jquery.fancybox.min.css?v=${theme.version!}" rel="stylesheet" | ||
type="text/css" media="screen"> | ||
<link href="${theme_base!}/source/css/main.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/css/night.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/css/codeblock.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<#if settings.music_enabled!false> | ||
<link href="${theme_base!}/source/lib/aplayer/APlayer.min.css?v=${theme.version!}" rel="stylesheet"> | ||
</#if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,28 +25,21 @@ | |
|
||
<@global.head /> | ||
|
||
<link rel="dns-prefetch" href="//cdn.jsdelivr.net"> | ||
<link rel="alternate" title="RSS" type="application/rss+xml" href="${rss_url!}"> | ||
<link rel="alternate" title="ATOM" type="application/atom+xml" href="${atom_url!}"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/favicon.ico"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico"> | ||
|
||
<#include "cdn_css.ftl"> | ||
|
||
<link href="${theme_base!}/source/css/main.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/css/night.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<link href="${theme_base!}/source/css/codeblock.css?v=${theme.version!}" rel="stylesheet" type="text/css"> | ||
<#include "css.ftl"> | ||
|
||
<#if settings.custom??> | ||
<style type="text/css"> | ||
<style> | ||
${settings.custom!} | ||
</style> | ||
</#if> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/jquery/jquery.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/vue/vue.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
</head> | ||
<body itemscope itemtype="http://schema.org/WebPage"> | ||
<body> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script src="${theme_base!}/source/lib/bootstrap/bootstrap.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/nprogress/nprogress.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/velocity/velocity.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/tocbot/tocbot.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/greensock/TweenMax.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/jquery-lazyload/jquery.lazyload.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/social-share/js/jquery.share.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/zoomify/zoomify.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script data-pjax src="${theme_base!}/source/lib/prism/prism.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/fancybox/jquery.fancybox.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="${theme_base!}/source/js/main.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/js/animate.js?v=${theme.version!}" type="text/javascript"></script> | ||
<#if settings.comment_internal_plugin_js_enable!false> | ||
<script src="${options.comment_internal_plugin_js!'https://unpkg.com/halo-comment-yu@latest/dist/halo-comment.min.js'}?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<#else> | ||
<script src="https://unpkg.com/halo-comment-yu@latest/dist/halo-comment.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
</#if> | ||
<#if settings.pjax_enabled!false> | ||
<script src="${theme_base!}/source/lib/jquery-pjax/jquery.pjax.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="${theme_base!}/source/js/pjax.js?v=${theme.version!}" type="text/javascript"></script> | ||
</#if> | ||
<#if settings.music_enabled!false> | ||
<script src="${theme_base!}/source/lib/aplayer/APlayer.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/lib/meting/Meting.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
</#if> | ||
<#if settings.evanyou!true> | ||
<script src="${theme_base!}/source/lib/evanyou/evanyou.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
</#if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<#if settings.evanyou!true> | ||
<canvas id="evanyou"></canvas> | ||
<script src="${theme_base!}/source/js/evanyou.min.js?v=${theme.version!}" type="text/javascript"></script> | ||
</#if> | ||
<div class="loading" style="display: none;"> | ||
<div class="loader"></div> | ||
</div> | ||
<#if settings.evanyou!true> | ||
<canvas id="evanyou"></canvas> | ||
</#if> | ||
<#if settings.music_enabled!false> | ||
<meting-js | ||
async="true" | ||
|
@@ -17,29 +16,9 @@ | |
list-folded="true" | ||
></meting-js> | ||
</#if> | ||
<#if settings.pjax_enabled!false> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.pjax.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
</#if> | ||
<#if settings.music_enabled!false> | ||
<link href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css?v=${theme.version!}" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
</#if> | ||
|
||
<#include "cdn_js.ftl"> | ||
|
||
<script src="${settings.comment_internal_plugin_js!'https://cdn.jsdelivr.net/gh/cetr/halo-comment-yu@latest/dist/halo-comment.min.js'}?v=${theme.version!}" | ||
type="text/javascript"></script> | ||
|
||
<#if settings.pjax_enabled!false> | ||
<script src="${theme_base!}/source/js/pjax.js?v=${theme.version!}" type="text/javascript"></script> | ||
</#if> | ||
<#include "js.ftl"> | ||
|
||
<script src="${theme_base!}/source/js/main.js?v=${theme.version!}" type="text/javascript"></script> | ||
<script src="${theme_base!}/source/js/animate.js?v=${theme.version!}" type="text/javascript"></script> | ||
<#include "pjax_js.ftl"> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.