Skip to content

Commit

Permalink
Feat. 方便远程导入
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Feb 20, 2024
1 parent c75ac6f commit 51ae12c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 35 deletions.
4 changes: 3 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"githubUserName": "RavelloH",
"mail": "[email protected]",
"copyrightStartTime": "2019",
"defaultScript": "<script>function main(){}</script>"
"defaultScript": "<script>function main(){}</script>",
"analyticScript": "<script defer type=\"text/javascript\" src=\"{{{remotePath}}}/assets/js/analysis.js\" onload=\"baiduAnalysis();umamiAnalytics()\"></script>",
"remotePath": ""
},
"mainTemplate": "layout.html",
"metadataFileName": "metadata.yaml",
Expand Down
4 changes: 2 additions & 2 deletions template/static/css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- CSS -->
<link rel="stylesheet" href="/assets/css/style.css" type="text/css" media="all">
<link rel="stylesheet" href="/assets/css/iconfont.css" type="text/css">
<link rel="stylesheet" href="{{{remotePath}}}/assets/css/style.css" type="text/css" media="all">
<link rel="stylesheet" href="{{{remotePath}}}/assets/css/iconfont.css" type="text/css">
<noscript>
<style type="text/css" media="all">
{{noscript.css}}
Expand Down
8 changes: 4 additions & 4 deletions template/static/icons.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/assets/images/apple-touch-icon.png" type="image/png">
<link rel="apple-touch-icon-precomposed" href="/assets/images/favicon-32x32.png" type="image/png">
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/site.webmanifest">
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{{remotePath}}}/assets/images/apple-touch-icon.png" type="image/png">
<link rel="apple-touch-icon-precomposed" href="{{{remotePath}}}/assets/images/favicon-32x32.png" type="image/png">
<link rel="icon" href="{{{remotePath}}}/favicon.ico">
<link rel="manifest" href="{{{remotePath}}}/site.webmanifest">
24 changes: 6 additions & 18 deletions template/static/javascript.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<!-- JavaScript -->
<script defer type="text/javascript" src="/assets/js/i18n.js" onload="loadComplete('i18n.js')"></script>
<script defer type="text/javascript" src="/assets/js/moudle.js" onload="loadComplete('moudle.js')"></script>
<script defer type="text/javascript" src="/assets/js/script.js" onload="loadComplete('script.js')"></script>
<script defer type="text/javascript" src="/assets/js/display.js" onload="loadComplete('display.js')"></script>
<script defer type="text/javascript" src="/assets/js/pjax.js" onload="enablePjax();loadComplete('pjax.js')"></script>
<script defer type="text/javascript" src="/assets/js/analysis.js" onload="baiduAnalysis();umamiAnalytics()"></script>
<script src="https://tam.cdn-go.cn/aegis-sdk/latest/aegis.min.js"></script>
<script>
if (typeof Aegis === 'function') {
var aegis = new Aegis({
id: 'mZdy0ULYRPKrYkY68R',
reportApiSpeed: true,
reportAssetSpeed: true,
spa: true,
hostUrl: 'https://rumt-zh.com'
});
}
</script>
<script defer type="text/javascript" src="{{{remotePath}}}/assets/js/i18n.js" onload="loadComplete('i18n.js')"></script>
<script defer type="text/javascript" src="{{{remotePath}}}/assets/js/moudle.js" onload="loadComplete('moudle.js')"></script>
<script defer type="text/javascript" src="{{{remotePath}}}/assets/js/script.js" onload="loadComplete('script.js')"></script>
<script defer type="text/javascript" src="{{{remotePath}}}/assets/js/display.js" onload="loadComplete('display.js')"></script>
<script defer type="text/javascript" src="{{{remotePath}}}/assets/js/pjax.js" onload="enablePjax();loadComplete('pjax.js')"></script>
{{{analyticScript}}}
<div id="page-js">
{{{pageJs}}}
</div>
2 changes: 1 addition & 1 deletion template/static/loadingShade.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div id="load-content">
<hr>
<h2>{{{siteName}}}</h2>
<h3>LOAD <span id="loading-text"> ing <span class="breath"> <span>.</span> <span>.</span> <span>.</span> </span> </span></h3>
<h3>LOAD <span id="loading-text"> ing <span class="breath"> <span>.</span><span>.</span><span>.</span></span> </span></h3>
<hr> <br>
</div>
</div>
18 changes: 9 additions & 9 deletions template/static/preload.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!-- Preload -->
<link rel="preload" href="/assets/fonts/ri.woff2" as="font" crossorigin>
<link rel="preload" href="/assets/fonts/Furore.ttf" as="font" crossorigin>
<link rel="preload" href="/assets/js/script.js" as="script">
<link rel="preload" href="/assets/js/i18n.js" as="script">
<link rel="preload" href="/assets/js/moudle.js" as="script">
<link rel="preload" href="/assets/js/display.js" as="script">
<link rel="preload" href="/assets/css/style.css" as="style">
<link rel="preload" href="/assets/css/iconfont.css" as="style">
<link rel="preload" href="/assets/images/avatar.jpg" as="image">
<link rel="preload" href="{{{remotePath}}}/assets/fonts/ri.woff2" as="font" crossorigin>
<link rel="preload" href="{{{remotePath}}}/assets/fonts/Furore.ttf" as="font" crossorigin>
<link rel="preload" href="{{{remotePath}}}/assets/js/script.js" as="script">
<link rel="preload" href="{{{remotePath}}}/assets/js/i18n.js" as="script">
<link rel="preload" href="{{{remotePath}}}/assets/js/moudle.js" as="script">
<link rel="preload" href="{{{remotePath}}}/assets/js/display.js" as="script">
<link rel="preload" href="{{{remotePath}}}/assets/css/style.css" as="style">
<link rel="preload" href="{{{remotePath}}}/assets/css/iconfont.css" as="style">
<link rel="preload" href="{{{remotePath}}}/assets/images/avatar.jpg" as="image">

<!-- Loading Starter -->
<script defer type="text/javascript" src="/assets/js/loading.js"></script>

0 comments on commit 51ae12c

Please sign in to comment.