2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 04:56:45 +00:00
inventree-website/_layouts/collection/collection_base.html
Matthias Mair f149e61244
Accessibility improvements (#53)
* add alt tags to lear more

* make logo section better screenreadable

* enhance contrast on footer

* add alt text to back button

* switch colors -> maybe better contrast on links?

* make link text better readable

* switch color back

* and another try

* Revert "and another try"

This reverts commit cb58c92c51877ce07771cb1a95ffb8d5e460beee.
2022-11-10 22:29:41 +01:00

24 lines
683 B
HTML

---
layout: default
---
<header>
{% if page.backLink or page.backLink == nil %}
<a href="{{ layout.base_link | relative_url }}" class="flex items-center m-5 text-xl hover:underline">
<img class="w-6 h-6" alt="go back" src="{{ '/assets/back.svg' | relative_url }}" />
<span>Back</span>
</a>
{% endif %}
</header>
<article>
<h1>{{ page.title }}</h1>
<p>
{{ page.date | date_to_string }}
{% assign publisher = site.publishers | where: 'short_name', page.author | first %}
{% if publisher %}
- <a href="{{ publisher.url | relative_url }}">{{ publisher.name }}</a>
{% endif %}
</p>
{{ content }}
</article>