]> source.dussan.org Git - gitea.git/commit
Fix view of readme file in the home code page. (#30564)
authorJiaxin Zhu <shin00pku@gmail.com>
Thu, 25 Apr 2024 00:07:38 +0000 (08:07 +0800)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2024 00:07:38 +0000 (00:07 +0000)
commita63f14b90839821a480fb56fd9b45a27864b77d1
treeada9c4ded9753e8ade4aff3cc004aca90ab6f9fa
parenta19d2bbd90dd22a897220425a1221af8ed065ba7
Fix view of readme file in the home code page. (#30564)

Gitea attempts to display image file, pdf file, etc. named readme in the
home code page (but it cannot).
I think only the markdown and plain-text file should be displayed, which
is also the behavior of GitHub.

Co-authored-by: jxshin <zhujiaxinabc@gmail.com>
templates/repo/view_list.tmpl