Skip to content

Commit

Permalink
Better head elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Splizard committed Feb 14, 2020
1 parent ad4428e commit 8f92202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions html.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func (app App) HTML() []byte {

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

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

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

//Important meta tags.
Expand All @@ -47,7 +47,7 @@ func (app App) HTML() []byte {
<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="twitter:card" content="app"></meta>
<meta name="twitter:card" content="app">
`)

for i, icon := range app.Icons {
Expand Down

0 comments on commit 8f92202

Please sign in to comment.