Ads readiness, lead delivery, project inventory
- SEO/ads: title, description, canonical, OG 1200x630, JSON-LD, robots, sitemap, .htaccess - Privacy policy page with operator data; server-side consent check; cookie reset in footer - Metrika loads only after cookie consent; goals lead / email_click / phone_click; utm and yclid stored with the lead - Form delivery: store, Telegram, SMTP, webhook; config presets; dev stub - Project window shows public sections only; Moba copy rewritten - Fix 14 px horizontal overflow in the filter bar on phones - Move history to archive/; add docs/project-inventory.md and docs/lead-delivery.md
This commit is contained in:
1 parent
e352335822
commit
b60d00d55c
47 files changed
+1665
-202
No files matched your search
@@ -94,10 +94,28 @@ function toList(v) {
|
||||
return t.includes(',') ? t.split(',').map((s) => s.trim()).filter(Boolean) : [t];
|
||||
}
|
||||
|
||||
// .md хранит путь от корня сайта (/Work_files/...), страница живёт в src/ → добавляем ../
|
||||
// Пути в .md заданы от корня сайта (/Work_files/…) — в разметке используются как есть.
|
||||
// ⚠️ Деплой: содержимое src/ кладётся в docroot, Work_files/ и api/ — рядом с ним.
|
||||
function sitePath(p) {
|
||||
const s = String(p == null ? '' : p).trim();
|
||||
return s.replace(/^\/(?=Work_files)/, '../');
|
||||
return String(p == null ? '' : p).trim();
|
||||
}
|
||||
|
||||
// Публичная часть кейса. В content/*.md рядом с публичным текстом живут рабочие пометки
|
||||
// («поле заполняет заказчик», «ждём кадр от команды», локальные пути на диск). В окно проекта
|
||||
// уходит только то, что можно показать клиенту: «О проекте…» и «Факты о разработке».
|
||||
const PUBLIC_SECTIONS = [/^О проекте/i, /^Факты о разработке/i];
|
||||
|
||||
function publicDetail(body) {
|
||||
const out = [];
|
||||
for (const part of String(body).split(/^##\s+/m)) {
|
||||
const nl = part.indexOf('\n');
|
||||
const title = (nl === -1 ? part : part.slice(0, nl)).trim();
|
||||
const text = (nl === -1 ? '' : part.slice(nl + 1)).trim();
|
||||
if (text && PUBLIC_SECTIONS.some((re) => re.test(title))) {
|
||||
out.push('## ' + title + '\n\n' + text);
|
||||
}
|
||||
}
|
||||
return out.join('\n\n');
|
||||
}
|
||||
|
||||
function slugToName(slug) {
|
||||
@@ -132,7 +150,7 @@ function loadProjects() {
|
||||
images: toList(meta.images).map(sitePath),
|
||||
metrics: (meta.metrics && typeof meta.metrics === 'object') ? meta.metrics : '',
|
||||
summary: coerce(meta.summary),
|
||||
detail: body,
|
||||
detail: publicDetail(body),
|
||||
};
|
||||
out.push(p);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user