aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/views
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-03-23 17:34:34 +0800
committerGravatar kosayoda <[email protected]>2021-03-23 18:35:25 +0800
commit102ac2be5523bb4a26157168e426fae8f15cf28c (patch)
tree241f27e417d9048e3b2956974a77fbea7bb568f2 /pydis_site/apps/content/views
parentRemove Github metadata feature. (diff)
Simplify relevant_links configuration in markdown.
Diffstat (limited to 'pydis_site/apps/content/views')
-rw-r--r--pydis_site/apps/content/views/article_category.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pydis_site/apps/content/views/article_category.py b/pydis_site/apps/content/views/article_category.py
index 51b1def2..2a407b99 100644
--- a/pydis_site/apps/content/views/article_category.py
+++ b/pydis_site/apps/content/views/article_category.py
@@ -48,12 +48,7 @@ class ArticleOrCategoryView(TemplateView):
context["category_data"] = {"name": None, "raw_name": None}
context["article"] = article_result
- context["relevant_links"] = {
- link: value for link, value in zip(
- article_result["metadata"].get("relevant_links", "").split(","),
- article_result["metadata"].get("relevant_link_values", "").split(",")
- ) if link != "" and value != ""
- }
+ context["relevant_links"] = article_result["metadata"].get("relevant_links", {})
else:
raise Http404