How to add an AI Agent to your Hugo website

This guide explains step-by-step how to add a simple client-side chatbot to a Hugo site using an OpenAI-compatible endpoint (for example, Azure OpenAI). It covers the HTML layout, JavaScript to call the API, and security notes for handling API keys. Summary Add a chatbot layout or partial to your theme or layouts/_default. Add a page (e.g. /ai-agent/) that uses the layout. Implement client-side JavaScript to call your AI provider. Keep secrets out of client-side code (preferred: proxy the requests server-side or use short-lived tokens). 1) Create the layout or partial Create layouts/_default/chatbot.html (or layouts/partials/chatbot.html) with a container, input box, and a small script. A working example is already included in this repository at layouts/_default/chatbot.html. ...

October 21, 2025 · 3 min

Update ChatGPT AI page to black theme

Steps to update ChatGPT Ai website to have black theme How to Enable Dark Mode in Browsers Follow these steps to enable a dark theme (or dark mode) in popular browsers. 1. Google Chrome Enable System-Wide Dark Mode (Automatic Approach) Windows: Go to Settings > Personalization > Colors. Under “Choose your color,” select Dark. Mac: Go to System Preferences > General. In “Appearance,” select Dark. Chrome will switch to dark mode automatically. ...

November 19, 2024 · 2 min