all repos — legit @ 4207c35fb06ccd3c69104a525edfc131d597ca38

web frontend for git, written in go

templates: Use HTML Standards Mode The lack of <!DOCTYPE html> causes browsers to enter HTML Quirks mode, where "layout emulates behavior in Navigator 4 and Internet Explorer 5". References: https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

Runxi Yu
commit

4207c35fb06ccd3c69104a525edfc131d597ca38

parent

5acac24dede0143e6415d83d94a66017fd3c2692

M templates/404.htmltemplates/404.html
@@ -1,4 +1,5 @@
{{ define "404" }} +<!DOCTYPE html> <html> <title>404</title> {{ template "head" . }}
M templates/500.htmltemplates/500.html
@@ -1,4 +1,5 @@
{{ define "500" }} +<!DOCTYPE html> <html> <title>500</title> {{ template "head" . }}
M templates/commit.htmltemplates/commit.html
@@ -1,4 +1,5 @@
{{ define "commit" }} +<!DOCTYPE html> <html> {{ template "head" . }}
M templates/file.htmltemplates/file.html
@@ -1,4 +1,5 @@
{{ define "file" }} +<!DOCTYPE html> <html> {{ template "head" . }} {{ template "repoheader" . }}
M templates/index.htmltemplates/index.html
@@ -1,4 +1,5 @@
{{ define "index" }} +<!DOCTYPE html> <html> {{ template "head" . }}
M templates/log.htmltemplates/log.html
@@ -1,4 +1,5 @@
{{ define "log" }} +<!DOCTYPE html> <html> {{ template "head" . }}
M templates/refs.htmltemplates/refs.html
@@ -1,4 +1,5 @@
{{ define "refs" }} +<!DOCTYPE html> <html> {{ template "head" . }}
M templates/repo.htmltemplates/repo.html
@@ -1,4 +1,5 @@
{{ define "repo" }} +<!DOCTYPE html> <html> {{ template "head" . }}
M templates/tree.htmltemplates/tree.html
@@ -1,4 +1,5 @@
{{ define "tree" }} +<!DOCTYPE html> <html> {{ template "head" . }}