- Wrapped file view, blame, and directory listing sections inside `{{if .IsSigned}}` blocks to restrict content visibility to authenticated users.
- Moved `repo/sub_menu` template inclusion into the signed-in block for both home and directory views.
- Added duplicate `{{if .IsSigned}}` check and redundant template calls for view_file, blame, and view_list to correct nested conditional structure.
- Removed `{{if .IsSigned}}` guard from the original `repo/sub_menu` call to prevent double rendering and align with new layout.