mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
新增代码高亮,完善文章浏览体验
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
|
||||
{notempty name=':get_system_config("site_qrcode")'}
|
||||
<p>
|
||||
<img style="width: 120px;" src="{:get_system_config('site_qrcode')}" alt="" srcset="">
|
||||
<img style="width: 120px;" src="{:get_source_link(get_system_config('site_qrcode'))}" alt="" srcset="">
|
||||
</p>
|
||||
{/notempty}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<body>
|
||||
<div class="layui-container main-container">
|
||||
<div class="layui-row layui-col-space4">
|
||||
<div class="layui-row layui-col-space12">
|
||||
{include file='common/_left'/}
|
||||
<div class="layui-col-md7">
|
||||
<div class="main-container">
|
||||
|
||||
@@ -4,14 +4,21 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{:get_system_config('site_name')}</title>
|
||||
<title>{$post.title}</title>
|
||||
{include file='common/_require'/}
|
||||
<link rel="stylesheet" href="/static/lib/quill/quill.snow.css">
|
||||
<link rel="stylesheet" href="/static/lib/highlight/styles/vs.css">
|
||||
<script src="/static/lib/highlight/highlight.pack.js"></script>
|
||||
<style>
|
||||
.ql-editor {
|
||||
padding: unset
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="layui-container main-container">
|
||||
<div class="layui-row layui-col-space4">
|
||||
<div class="layui-row layui-col-space12">
|
||||
{include file='common/_left'/}
|
||||
<div class="layui-col-md7">
|
||||
<div class="main-container">
|
||||
@@ -32,6 +39,15 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$('.ql-editor pre').each(function (n, e) {
|
||||
|
||||
hljs.highlightBlock(e);
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user