Ensure that each page only has a single <h1>

According to Bing's webmaster tool multiple <h1> tags on a site are a SEO problem.
This commit is contained in:
Philipp Oppermann
2020-02-21 11:17:31 +01:00
parent b532c052ad
commit 516bc38b2b
2 changed files with 6 additions and 6 deletions

View File

@@ -24,9 +24,9 @@
<div class="container content"> <div class="container content">
<header class="masthead"> <header class="masthead">
<div style="position:relative"> <div style="position:relative">
<h1 class="masthead-title"> <h2 class="masthead-title">
<a href="{{ config.base_url | safe }}" title="Home">{{ config.title | safe }}</a> <a href="{{ config.base_url | safe }}" title="Home">{{ config.title | safe }}</a>
</h1> </h2>
<p><small>{{ config.extra.subtitle | replace(from=" ", to="&nbsp;") | safe }}</small></p> <p><small>{{ config.extra.subtitle | replace(from=" ", to="&nbsp;") | safe }}</small></p>
{% block header %}{% endblock header %} {% block header %}{% endblock header %}
</div> </div>

View File

@@ -8,7 +8,7 @@
{% set posts_section = get_section(path = "second-edition/posts/_index.md") %} {% set posts_section = get_section(path = "second-edition/posts/_index.md") %}
{% set posts = posts_section.pages %} {% set posts = posts_section.pages %}
<h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Posts</h1> <h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Writing an OS in Rust</h1>
<div class="front-page-introduction"> <div class="front-page-introduction">
<p> <p>
@@ -55,7 +55,7 @@
<hr> <hr>
<div class="frontpage-section"> <div class="frontpage-section">
<h1>Status Updates</h1> <h2>Status Updates</h2>
{% set status_updates = get_section(path = "status-update/_index.md") %} {% set status_updates = get_section(path = "status-update/_index.md") %}
<p>{{ status_updates.description }}</p> <p>{{ status_updates.description }}</p>
<ul> <ul>
@@ -67,12 +67,12 @@
</div> </div>
<div class="frontpage-section"> <div class="frontpage-section">
<h1 class="post-title">First Edition</h1> <h2 class="post-title">First Edition</h2>
<p>You are currently viewing the second edition of “Writing an OS in Rust”. The first edition is very different in many aspects, for example it builds upon the GRUB bootloader instead of using the `bootloader` crate. In case you're interested in it, it is still available. Note that the first edition is no longer updated and might contain outdated information. <a class="read-more" href="{{ get_url(path = "/first-edition") | safe }}"><em>read&nbsp;the&nbsp;first edition&nbsp;»</em></a></p> <p>You are currently viewing the second edition of “Writing an OS in Rust”. The first edition is very different in many aspects, for example it builds upon the GRUB bootloader instead of using the `bootloader` crate. In case you're interested in it, it is still available. Note that the first edition is no longer updated and might contain outdated information. <a class="read-more" href="{{ get_url(path = "/first-edition") | safe }}"><em>read&nbsp;the&nbsp;first edition&nbsp;»</em></a></p>
</div> </div>
<div class=""> <div class="">
<h1>Support Me</h1> <h2>Support Me</h2>
{% include "support.html" %} {% include "support.html" %}
</div> </div>
{% endblock main %} {% endblock main %}