Init static site generator

This commit is contained in:
2021-02-06 00:35:11 +01:00
parent f83f3acb49
commit 2dfb5fca48
7 changed files with 256 additions and 0 deletions

21
templates/tag.html Normal file
View File

@@ -0,0 +1,21 @@
{% extends 'base.html' %}
{% block header %}
<h1 class="display-2">{{ tag }}</h1>
{% endblock %}
{% block content %}
<section>
{% for slug in slugs %}
<div class="card">
<div class="card-body">
<h5 class="card-title">{{ slug }}</h5>
<p>
{% for video_tag in out_videos[slug].tags %}<a href="/tag/{{ video_tag }}/" class="badge badge-light">{{ video_tag }}</a>{% endfor %}
</p>
<a href="https://media.ccc.de/v/{{ slug }}" class="btn btn-primary card-link">watch</a>
</div>
</div>
{% endfor %}
</section>
{% endblock %}