Browse Source

Adjust headers.

scossu 2 days ago
parent
commit
bca4a237a6
4 changed files with 8 additions and 10 deletions
  1. 3 4
      templates/dres.html
  2. 1 1
      templates/header.html
  3. 1 1
      templates/index.html
  4. 3 4
      templates/ores.html

+ 3 - 4
templates/dres.html

@@ -1,13 +1,12 @@
 <!DOCTYPE html>
 <html>
     <head>
-        <%- header_tpl({site_title = site_title, title = title}) %>
+        <%- head_tpl({site_title = site_title, title = title}) %>
     </head>
     <body>
-        <header>
-            <h1><%= breadcrumbs[#breadcrumbs][2] %>:&ensp;<%= title %></h1>
-        </header>
+        <%- header_tpl({site_title = site_title}) %>
         <main>
+            <h1><%= breadcrumbs[#breadcrumbs][2] %>:&ensp;<%= title %></h1>
             <section id="res_lineage">
                 <h2>Classification</h2>
                 <p>

+ 1 - 1
templates/header.html

@@ -1,6 +1,6 @@
 <header>
     <nav>
-        <a href="/"><%= title %></a>
+        <a href="/"><%= site_title %></a>
         <a href="/cats">Categories</a>
     </nav>
 </header>

+ 1 - 1
templates/index.html

@@ -10,7 +10,7 @@
         <script src="/js/search.js" defer></script>
     </head>
     <body>
-        <%- header_tpl({title = title}) %>
+        <%- header_tpl({site_title = site_title}) %>
         <main>
             <h1><%= title %></h1>
             <section id="search">

+ 3 - 4
templates/ores.html

@@ -1,13 +1,12 @@
 <!DOCTYPE html>
 <html>
     <head>
-        <%- header_tpl({site_title = site_title, title = fname}) %>
+        <%- head_tpl({site_title = site_title, title = fname}) %>
     </head>
     <body>
-        <header>
-            <h1><%= breadcrumbs[#breadcrumbs][2] -%>:&ensp;<%= fname %></h1>
-        </header>
+        <%- header_tpl({site_title = site_title}) %>
         <main>
+            <h1><%= breadcrumbs[#breadcrumbs][2] -%>:&ensp;<%= fname %></h1>
             <section id="res_lineage">
                 <h2>Classification</h2>
                 <p>