mirror of
https://github.com/cuigh/swirl
synced 2024-12-30 15:53:24 +00:00
Set html lang attribute
This commit is contained in:
parent
659e32438c
commit
42f3ad8b23
1
main.go
1
main.go
@ -40,6 +40,7 @@ func main() {
|
||||
AddFunc("time", misc.FormatTime(setting.TimeZone.Offset)).
|
||||
AddFunc("i18n", misc.Message(setting.Language)).
|
||||
AddFuncs(misc.Funcs).
|
||||
AddVariable("language", setting.Language).
|
||||
AddVariable("version", misc.Version).
|
||||
AddVariable("go_version", runtime.Version())
|
||||
ws.Validator = valid.New()
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ language == "" ? "en" : language }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ language == "" ? "en" : language }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
Loading…
Reference in New Issue
Block a user