Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions previewer/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ var ExtJSMap = map[string]template.HTML{
".xml": "xml",
".coffee": "coffee",
".sh": "sh",
".log": "log",
".conf": "conf",
}

func (i *Code) Preview(content []byte) template.HTML {
Expand Down
2 changes: 1 addition & 1 deletion previewer/previewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var image = new(Image)
var codeExtensions = [...]string{
".go", ".php", ".html", ".css", ".js", ".py", ".md",
".c", ".cpp", ".java", ".sh", ".tmpl", ".mod", ".sum",
".sql", ".json", ".txt",
".sql", ".json", ".txt", ".yml", "yaml", ".log", ".conf",
}

func IsCode(ext string) bool {
Expand Down