Mercurial > web
annotate _includes/navigation.html @ 84:5914d06f72b4
css: tweak styles to make things work on older browsers
the other thing was hacky; this is weirder, but makes a tiny
bit more sense
| author | Paper <paper@paper.us.eu.org> | 
|---|---|
| date | Wed, 05 Jun 2024 21:02:44 -0400 | 
| parents | eb3bbc61bc17 | 
| children | a143c3991472 | 
| rev | line source | 
|---|---|
| 78 
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
 Paper <paper@paper.us.eu.org> parents: diff
changeset | 1 <div class="navbar drop-shadow-box"> | 
| 
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
 Paper <paper@paper.us.eu.org> parents: diff
changeset | 2 {% for item in site.data.navigation %} | 
| 
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
 Paper <paper@paper.us.eu.org> parents: diff
changeset | 3 <a href="{{ item.link }}" {% if page.url == item.link or page.url contains item.prefix %}class="navbar-item-active"{% else %}class="navbar-item"{% endif %}>{{ item.name }}</a> | 
| 
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
 Paper <paper@paper.us.eu.org> parents: diff
changeset | 4 {% endfor %} | 
| 81 
eb3bbc61bc17
Use flexbox for lots more things
 Paper <paper@paper.us.eu.org> parents: 
80diff
changeset | 5 <div class="navbar-right"> | 
| 
eb3bbc61bc17
Use flexbox for lots more things
 Paper <paper@paper.us.eu.org> parents: 
80diff
changeset | 6 {% comment %} | 
| 
eb3bbc61bc17
Use flexbox for lots more things
 Paper <paper@paper.us.eu.org> parents: 
80diff
changeset | 7 This has to all be on one line or else browsers add extra spacing. argh. | 
| 
eb3bbc61bc17
Use flexbox for lots more things
 Paper <paper@paper.us.eu.org> parents: 
80diff
changeset | 8 {% endcomment %} | 
| 
eb3bbc61bc17
Use flexbox for lots more things
 Paper <paper@paper.us.eu.org> parents: 
80diff
changeset | 9 {% for item in site.data.navigation-external %}<a href="{{ item.link }}" class="navbar-item">{{ item.name }}</a>{% endfor %} | 
| 80 | 10 </div> | 
| 78 
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
 Paper <paper@paper.us.eu.org> parents: diff
changeset | 11 </div> | 
