mirror of
https://github.com/kittywitch/dork.dev.git
synced 2026-02-09 15:19:18 -08:00
feat: add title to pages with title
This commit is contained in:
parent
967a5a6cc5
commit
cfa8c8d479
2 changed files with 25 additions and 1 deletions
24
templates/base-title.html
Normal file
24
templates/base-title.html
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>{{ page.title }} - {{ config.extra.site_title }}</title>
|
||||||
|
{% include "head.html" %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<header>
|
||||||
|
{% include "header.html" %}
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
{% block content %} {% endblock content %}
|
||||||
|
</main>
|
||||||
|
<footer>
|
||||||
|
{% include "footer.html" %}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base-title.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue