diff options
Diffstat (limited to 'pydis_site/templates/content')
-rw-r--r-- | pydis_site/templates/content/article.html | 9 | ||||
-rw-r--r-- | pydis_site/templates/content/articles.html | 4 | ||||
-rw-r--r-- | pydis_site/templates/content/category.html | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/pydis_site/templates/content/article.html b/pydis_site/templates/content/article.html index de6cd28d..f4282df2 100644 --- a/pydis_site/templates/content/article.html +++ b/pydis_site/templates/content/article.html @@ -1,11 +1,11 @@ {% extends 'base/base.html' %} {% load static %} -{% block title %}{{ metadata.title|first }}{% endblock %} +{% block title %}{{ article.metadata.title }}{% endblock %} {% block head %} <meta property="og:title" content="Python Discord - {{ article.metadata.title|first }}" /> <meta property="og:type" content="website" /> - <meta property="og:description" content="{{ article.metadata.shortdescription|first }}" /> + <meta property="og:description" content="{{ article.metadata.short_description }}" /> <link rel="stylesheet" href="{% static "css/content/articles.css" %}"> <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css"> <script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> @@ -23,7 +23,7 @@ {% if category_data.raw_name is not None %} <li><a href="/content/category/{{ category_data.raw_name }}">{{ category_data.name }}</a></li> {% endif %} - <li class="is-active"><a href="#">{{ article.metadata.title|first }}</a></li> + <li class="is-active"><a href="#">{{ article.metadata.title }}</a></li> </ul> </nav> </div> @@ -32,13 +32,12 @@ <section class="section"> <div class="content"> <div class="container"> - <h1 class="title">{{ article.metadata.title|first }}</h1> + <h1 class="title">{{ article.metadata.title }}</h1> <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/> - <strong>Contributors:</strong> {{ article.metadata.contributors|join:", " }} </p> </div> <div class="column"> diff --git a/pydis_site/templates/content/articles.html b/pydis_site/templates/content/articles.html index 6fea66e5..363bbb4f 100644 --- a/pydis_site/templates/content/articles.html +++ b/pydis_site/templates/content/articles.html @@ -29,9 +29,9 @@ <i class="fab fa-python is-size-3 is-black has-icon-padding" aria-hidden="true"></i> </span> <a href="{{ article }}/"> - <span class="is-size-4 has-text-weight-bold">{{ data.title.0 }}</span> + <span class="is-size-4 has-text-weight-bold">{{ data.title }}</span> </a> - <p class="is-italic">{{ data.shortdescription.0 }}</p> + <p class="is-italic">{{ data.short_description }}</p> </div> {% endfor %} {% for category, data in categories.items %} diff --git a/pydis_site/templates/content/category.html b/pydis_site/templates/content/category.html index 61e20c43..c2201745 100644 --- a/pydis_site/templates/content/category.html +++ b/pydis_site/templates/content/category.html @@ -33,9 +33,9 @@ <i class="fab fa-python is-size-3 is-black has-icon-padding" aria-hidden="true"></i> </span> <a href="/content/category/{{ category_name }}/{{ article }}/"> - <span class="is-size-4 has-text-weight-bold">{{ data.title.0 }}</span> + <span class="is-size-4 has-text-weight-bold">{{ data.title }}</span> </a> - <p class="is-italic">{{ data.shortdescription.0 }}</p> + <p class="is-italic">{{ data.short_description }}</p> </div> {% endfor %} </div> |