-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a 'skip to main content' for VoiceOver users
- Loading branch information
1 parent
6eebe33
commit 342018f
Showing
4 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
--- | ||
layout: default | ||
--- | ||
<main> | ||
{% if page.title != "" %} | ||
<h1 class="title"> | ||
<a href="{{ page.url | relative_url }}">{{ page.title | smartify | escape }}</a> | ||
</h1> | ||
{% endif %} | ||
{% if page.title != "" %} | ||
<h1 class="title"> | ||
<a href="{{ page.url | relative_url }}">{{ page.title | smartify | escape }}</a> | ||
</h1> | ||
{% endif %} | ||
|
||
{% if page.date_updated or page.meta %} | ||
<div class="page__meta"> | ||
<ul class="dot_list"> | ||
{% if page.date_updated %} | ||
<li class="page__date">Last updated {{ page.date_updated | date: site.date_format }}</li> | ||
{% endif %} | ||
{% for m in page.meta %} | ||
<li>{{ m }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
{% if page.date_updated or page.meta %} | ||
<div class="page__meta"> | ||
<ul class="dot_list"> | ||
{% if page.date_updated %} | ||
<li class="page__date">Last updated {{ page.date_updated | date: site.date_format }}</li> | ||
{% endif %} | ||
{% for m in page.meta %} | ||
<li>{{ m }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
|
||
{{ content | cleanup_text | smartify }} | ||
</main> | ||
{{ content | cleanup_text | smartify }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* from https://accessibility.oit.ncsu.edu/it-accessibility-at-nc-state/developers/accessibility-handbook/mouse-and-keyboard-events/skip-to-main-content/ */ | ||
a.skip-main { | ||
position: absolute; | ||
left: -999px; | ||
top: auto; | ||
width: 1px; | ||
height: 1px; | ||
overflow :hidden; | ||
z-index: -999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters