Merge pull request 'Improve profile readme rendering (#25988)' (#1240) from earl-warren/forgejo:forgejo-v1.20-readme into v1.20/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1240
This commit is contained in:
Gusted 2023-08-11 08:54:23 +00:00
commit a8f5ad1437
2 changed files with 2 additions and 1 deletions

View file

@ -120,6 +120,7 @@ func Profile(ctx *context.Context) {
profileContent, err := markdown.RenderString(&markup.RenderContext{ profileContent, err := markdown.RenderString(&markup.RenderContext{
Ctx: ctx, Ctx: ctx,
GitRepo: gitRepo, GitRepo: gitRepo,
Metas: map[string]string{"mode": "document"},
}, bytes) }, bytes)
if err != nil { if err != nil {
ctx.ServerError("RenderString", err) ctx.ServerError("RenderString", err)

View file

@ -126,7 +126,7 @@
} }
#readme_profile { #readme_profile {
padding: 10px; padding: 1em 2em;
border-radius: 0.28571429rem; border-radius: 0.28571429rem;
background: var(--color-card); background: var(--color-card);
border: 1px solid var(--color-secondary); border: 1px solid var(--color-secondary);