3 Star 33 Fork 14

perfree/jpress-perfree-simple

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
page_template.html 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/perfree/jpress-perfree-simple.git
git@gitee.com:perfree/jpress-perfree-simple.git
perfree
jpress-perfree-simple
jpress-perfree-simple
master

搜索帮助