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
|
||||
local title = "Welcome to my blog"
|
||||
if not #data or #order == 0 then
|
||||
topview(title)
|
||||
topview(title, false)
|
||||
?>
|
||||
<div class = "notfound">
|
||||
<p>No entry found</p>
|
||||
@ -31,7 +31,7 @@
|
||||
title = content:sub(b+1, c-1)
|
||||
end
|
||||
end
|
||||
topview(title)
|
||||
topview(title, true)
|
||||
end
|
||||
local url = "https://blog.lxsang.me/r:id:"..data.id
|
||||
?>
|
||||
|
@ -11,7 +11,7 @@
|
||||
if HEADER.mobile then
|
||||
class = "card mobile"
|
||||
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
|
||||
?>
|
||||
<div class = "notfound">
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?lua
|
||||
local arg = {...}
|
||||
local title = arg[1]
|
||||
local render = arg[2]
|
||||
local cls = ""
|
||||
if HEADER.mobile then
|
||||
cls = "navmobile"
|
||||
@ -21,19 +22,22 @@
|
||||
<link rel="stylesheet" type="text/css" href="rst/hljs/github.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/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/resources/antos_tags.js"></script>
|
||||
<script src="rst/main.js"></script>
|
||||
|
||||
<?lua if render then ?>
|
||||
<script src="rst/hljs/highlight.pack.js"> </script>
|
||||
<script src="rst/hljs/highlightjs-line-numbers.min.js"> </script>
|
||||
<?lua end ?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
<?lua if render then ?>
|
||||
$('pre code').each(function(i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
hljs.lineNumbersBlock(block);
|
||||
});
|
||||
});
|
||||
<?lua end ?>
|
||||
window.twttr = (function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0],
|
||||
t = window.twttr || {};
|
||||
|
Loading…
Reference in New Issue
Block a user