Skip to content

Commit 9cae621

Browse files
fix(templates): don't index the search page
1 parent 8a5a66d commit 9cae621

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
title="Atom"
1919
href="/feed"
2020
/>
21+
{% block header %} {% endblock %}
2122
</head>
2223
<body>
2324
<header>

templates/search.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{% extends "base.html" %}
22
{% import "macros.html" as macros %}
33

4+
{% block header %}
5+
<meta name="robots" content="noindex, nofollow">
6+
{% endblock %}
7+
48
{% block content %}
59
<main>
610
<form action="/search" method="GET" class="search-form">

0 commit comments

Comments
 (0)