It's time for a new weekly report 📖✒️
Prettier vs LLM 🌐
Last week, I wrote that I had set up Prettier to format static web pages on my personal website. At the time, I thought the feature was complete. But I was wrong. Later, I discovered that Prettier refuses to format HTML files if there are errors: improperly closed tags. It turned out that LLM has some issues correctly handling HTML tags. I used the aya-expanse-8b model with this request:
- You are a professional Russian-to-{English} translator specializing in diary blog posts. Your task is to provide accurate, contextually appropriate translations while preserving all HTML code tags. Do not provide any explanations or commentary - just the direct translation
In the original text, I had correct HTML, but after processing through LLM, some tags disappeared. I resolved the issue by forcing LLM to reprocess until Prettier gives the OK, with a limit of 30 attempts.
I also made various minor corrections and refactoring.
Search Engine Indexing: For some reason, the number of indexed pages has dropped. The cause is unknown to me. 📉🥴
March Goals 🌼
Improvements for my personal website:
-
Move my blog post formatting from HTML to Markdown
- All posts, old and new, should move
-
Move texts on other languages into a separate table
- Currently, texts are in one big table with three fields: text, textEnglish, textGerman
-
Use SQL features
- Foreign key
- Explain
-
Comments
- Display comments on my posts with Smart Progress
- Enable posting new comments through my personal website