forgejo/templates
Gusted 76dffc8621
[GITEA] Improve HTML title on repositories
- The `<title>` element that lives inside the `<head>` element is an important element that gives browsers and search engine crawlers the title of the webpage, hence the element name. It's therefor important that this title is accurate.
- Currently there are three issues with titles on repositories. It doesn't use the `FullName` and instead only uses the repository name, this doesn't distinguish which user or organisation the repository is on. It doesn't show the full treepath in the title when visiting an file inside a directory and instead only uses the latest path in treepath. It can show the repository name twice if the `.Title` variable also included the repository name such as on the repository homepage.
- Use the repository's fullname (which include which user the repository is on) instead of just their name.
- Display the repository's fullname if it isn't already in `.Title`.
- Use the full treepath in the repository code view instead of just the
last path.
- Adds integration tests.
- Adds a new repository (`repo59`) that has 3 depths for folders, which
wasn't in any other fixture repository yet, so the full treepath for
could be properly tested.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1276

(cherry picked from commit ff9a6a2cda)
2023-08-22 13:57:39 +02:00
..
admin [GITEA] add option for banning dots in usernames 2023-08-22 10:01:20 +02:00
api/packages/pypi
base [GITEA] Improve HTML title on repositories 2023-08-22 13:57:39 +02:00
code
custom
devtest Improve some flex layouts (#26649) 2023-08-22 12:57:02 +08:00
explore remove unnecessary explore org template (#26459) 2023-08-11 16:07:04 -04:00
mail
org Fix display problems of members and teams unit (#26363) 2023-08-15 16:00:35 +02:00
package Use flex classes in package settings (#26314) 2023-08-08 18:28:24 +02:00
projects fix grab cursor on default column (#26476) 2023-08-14 09:15:16 +08:00
repo [FEAT] add Forgero Git Service 2023-08-22 09:30:41 +02:00
shared Fix typo of RunerOwnerID (#26508) 2023-08-15 23:10:40 +00:00
status
swagger [GITEA] Add Upload URL to release API 2023-08-22 10:01:20 +02:00
user Remove avatarHTML from template helpers (#26598) 2023-08-21 15:00:14 +00:00
home.tmpl
install.tmpl
post-install.tmpl