mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix
This commit is contained in:
parent
d7123c894f
commit
9a37b00d56
@ -10,7 +10,7 @@
|
|||||||
end
|
end
|
||||||
local title = "Welcome to my blog"
|
local title = "Welcome to my blog"
|
||||||
if not #data or #order == 0 then
|
if not #data or #order == 0 then
|
||||||
topview(title)
|
topview(title, false)
|
||||||
?>
|
?>
|
||||||
<div class = "notfound">
|
<div class = "notfound">
|
||||||
<p>No entry found</p>
|
<p>No entry found</p>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
title = content:sub(b+1, c-1)
|
title = content:sub(b+1, c-1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
topview(title)
|
topview(title, true)
|
||||||
end
|
end
|
||||||
local url = "https://blog.lxsang.me/r:id:"..data.id
|
local url = "https://blog.lxsang.me/r:id:"..data.id
|
||||||
?>
|
?>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
if HEADER.mobile then
|
if HEADER.mobile then
|
||||||
class = "card mobile"
|
class = "card mobile"
|
||||||
end
|
end
|
||||||
loadscript(BLOG_ROOT.."/view/top.ls")("Welcome to my blog")
|
loadscript(BLOG_ROOT.."/view/top.ls")("Welcome to my blog", false)
|
||||||
if #order == 0 then
|
if #order == 0 then
|
||||||
?>
|
?>
|
||||||
<div class = "notfound">
|
<div class = "notfound">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?lua
|
<?lua
|
||||||
local arg = {...}
|
local arg = {...}
|
||||||
local title = arg[1]
|
local title = arg[1]
|
||||||
|
local render = arg[2]
|
||||||
local cls = ""
|
local cls = ""
|
||||||
if HEADER.mobile then
|
if HEADER.mobile then
|
||||||
cls = "navmobile"
|
cls = "navmobile"
|
||||||
@ -21,19 +22,22 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="rst/hljs/github.css" />
|
<link rel="stylesheet" type="text/css" href="rst/hljs/github.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="assets/style.css" />
|
<link rel="stylesheet" type="text/css" href="assets/style.css" />
|
||||||
<script src="rst/gscripts/jquery-3.2.1.min.js"> </script>
|
<script src="rst/gscripts/jquery-3.2.1.min.js"> </script>
|
||||||
<script src="rst/hljs/highlight.pack.js"> </script>
|
|
||||||
<script src="rst/hljs/highlightjs-line-numbers.min.js"> </script>
|
|
||||||
<script src="rst/gscripts/riot.min.js"> </script>
|
<script src="rst/gscripts/riot.min.js"> </script>
|
||||||
<script src="rst/resources/antos_tags.js"></script>
|
<script src="rst/resources/antos_tags.js"></script>
|
||||||
<script src="rst/main.js"></script>
|
<script src="rst/main.js"></script>
|
||||||
|
<?lua if render then ?>
|
||||||
<script>
|
<script src="rst/hljs/highlight.pack.js"> </script>
|
||||||
|
<script src="rst/hljs/highlightjs-line-numbers.min.js"> </script>
|
||||||
|
<?lua end ?>
|
||||||
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
<?lua if render then ?>
|
||||||
$('pre code').each(function(i, block) {
|
$('pre code').each(function(i, block) {
|
||||||
hljs.highlightBlock(block);
|
hljs.highlightBlock(block);
|
||||||
hljs.lineNumbersBlock(block);
|
hljs.lineNumbersBlock(block);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
<?lua end ?>
|
||||||
window.twttr = (function(d, s, id) {
|
window.twttr = (function(d, s, id) {
|
||||||
var js, fjs = d.getElementsByTagName(s)[0],
|
var js, fjs = d.getElementsByTagName(s)[0],
|
||||||
t = window.twttr || {};
|
t = window.twttr || {};
|
||||||
|
Loading…
Reference in New Issue
Block a user