mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 08:47:42 -05:00
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:
commit
a8f5ad1437
2 changed files with 2 additions and 1 deletions
|
@ -120,6 +120,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)
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
}
|
||||
|
||||
#readme_profile {
|
||||
padding: 10px;
|
||||
padding: 1em 2em;
|
||||
border-radius: 0.28571429rem;
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--color-secondary);
|
||||
|
|
Loading…
Reference in a new issue