Migrate mistune to markdown
This commit is contained in:
parent
412945626b
commit
77aaae6735
46 changed files with 5112 additions and 420 deletions
|
@ -207,7 +207,7 @@ class PostView(TitleMixin, CommentedDetailView):
|
|||
context["og_image"] = self.object.og_image
|
||||
context["valid_user_to_show_edit"] = False
|
||||
context["valid_org_to_show_edit"] = []
|
||||
|
||||
|
||||
if self.request.profile in self.object.authors.all():
|
||||
context["valid_user_to_show_edit"] = True
|
||||
|
||||
|
|
|
@ -308,7 +308,6 @@ class ProblemDetail(ProblemMixin, SolvedProblemMixin, CommentedDetailView):
|
|||
metadata = generate_opengraph(
|
||||
"generated-meta-problem:%s:%d" % (context["language"], self.object.id),
|
||||
context["description"],
|
||||
"problem",
|
||||
)
|
||||
context["meta_description"] = self.object.summary or metadata[0]
|
||||
context["og_image"] = self.object.og_image or metadata[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue