code4lib / 2021.code4lib.org

Website for Code4Lib 2021
https://2021.code4lib.org
4 stars 3 forks source link

add #main to all layouts, ref #174 #206

Closed phette23 closed 3 years ago

phette23 commented 3 years ago

This should make the "skip menu" link work on many pages where it does not currently, such as /schedule/day-N/, /workshops/*, /keynotes/*, and /talks/*. To test: visit the page, use the main link, the URL hash should update and you should visible move to the start of the content.

I know we're not using menus this year but I added it to that page and it was the only one where it's a little awkward because all the content is inside a loop:

{% assign menu = site.data[page.menu] %}
<div id="main">{% comment %} #main element needed for skip-menu link but we can't add it inside the loop {% endcomment %}</div>
{% for meal in menu %}

I don't know if an empty div is appropriate.