icon
Personal Website

Weekly Coding • 2026-03-03

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:

  1. Move my blog post formatting from HTML to Markdown
    1. All posts, old and new, should move
  2. Move texts on other languages into a separate table
    1. Currently, texts are in one big table with three fields: text, textEnglish, textGerman
  3. Use SQL features
    1. Foreign key
    2. Explain
  4. Comments
    1. Display comments on my posts with Smart Progress
    2. Enable posting new comments through my personal website