update with favicon
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
djasjkdjaslkdjaskl
|
|
||||||
BIN
fsd.vxserver.dev/static/favicon.ico
Normal file
BIN
fsd.vxserver.dev/static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -8,6 +8,7 @@ local title = "Free Software Distributions"
|
|||||||
|
|
||||||
site.title = title .. "- About"
|
site.title = title .. "- About"
|
||||||
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||||
|
site.favicon = "/static/favicon.ico"
|
||||||
|
|
||||||
site:banner(fes.app.header.render(std))
|
site:banner(fes.app.header.render(std))
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ local title = "Free Software Distributions"
|
|||||||
|
|
||||||
site.title = title .. "- FAQ"
|
site.title = title .. "- FAQ"
|
||||||
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||||
|
site.favicon = "/static/favicon.ico"
|
||||||
|
|
||||||
site:banner(fes.app.header.render(std))
|
site:banner(fes.app.header.render(std))
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ local title = "Free Software Distributions"
|
|||||||
|
|
||||||
site.title = title
|
site.title = title
|
||||||
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||||
|
site.favicon = "/static/favicon.ico"
|
||||||
|
|
||||||
site:banner(fes.app.header.render(std))
|
site:banner(fes.app.header.render(std))
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ local title = "Free Software Distributions"
|
|||||||
|
|
||||||
site.title = title .. " - Site news"
|
site.title = title .. " - Site news"
|
||||||
site.copyright = u.copyright("[https://git.vxserver.dev/fSD](https://git.vxserver.dev/fSD)", "fSD")
|
site.copyright = u.copyright("[https://git.vxserver.dev/fSD](https://git.vxserver.dev/fSD)", "fSD")
|
||||||
|
site.favicon = "/static/favicon.ico"
|
||||||
site:banner(fes.app.header.render(std))
|
site:banner(fes.app.header.render(std))
|
||||||
|
|
||||||
local function url_encode(s)
|
local function url_encode(s)
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
local fes = require("fes")
|
|
||||||
local std = fes.std
|
|
||||||
local u = fes.util
|
|
||||||
|
|
||||||
local site = fes.fes()
|
|
||||||
|
|
||||||
local title = "Free Software Distributions"
|
|
||||||
|
|
||||||
site.title = title .. " - Random Article"
|
|
||||||
site:banner(std.center(std.h3(std.a("javascript:window.history.back();", "Return"))))
|
|
||||||
|
|
||||||
math.randomseed(os.time())
|
|
||||||
|
|
||||||
local articles_dir = "article"
|
|
||||||
local files = {}
|
|
||||||
|
|
||||||
local p = io.popen("ls -1 " .. articles_dir)
|
|
||||||
if p then
|
|
||||||
for file in p:lines() do
|
|
||||||
if file:match("%.md$") then
|
|
||||||
files[#files + 1] = file
|
|
||||||
end
|
|
||||||
end
|
|
||||||
p:close()
|
|
||||||
end
|
|
||||||
|
|
||||||
local chosen = files[math.random(#files or 1)]
|
|
||||||
local content = ""
|
|
||||||
|
|
||||||
if chosen then
|
|
||||||
local f = io.open(articles_dir .. "/" .. chosen, "r")
|
|
||||||
if f then
|
|
||||||
content = f:read("*a")
|
|
||||||
f:close()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local html = fes.markdown_to_html(content or "")
|
|
||||||
|
|
||||||
site:note(u.cc({
|
|
||||||
std.div(html)
|
|
||||||
}))
|
|
||||||
|
|
||||||
return site
|
|
||||||
@@ -8,6 +8,7 @@ local title = "Free Software Distributions"
|
|||||||
|
|
||||||
site.title = title .. " - Release"
|
site.title = title .. " - Release"
|
||||||
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
site.copyright = u.copyright("https://git.vxserver.dev/fSD", "fSD")
|
||||||
|
site.favicon = "/static/favicon.ico"
|
||||||
|
|
||||||
site:banner(fes.app.header.render(std))
|
site:banner(fes.app.header.render(std))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user