blob: 5e090050261d703296c2bf64de756766fbe4c684 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{% extends 'base/base.html' %}
{% load static %}
{% block title %}{{ article.metadata.title }}{% endblock %}
{% block head %}
<meta property="og:title" content="Python Discord - {{ article.metadata.title }}" />
<meta property="og:type" content="website" />
<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>
<script>hljs.initHighlightingOnLoad();</script>
{% endblock %}
{% block content %}
{% include "base/navbar.html" %}
<section class="breadcrumb-section section">
<div class="container">
<nav class="breadcrumb is-pulled-left" aria-label="breadcrumbs">
<ul>
<li><a href="/articles">Articles</a></li>
{% if category_data.raw_name is not None %}
<li><a href="/articles/category/{{ category_data.raw_name }}">{{ category_data.name }}</a></li>
{% endif %}
<li class="is-active"><a href="#">{{ article.metadata.title }}</a></li>
</ul>
</nav>
</div>
</section>
<section class="section">
<div class="content">
<div class="container">
<h1 class="title">{{ article.metadata.title }}</h1>
<div class="columns is-variable is-8">
<div class="column is-two-thirds">
{{ article.article|safe }}
</div>
<div class="column">
{% if relevant_links|length > 0 %}
<div class="box">
<p class="menu-label">Relevant links</p>
<ul class="menu-list">
{% for link, value in relevant_links.items %}
<li><a class="has-text-link" href="{{link}}">{{ value }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% endblock %}
|