Skip to content

Commit

Permalink
fix the bug for the rendering of .html with layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kimakan authored Dec 27, 2023
1 parent d260816 commit fe24305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daiquiri/files/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get(self, request, file_path, **kwargs):
else:
return redirect_to_login(request.path_info)

if file_path.endswith('.html') or file_path.endswith('.md') and directory.layout:
if (file_path.endswith('.html') or file_path.endswith('.md')) and directory.layout:
return render_with_layout(request, file_path)
else:
return send_file(request, file_path)
Expand Down

0 comments on commit fe24305

Please sign in to comment.