βIn many ways my life has been rather like a record of the lost and found. Perhaps all lives are like that.β
β Lucy Foley, The Book of Lost and Found
]*>")
if a then
local c,d = content:find("[Hh]1>")
if c then
title = content:sub(b+1, c-1)
end
end
url = "https://blog.lxsang.me/r:id:"..data.id
topview(title, true, url, data.tags)
end
-- fetch the similar posts from database
local db = require("db.model").get(BLOG_ADMIN,"st_similarity", nil)
local similar_posts = nil
if db then
local records = db:find({ exp = {["="] = {pid = data.id}}, order = {score = "DESC"}})
--echo("records size is #"..#records)
local pdb = require("db.model").get(BLOG_ADMIN,"blogs", nil)
if(pdb) then
similar_posts = {}
for k,v in pairs(records) do
similar_posts[k] = { st = v, post = pdb:get(v.sid) }
end
pdb:close()
end
db:close()
end
?>
=data.ctimestr:gsub("%s+.*$","")?>
'..tag..""
i = i+ 1
end
end
echo(table.concat(atags, ", "))
?>
")
if r then
echo(content:sub(0,r-1))
echo(content:sub(s+1))
else
echo(content)
end
?>