aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/home.tmpl
diff options
context:
space:
mode:
authorwULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <61180606+wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf@users.noreply.github.com>2020-11-15 17:28:08 +0100
committerGitHub <noreply@github.com>2020-11-15 16:28:08 +0000
commit3ea237b333a963ad8298367edcaad1b2988f7054 (patch)
tree07e2c1d4e0fe99d4a0beaccaa0b8c643eea07f6c /templates/org/home.tmpl
parentd025d84d91a43a691d748323cd74d0fdc5ecc9bf (diff)
downloadgitea-3ea237b333a963ad8298367edcaad1b2988f7054.tar.gz
gitea-3ea237b333a963ad8298367edcaad1b2988f7054.zip
Add markdown support in organization description (#13549)
Similarly to how you can write some markdown in user profile description, you can now use the same feature in organization description. As discussed in discord. kudos to @mrsdizzie and @zeripath visualization: ![image](https://user-images.githubusercontent.com/61180606/99115919-8004a200-25f3-11eb-8bbd-ab33de2cabb3.png)
Diffstat (limited to 'templates/org/home.tmpl')
-rw-r--r--templates/org/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index fba7de3f1f..7f72c61e92 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -13,7 +13,7 @@
</span>
{{if .IsOrganizationOwner}}<a class="middle text grey" href="{{.OrgLink}}/settings">{{svg "octicon-gear"}}</a>{{end}}
</div>
- {{if .Org.Description}}<p class="desc">{{.Org.Description}}</p>{{end}}
+ {{if $.RenderedDescription}}<p class="render-content markdown">{{$.RenderedDescription|Str2html}}</p>{{end}}
<div class="text grey meta">
{{if .Org.Location}}<div class="item">{{svg "octicon-location"}} <span>{{.Org.Location}}</span></div>{{end}}
{{if .Org.Website}}<div class="item">{{svg "octicon-link"}} <a target="_blank" rel="noopener noreferrer" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}}