1
0

Set a corresponding lang attr to an html tag.

This commit is contained in:
Alexander Andreev 2024-09-17 03:13:30 +04:00
parent 1d079772ff
commit 99aa85f271
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -10,7 +10,7 @@ import "git.arav.su/Arav/dwelling-home/pkg/util"
templ base(title, description, keywords, canonical string, r *http.Request, head templ.Component) { templ base(title, description, keywords, canonical string, r *http.Request, head templ.Component) {
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang={ i18n.GetLocale(ctx).Code().String() }>
<head> <head>
if title != "" && title != "Home" { if title != "" && title != "Home" {
<title>{ title } - Arav's dwelling</title> <title>{ title } - Arav's dwelling</title>