-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathpage_about.html
46 lines (46 loc) · 1.51 KB
/
page_about.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include("./_inc/_layout.html")
#@layout()
#define content()
<div class="layui-col-xs12 layui-col-sm7 layui-col-md8 perfree-content-left">
<link rel="stylesheet" href="static/css/article.css" media="all">
<style>
.perfree-article-content{
padding: 20px!important;
}
</style>
<div class="layui-card">
<div class="layui-card-body" style="padding: 8px">
<div class="perfree-article-content">
#page(slug="about")
#(page.content ??)
#end
</div>
</div>
</div>
<script>
//加载代码高亮js
loadscript("/templates/jpress-perfree-simple/static/plugin/highlight/highlight.pack.js",function () {
hljs.initHighlighting();
});
//加载js
function loadscript(url, callback){
var script = document.createElement ("script")
script.type = "text/javascript";
if (script.readyState){
script.onreadystatechange = function(){
if (script.readyState == "loaded" || script.readyState == "complete"){
script.onreadystatechange = null;
callback();
}
};
} else {
script.onload = function(){
callback();
};
}
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
}
</script>
</div>
#end