代码拉取完成,页面将自动刷新
#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.content ??)
</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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。