39292-vm/update_about_structure.py
2026-03-26 22:39:58 +00:00

22 lines
887 B
Python

import re
with open('current_about_post.html', 'r', encoding='utf-8') as f:
content = f.read()
# Fix layout constraints
layout_fixes = """/* Reset and Core for About Page */
body.page-id-48 .entry-content.wp-block-post-content.has-global-padding.is-layout-constrained { padding-left: 0 !important; padding-right: 0 !important; }
body.page-id-48 .entry-content.wp-block-post-content.is-layout-constrained > .about-page { max-width: none !important; }
"""
content = re.sub(r'/\* Reset and Core for About Page \*/', layout_fixes, content)
# Update container width to match main page
content = re.sub(
r'\.about-container \{\s*width: min\(1200px, calc\(100% - 48px\)\);\s*margin: 0 auto;\s*\}',
'.about-container { width: min(1440px, calc(100% - 72px)); margin: 0 auto; }',
content
)
with open('current_about_post.html', 'w', encoding='utf-8') as f:
f.write(content)