mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 07:42:25 -05:00
[feature] opengraph meta tags (#806)
* f0x gitignore additions * better meta title and descriptions * user avatar icon for thread and profile meta tags * use proper tag for image * whitespace * add noescapeAttr template function * use ogMeta struct for opengraph * maxOGDescriptionLength = 300 Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
a872ddebe6
commit
d09ddb4769
7 changed files with 179 additions and 7 deletions
|
|
@ -102,6 +102,7 @@ func (m *Module) profileGETHandler(c *gin.Context) {
|
|||
c.HTML(http.StatusOK, "profile.tmpl", gin.H{
|
||||
"instance": instance,
|
||||
"account": account,
|
||||
"ogMeta": ogBase(instance).withAccount(account),
|
||||
"statuses": statusResp.Items,
|
||||
"statuses_next": statusResp.NextLink,
|
||||
"show_back_to_top": showBackToTop,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue