mirror of
https://github.com/cuigh/swirl
synced 2025-01-02 17:16:37 +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("time", misc.FormatTime(setting.TimeZone.Offset)).
|
||||||
AddFunc("i18n", misc.Message(setting.Language)).
|
AddFunc("i18n", misc.Message(setting.Language)).
|
||||||
AddFuncs(misc.Funcs).
|
AddFuncs(misc.Funcs).
|
||||||
|
AddVariable("language", setting.Language).
|
||||||
AddVariable("version", misc.Version).
|
AddVariable("version", misc.Version).
|
||||||
AddVariable("go_version", runtime.Version())
|
AddVariable("go_version", runtime.Version())
|
||||||
ws.Validator = valid.New()
|
ws.Validator = valid.New()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{ language == "" ? "en" : language }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="{{ language == "" ? "en" : language }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
Loading…
Reference in New Issue
Block a user