Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#19875 Adopt H1 headers for Docs page HTML <title>

Merged
Glenn Jocher merged 1 commits into Ultralytics:main from ultralytics:docs-titles
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // YOLO models chart ---------------------------------------------------------------------------------------------------
 // YOLO models chart ---------------------------------------------------------------------------------------------------
 const data = {
 const data = {
   //  YOLO12: {
   //  YOLO12: {
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // Apply theme colors based on dark/light mode
 // Apply theme colors based on dark/light mode
 const applyTheme = (isDark) => {
 const applyTheme = (isDark) => {
   document.body.setAttribute(
   document.body.setAttribute(
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // Giscus functionality
 // Giscus functionality
 function loadGiscus() {
 function loadGiscus() {
   const giscusContainer = document.getElementById("giscus-container");
   const giscusContainer = document.getElementById("giscus-container");
Discard
@@ -1,3 +1,5 @@
+// Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
+
 // tablesort.filesize.min.js
 // tablesort.filesize.min.js
 !(function () {
 !(function () {
   function r(t) {
   function r(t) {
Discard
@@ -1,5 +1,6 @@
-<!--Ultralytics YOLO ๐Ÿš€, AGPL-3.0 license-->
+<!-- Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license -->
 
 
+<!--Site announcement bar-->
 {% extends "base.html" %} {% block announce %}
 {% extends "base.html" %} {% block announce %}
 <div class="banner-wrapper">
 <div class="banner-wrapper">
   <div
   <div
@@ -16,3 +17,13 @@
   </div>
   </div>
 </div>
 </div>
 {% endblock %}
 {% endblock %}
+
+<!--Page titles-->
+{% block htmltitle %} {% if page.toc|first is defined %} {% set
+page_specific_title = page.toc.items[0].title %} {% else %} {% set
+page_specific_title = page.title | striptags %} {% endif %}
+<title>
+  {%- if page_specific_title -%} {{ page_specific_title }} - {{ config.site_name
+  }} {%- else -%} {{ config.site_name }} {%- endif -%}
+</title>
+{% endblock %}
Discard
@@ -1,3 +1,5 @@
+<!-- Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license -->
+
 {% if page.meta.comments %}
 {% if page.meta.comments %}
 <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
 <h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
 
 
Discard
@@ -1,3 +1,5 @@
+/* Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license */
+
 /* Table format like GitHub ----------------------------------------------------------------------------------------- */
 /* Table format like GitHub ----------------------------------------------------------------------------------------- */
 th,
 th,
 td {
 td {
Discard