Skip to content

Commit 8f92202

Browse files
committed
Better head elements.
1 parent ad4428e commit 8f92202

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

html.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ func (app App) HTML() []byte {
2121

2222
var buffer bytes.Buffer
2323
buffer.WriteString(`<!DOCTYPE html>`)
24-
buffer.WriteString(`<html dir="ltr" lang="en"><meta charset="utf-8">`)
25-
buffer.WriteString(`<head>`)
24+
buffer.WriteString(`<html dir="ltr" lang="en">`)
25+
buffer.WriteString(`<head><meta charset="utf-8">`)
2626

2727
buffer.WriteString(`<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">`)
2828

@@ -33,7 +33,7 @@ func (app App) HTML() []byte {
3333
<meta name="mobile-web-app-capable" content="yes">
3434
<meta name="apple-mobile-web-app-capable" content="yes">
3535
<meta name="apple-mobile-web-app-status-bar-style" content="black">
36-
<meta name="apple-mobile-web-app-title" content="` + app.Name + `" />
36+
<meta name="apple-mobile-web-app-title" content="` + app.Name + `">
3737
`)
3838

3939
//Important meta tags.
@@ -47,7 +47,7 @@ func (app App) HTML() []byte {
4747
4848
<meta name="msapplication-config" content="/browserconfig.xml">
4949
50-
<meta name="twitter:card" content="app"></meta>
50+
<meta name="twitter:card" content="app">
5151
`)
5252

5353
for i, icon := range app.Icons {

0 commit comments

Comments
 (0)