May 22nd 2026 - Things I Worked On

Added hiding/showing summaries in blog index

/* Hide the second paragraph by default */
.org-ul li p:nth-child(2) {
    display: none;
    margin-top: 5px;
}

/* Default state: Right-pointing arrow */
.month .org-ul li::marker {
    content: "▶ ";
    font-size: 0.9em;
    color: #fea7d8;
}

/* Open state: Down-pointing arrow */
.month .org-ul li.open::marker {
    content: "▼ ";
}
document.addEventListener("DOMContentLoaded", () => {
    // 1. Target all list items on the page
    const allListItems = document.querySelectorAll('.org-ul li');

    // 2. Initialize the very first li to be open by default
    if (allListItems.length > 0) {
        const firstLi = allListItems[0];
        const firstTargetParagraph = firstLi.querySelectorAll('p')[1];

        if (firstTargetParagraph) {
            firstLi.classList.add('open');
            firstTargetParagraph.style.display = 'block';
        }
    }

    // 3. Handle click-to-toggle logic for all items
    allListItems.forEach(li => {
        li.style.cursor = 'pointer';

        li.addEventListener('click', (e) => {
            // Let the actual link work normally if clicked
            if (e.target.tagName === 'A') return;

            // Find the second paragraph inside this list item
            const targetParagraph = li.querySelectorAll('p')[1];

            if (targetParagraph) {
                if (targetParagraph.style.display === 'block') {
                    targetParagraph.style.display = 'none';
                    li.classList.remove('open'); // Point arrow right
                } else {
                    targetParagraph.style.display = 'block';
                    li.classList.add('open');    // Point arrow down
                }
            }
        });
    });
});

Started looking into locally installing an LLM

I'm trying to avoid the inevitable fact that one day LLMs will no longer be free to use and the limitations imposed on them will negatively impact the results I'm getting now. I started looking into Ollama for local installation.

Added no caching in blog index

#+HTML_HEAD: <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
#+HTML_HEAD: <meta http-equiv="Pragma" content="no-cache">
#+HTML_HEAD: <meta http-equiv="Expires" content="0">

Added opening link in EWW Readable Mode

Sometimes I want to open web links in EWW instead of my regular graphical browser.

(defun my/eww-open-link-at-point-readable ()
  "Open link at point in EWW with readable mode enabled."
  (interactive)
  (let ((url (or (get-text-property (point) 'shr-url)
                 (thing-at-point 'url t))))
    (unless url
      (user-error "No URL at point"))
    (eww url)
    (add-hook 'eww-after-render-hook #'eww-readable nil t)))

(evil-leader/set-key
  "o e" 'my/eww-open-link-at-point-readable)