diff --git a/sphinx/themes/basic/sourcelink.html b/sphinx/themes/basic/sourcelink.html
index 72a59666d..14bf7cad4 100644
--- a/sphinx/themes/basic/sourcelink.html
+++ b/sphinx/themes/basic/sourcelink.html
@@ -1,12 +1,4 @@
-{#
- basic/sourcelink.html
- ~~~~~~~~~~~~~~~~~~~~~
-
- Sphinx sidebar template: "show source" link.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx sidebar template: "show source" link. #}
{%- if show_source and has_source and sourcename %}
{{ _('This Page') }}
diff --git a/sphinx/themes/bizstyle/layout.html b/sphinx/themes/bizstyle/layout.html
index 226c7878d..a19309056 100644
--- a/sphinx/themes/bizstyle/layout.html
+++ b/sphinx/themes/bizstyle/layout.html
@@ -1,12 +1,4 @@
-{#
- bizstyle/layout.html
- ~~~~~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the bizstyle theme.
-
- :copyright: Copyright 2007-2024 by Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the bizstyle theme. #}
{% extends "basic/layout.html" %}
{%- block scripts %}
diff --git a/sphinx/themes/classic/layout.html b/sphinx/themes/classic/layout.html
index 99a101c96..d2fc9270e 100644
--- a/sphinx/themes/classic/layout.html
+++ b/sphinx/themes/classic/layout.html
@@ -1,12 +1,4 @@
-{#
- classic/layout.html
- ~~~~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the classic theme.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the classic theme. #}
{%- extends "basic/layout.html" %}
{%- block scripts %}
diff --git a/sphinx/themes/epub/epub-cover.html b/sphinx/themes/epub/epub-cover.html
index 15d46161b..5682f262e 100644
--- a/sphinx/themes/epub/epub-cover.html
+++ b/sphinx/themes/epub/epub-cover.html
@@ -1,12 +1,4 @@
-{#
- epub/epub-cover.html
- ~~~~~~~~~~~~~~~~~~~~
-
- Sample template for the html cover page.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sample template for the html cover page. #}
{%- extends "layout.html" %}
{%- block header %}{% endblock %}
{%- block rootrellink %}{% endblock %}
diff --git a/sphinx/themes/epub/layout.html b/sphinx/themes/epub/layout.html
index c7b63cd81..2938d0b3c 100644
--- a/sphinx/themes/epub/layout.html
+++ b/sphinx/themes/epub/layout.html
@@ -1,12 +1,4 @@
-{#
- epub/layout.html
- ~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the epub theme.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the epub theme. #}
{%- extends "basic/layout.html" %}
{%- block doctype -%}
diff --git a/sphinx/themes/haiku/layout.html b/sphinx/themes/haiku/layout.html
index b23937fbb..0c13802c1 100644
--- a/sphinx/themes/haiku/layout.html
+++ b/sphinx/themes/haiku/layout.html
@@ -1,12 +1,4 @@
-{#
- haiku/layout.html
- ~~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the haiku theme.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the haiku theme. #}
{%- extends "basic/layout.html" %}
{# do not display relbars #}
diff --git a/sphinx/themes/nonav/layout.html b/sphinx/themes/nonav/layout.html
index ba5f7b746..f61ef1436 100644
--- a/sphinx/themes/nonav/layout.html
+++ b/sphinx/themes/nonav/layout.html
@@ -1,12 +1,4 @@
-{#
- nonav/layout.html
- ~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the any help system theme.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the any help system theme. #}
{%- extends "basic/layout.html" %}
{%- block doctype -%}
diff --git a/sphinx/themes/scrolls/layout.html b/sphinx/themes/scrolls/layout.html
index 8a0db7d12..a0a5e0465 100644
--- a/sphinx/themes/scrolls/layout.html
+++ b/sphinx/themes/scrolls/layout.html
@@ -1,13 +1,4 @@
-{#
- scrolls/layout.html
- ~~~~~~~~~~~~~~~~~~~
-
- Sphinx layout template for the scrolls theme, originally written
- by Armin Ronacher.
-
- :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
+{# Sphinx layout template for the scrolls theme. #}
{%- extends "basic/layout.html" %}
{%- block css %}
{{ super() }}