alpha p3
This commit is contained in:
@@ -19,12 +19,14 @@ function M.fes(header, footer)
|
||||
version = site_config.version or "",
|
||||
title = site_config.title or "Document",
|
||||
copyright = site_config.copyright or "© The Copyright Holder",
|
||||
favicon = "/image/favicon.ico",
|
||||
header = header or [[
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="{{FAVICON}}">
|
||||
<title>{{TITLE}}</title>
|
||||
<style>
|
||||
html, body {
|
||||
@@ -100,7 +102,7 @@ a {
|
||||
}
|
||||
|
||||
.hidden {
|
||||
color: #dfe9ee;
|
||||
color: #dfe9ee;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -369,7 +371,7 @@ em, i {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
margin-top: 28px !important; /* <— Makes it reappear */
|
||||
margin-top: 28px !important;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -409,7 +411,9 @@ for name, func in pairs(std) do
|
||||
end
|
||||
|
||||
function M:build()
|
||||
local header = self.header:gsub("{{TITLE}}", self.title or "Document")
|
||||
local header = self.header
|
||||
header = header:gsub("{{TITLE}}", self.title or "Document")
|
||||
header = header:gsub("{{FAVICON}}", self.favicon or "")
|
||||
local footer = self.footer:gsub("{{COPYRIGHT}}", self.copyright or "© The Copyright Holder")
|
||||
return header .. table.concat(self.parts, "\n") .. footer
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user