|
@@ -198,6 +198,8 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
|
|
|
|
|
|
case base.IsPDFFile(buf):
|
|
case base.IsPDFFile(buf):
|
|
ctx.Data["IsPDFFile"] = true
|
|
ctx.Data["IsPDFFile"] = true
|
|
|
|
+ case base.IsVideoFile(buf):
|
|
|
|
+ ctx.Data["IsVideoFile"] = true
|
|
case base.IsImageFile(buf):
|
|
case base.IsImageFile(buf):
|
|
ctx.Data["IsImageFile"] = true
|
|
ctx.Data["IsImageFile"] = true
|
|
}
|
|
}
|