feat: implement modular UMass theme components and supporting generation scripts for home page structure

This commit is contained in:
2026-07-29 23:03:29 +07:00
parent c1e0e39aad
commit 317df123bb
37 changed files with 7044 additions and 192 deletions
+25
View File
@@ -0,0 +1,25 @@
import re
import sys
def main():
try:
with open('src/main/resources/templates/index.html', 'r', encoding='utf-8') as f:
content = f.read()
# Find the start of content-top
content_top_start = content.find('<div class="content-top">')
if content_top_start == -1:
print("Could not find content-top")
sys.exit(1)
# Find the end of content-top (heuristic: before <div class="lc--layout-container"> for the next block)
# Actually, let's just find the next block, which starts with <div class="lc--layout-container">
# In index.html, content-top is lines 128 to 337
next_block_start = content.find('<div class="lc--layout-container"', content_top_start + 100)
# Actually, it's safer to extract from .temp/snippets/ when they are dumped.
except Exception as e:
print(e)
if __name__ == '__main__':
main()