add skip navigation link

This commit is contained in:
Pat Dryburgh
2018-10-24 18:04:06 -07:00
parent 16c358ac24
commit dd7275c4c0
5 changed files with 37 additions and 3 deletions

View File

@ -19,6 +19,16 @@
</head>
<body>
{% if page.layout == 'home' %}
<a href="#main" class="skip-navigation">
Skip to list of posts
</a>
{% else %}
<a href="#main" class="skip-navigation">
Skip to content
</a>
{% endif %}
{{ content }}
{% include menu.html %}

View File

@ -22,7 +22,7 @@ layout: default
</header>
{% endif %}
<main class="home" aria-label="Content">
<main class="home" aria-label="Content" id="main">
<h1 class="content-title divided">
{% if site.paginate and site.paginate_path and paginator.page > 1 %}

View File

@ -8,7 +8,7 @@ layout: default
{% include back-link.html %}
{% endif %}
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting" id="main">
{% if page.title != "" %}
<h1 class="post-title divided p-name" itemprop="name headline">