Add documentation for FORCE_WEBP

This commit is contained in:
video-prize-ranch
2022-06-04 20:56:04 -04:00
parent de49f1c647
commit ceabddc972
3 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
package pages
import (
"os"
"codeberg.org/video-prize-ranch/rimgo/utils"
"github.com/gofiber/fiber/v2"
)
@@ -13,5 +15,6 @@ func HandleFrontpage(c *fiber.Ctx) error {
return c.Render("frontpage", fiber.Map{
"proto": c.Protocol(),
"domain": c.Hostname(),
"force_webp": os.Getenv("FORCE_WEBP"),
})
}