diff options
| author | Botond Hende <contact@wazul.moe> | 2026-05-01 23:00:43 +0200 |
|---|---|---|
| committer | Botond Hende <contact@wazul.moe> | 2026-05-01 23:00:43 +0200 |
| commit | 389a88088e8f5e40127d024a95c8f63318669b02 (patch) | |
| tree | 797adef799ee157bc33a4c1be5084ec5eef3bab2 /comic/templates | |
| parent | 32cb783aa8675d275cb9136eeadffa8294d40b89 (diff) | |
codenames and comic templates refactored with the base template
Diffstat (limited to 'comic/templates')
| -rw-r--r-- | comic/templates/issue.html.j2 | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/comic/templates/issue.html.j2 b/comic/templates/issue.html.j2 index 181604f..81afc04 100644 --- a/comic/templates/issue.html.j2 +++ b/comic/templates/issue.html.j2 @@ -1,18 +1,11 @@ -<!DOCTYPE html> -<html dir="ltr" lang="en"> -<head> - <meta charset="utf-8"/> - <title>{{ issue.title() }} - {{ comic.comic_name }}</title> - <meta name="viewport" content="width=device-width, initial-scale=1"/> - <meta property="og:title" content="{{ issue.title() }}" /> - <meta property="og:type" content="article" /> - <meta property="og:url" content="{{ url }}" /> - <link rel="stylesheet" href="{{ site.assets_path_static }}/css/bootstrap-grid.min.css" /> +{% extends "base.html.j2" %} +{% block page_title %}{{ issue.title() }} - {{ comic.comic_name }}{% endblock %} +{% block og_page_title %}{{ issue.title() }}{% endblock %} +{% block og_type %}article{% endblock %} +{% block head_extra %}{{ super() }} <link rel="stylesheet" href="{{ site.assets_path }}/css/comic.css" /> - <link rel="stylesheet" href="{{ site.assets_path }}/css/font.css" /> -</head> -<body> -<div class="bootstrap-wrapper"> + <link rel="stylesheet" href="{{ site.assets_path }}/css/font.css" />{% endblock %} +{% block body %}<div class="bootstrap-wrapper"> <div class="container"> <a href="/" class="row dont-bother"> <header class="col-md-9" role="banner"><img class="banner" src="{{ site.assets_path }}/image/banner_placeholder.png" alt="banner"/></header> @@ -56,6 +49,4 @@ </footer> </div> </div> -</div> -</body> -</html> +</div>{% endblock %} |
