diff options
author | Linus Groh <mail@linusgroh.de> | 2023-09-01 18:59:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 16:59:24 +0000 |
commit | 5743d7cb5bcd85c88ad7d128e0162893a074418b (patch) | |
tree | a35eeaeb6c1addc4fe564305ddd9eac01de0ff0f /LICENSE | |
parent | 9881b8a4e24bc81b1acd80b51c5c2541b063149e (diff) | |
download | gitea-5743d7cb5bcd85c88ad7d128e0162893a074418b.tar.gz gitea-5743d7cb5bcd85c88ad7d128e0162893a074418b.zip |
Improve opengraph previews (#26851)
Add more useful Open Graph metadata for commit and file URLs:
- Set `og:title` to the page title, which is a concise summary in both
cases (`<commit message> ยท <commit hash>` and `<filename> at <branch>`,
respectively)
- Set `og:description` to the commit message body, if available
- Set `og:url` to the relevant URLs instead of the repo URL
Also move the relevant meta tags into a separate template as they now
take up the majority of the base head template.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions