Setting a Favicon for Your Hugo Site: A Quick Guide

To set a favicon for your Hugo site, follow these steps: 1. Prepare Your Favicon Create a favicon image, typically a 32x32 pixel .ico file or .png file. You can use free tools like Favicon Generator to create one. 2. Place the Favicon in Your Project Save the favicon file in your Hugo project’s static directory. Example paths: static/favicon.ico static/favicon.png 3. Update Your Site’s HTML Head Add the following code to the <head> section of your site’s HTML template. This is usually in the layouts/_default/baseof.html or layouts/_default/head.html file, depending on your theme: ...

March 27, 2025 · 1 min · Taner

Verifying and Configuring HTTP Headers in Lighttpd

To check how headers are being sent on your Lighttpd server, including verifying if the X-Robots-Tag header is set properly, you can use the following steps: Modify Lighttpd Configuration: Ensure the header is being set in your Lighttpd configuration file (lighttpd.conf). Use the following syntax to add the X-Robots-Tag header: setenv.add-response-header = ("X-Robots-Tag" => "noindex, nofollow") Restart Lighttpd: After updating the configuration file, restart the server to apply changes: ...

March 27, 2025 · 2 min · Taner