diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index 6f9f84d60dbdf..a2f8d797be0f8 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -115,6 +115,7 @@ func Profile(ctx *context.Context) { profileContent, err := markdown.RenderString(&markup.RenderContext{ Ctx: ctx, GitRepo: gitRepo, + Metas: map[string]string{"mode": "document"}, }, bytes) if err != nil { ctx.ServerError("RenderString", err) diff --git a/web_src/css/user.css b/web_src/css/user.css index 54a966e7cb471..9fcdb3814aaad 100644 --- a/web_src/css/user.css +++ b/web_src/css/user.css @@ -122,7 +122,7 @@ } #readme_profile { - padding: 10px; + padding: 1em 2em; border-radius: 0.28571429rem; background: var(--color-card); border: 1px solid var(--color-secondary);