90609c7aaf
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 1m57s
elc's heredoc tokenizer was corrupting the inline CSS: - #FAFAF8 -> FAFAF8 (# treated as comment character) - 'Playfair Display' -> PlayfairDisplay (quotes + space stripped) - padding: 0 2.5rem -> padding:02.5rem (spaces between tokens stripped) The CSS and other complex head content (GA script, JSON-LD schema) have been pre-compiled to C functions (page_css, page_ga_script, page_schema) so they bypass the tokenizer entirely and are stored as properly-escaped C string literals. page_head() now assembles the <head> content using el-html vessel calls (el_meta_charset, el_meta, el_title, el_link_stylesheet, etc.) plus string literals for the vessel gaps. page_open() returns the complete document prologue as a string concatenation with no heredocs. page_close() remains pre-compiled in dist/page_close.c (unchanged).
16 lines
417 B
C
16 lines
417 B
C
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include "el_runtime.h"
|
|
|
|
el_val_t page_ga_script(void);
|
|
|
|
el_val_t page_ga_script(void) {
|
|
return EL_STR("<script>\n"
|
|
" window.dataLayer = window.dataLayer || [];\n"
|
|
" function gtag(){dataLayer.push(arguments);}\n"
|
|
" gtag('js', new Date());\n"
|
|
" gtag('config', 'G-Y1EE43X9RN');\n"
|
|
" gtag('config', 'AW-18140150015');\n"
|
|
" </script>");
|
|
}
|