diff options
| -rw-r--r-- | pydis_site/apps/content/views/article.py | 14 | ||||
| -rw-r--r-- | pydis_site/templates/content/article.html | 3 | 
2 files changed, 0 insertions, 17 deletions
| diff --git a/pydis_site/apps/content/views/article.py b/pydis_site/apps/content/views/article.py index ede3ba43..51c9a199 100644 --- a/pydis_site/apps/content/views/article.py +++ b/pydis_site/apps/content/views/article.py @@ -1,9 +1,5 @@ -import os -from datetime import datetime -from pathlib import Path  from typing import Optional -from django.conf import settings  from django.core.handlers.wsgi import WSGIRequest  from django.http import HttpResponse  from django.shortcuts import render @@ -20,15 +16,6 @@ class ArticleView(View):          article_result = get_article(article, category)          if category is not None: -            path = Path( -                settings.BASE_DIR, "pydis_site", "apps", "content", "resources", "content", category, f"{article}.md" -            ) -        else: -            path = Path( -                settings.BASE_DIR, "pydis_site", "apps", "content", "resources", "content", f"{article}.md" -            ) - -        if category is not None:              category_data = get_category(category)              category_data["raw_name"] = category          else: @@ -49,7 +36,6 @@ class ArticleView(View):              "content/article.html",              {                  "article": article_result, -                "last_modified": datetime.fromtimestamp(os.path.getmtime(path)).strftime("%dth %B %Y"),                  "category_data": category_data,                  "relevant_links": relevant_links              } diff --git a/pydis_site/templates/content/article.html b/pydis_site/templates/content/article.html index f4282df2..c340cdf6 100644 --- a/pydis_site/templates/content/article.html +++ b/pydis_site/templates/content/article.html @@ -36,9 +36,6 @@                  <div class="columns is-variable is-8">                      <div class="column is-two-thirds">                          {{ article.article|safe }} -                        <p class="has-text-weight-light is-size-7"> -                            <strong>Last modified:</strong> {{ last_modified }}<br/> -                        </p>                      </div>                      <div class="column">                          {% if relevant_links|length > 0 %} | 
