mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 09:11:53 -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{
|
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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue