chore: remove SSL auto-renew notice from page

- drop the SSL note from hero meta, footer column and meta description
- footer becomes two columns; ssl_note removed from data schema, payload and server serializer
- content-only change: service worker version unchanged (network-first)
This commit is contained in:
Bkk1234 committed 2026-11-19 01:35:33 +07:00
1 parent aa6378aec2
commit ebaefc8fb7
10 files changed
+6 -20

No files matched your search

+1 -4
View File
@@ -58,7 +58,7 @@ function renderRoute({ path, view }) {
function updateChrome() {
const site = state.data.site || {};
const contact = main?.closest("body")?.querySelector("[data-contact-link]");
const contact = document.querySelector("[data-contact-link]");
if (contact) {
if (site.contact_email) {
contact.href = `mailto:${site.contact_email}`;
@@ -68,9 +68,6 @@ function updateChrome() {
contact.textContent = "เพิ่มอีเมลติดต่อได้ในหน้าจัดการ";
}
}
document.querySelectorAll("[data-ssl-note]").forEach((node) => {
if (site.ssl_note) node.textContent = site.ssl_note;
});
}
function skeleton() {
-2
View File
@@ -11,7 +11,6 @@ export const DEFAULT_SITE = {
welcome_message:
"สวัสดี คนที่เข้ามาดูโปรเจคอดิเรกของเรา เลือกโปรเจคที่อยากดู ขอบคุณครับ",
contact_email: "",
ssl_note: "ทุกเว็บใช้ SSL ฟรี ต่ออายุอัตโนมัติ",
};
const DEFAULT_PROJECT = {
@@ -62,7 +61,6 @@ export function toPublishPayload(data) {
site_title: data.site.site_title,
welcome_message: data.site.welcome_message,
contact_email: data.site.contact_email,
ssl_note: data.site.ssl_note,
},
projects: data.projects.map((p) => ({
project_id: p.project_id,
-1
View File
@@ -110,7 +110,6 @@ export function homeView(ctx) {
</form>
<div class="hero__meta">
<span>${icon("folder")}<span data-countup="${total}">${total}</span> โปรเจค</span>
<span>${icon("shield")}${escapeHtml(site.ssl_note)}</span>
${
withEmail
? `<span>${icon("list")}${withEmail} โปรเจคมีอีเมลติดต่อ</span>`