Skip to content

Add Maya static generator and seed pages#48

Merged
ScriptVoyageMaster merged 1 commit intomainfrom
codex/integrate-daily-static-page-generator
Oct 21, 2025
Merged

Add Maya static generator and seed pages#48
ScriptVoyageMaster merged 1 commit intomainfrom
codex/integrate-daily-static-page-generator

Conversation

@ScriptVoyageMaster
Copy link
Copy Markdown
Owner

Summary

  • implement a Node-based generator that reads configuration, pairs, and overrides to create static Maya date pages
  • add configuration, template, and tracking files for the static pipeline along with canonical pair data
  • pre-generate minimal SEO pages and sitemap entries for the first two glyph-tone pairs as a baseline export

Testing

  • node scripts/generateDatePages.js

https://chatgpt.com/codex/tasks/task_e_68f2081adc848320b5ed989a0b8c984d

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +585 to +599
const replacements = new Map([
["{{PAGE_TITLE}}", escapeHtml(`${titleUa} — ${humanDate}`)],
["{{META_DESCRIPTION}}", escapeHtml(metaUa)],
["{{OG_TITLE}}", escapeHtml(`${titleUa} — ${humanDate}`)],
["{{OG_DESCRIPTION}}", escapeHtml(metaUa)],
["{{OG_IMAGE}}", escapeHtml(ogImage)],
["{{CANONICAL_URL}}", escapeHtml(canonicalUrl)],
["{{JSON_LD}}", indentJson(jsonLd, 6)],
["{{H1_TEXT}}", escapeHtml(`Гороскоп Майя на ${humanDate} — ${titleUa}`)],
["{{LEAD_PARAGRAPH}}", escapeHtml(metaUa)],
["{{GLYPH_NAME}}", escapeHtml(glyphName)],
["{{TONE_VALUE}}", escapeHtml(toneValue)],
["{{QUALITIES_BLOCK}}", qualitiesBlock],
["{{CTA_URL}}", escapeHtml(`/?date=${isoDate}`)],
["{{SERVICE_COMMENT}}", buildServiceComment({
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Respect site_base_url when building CTA links

The call‑to‑action URL is hardcoded as /?date=${isoDate}. This works only when the site is hosted at the domain root, but the generator exposes site_base_url specifically to support deployments under a sub‑path (e.g. https://example.com/aura). In such cases the generated link points to https://example.com/?date=… instead of the interactive page at https://example.com/aura/?date=…, leaving every CTA broken. The URL should be derived from site_base_url (via something like buildCanonicalUrl) so the base path is preserved.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant