Skip to content

Commit

Permalink
Set title for news index and posts (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo authored Jan 5, 2025
1 parent 52b016a commit 05c2d3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config.title }}</title>
<title>
{% block title %}{% if page.title %}{{ page.title }} | {% endif %} {{ config.title }}{% endblock %}
</title>
<meta name="description" content="{{ config.description }}">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" href="/favicon.png">
Expand Down
2 changes: 2 additions & 0 deletions templates/news.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "base.html" %}

{% block title %}News | {{ super() }}{% endblock %}

{% block content %}
<style>
.post-header {
Expand Down

0 comments on commit 05c2d3d

Please sign in to comment.