mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Added aria-label attribute
This commit is contained in:
parent
131b6ae197
commit
78d1ce4820
4 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@
|
|||
<time class="published" datetime="{{ p.date|date("Y-m-d") }}">{{ p.date|date("M j, Y") }}</time>
|
||||
{% endif %}
|
||||
</header>
|
||||
<a href="{{p.url}}" class="image">
|
||||
<a href="{{p.url}}" class="image" aria-label="{{ title }}">
|
||||
{{ image.cropZoom(64,64).quality(60).loading('lazy').attribute('decoding','async').html(title,title)|raw }}
|
||||
</a>
|
||||
</article>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
{% endblock %}
|
||||
|
||||
<a id="back-to-top" href="#">
|
||||
<a id="back-to-top" href="#" aria-label="{{ 'FUTURE.MISC.BACK_TO_TOP'|t }}" title="{{ 'FUTURE.MISC.BACK_TO_TOP'|t }}">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<article class="mini-post">
|
||||
<header>
|
||||
<h3>
|
||||
<a href="{{ p.url }}">{{ p.title }}</a>
|
||||
<a href="{{ p.url }}" aria-label="{{ title }}">{{ title }}</a>
|
||||
</h3>
|
||||
{% if config.plugins["translate-date"].enabled %}
|
||||
<time class="published" itemprop="datePublished" datetime="{{ page.date|td(null, "Y-m-d") }}">{{ page.date|td(null, "M j, Y") }}</time>
|
||||
|
@ -37,7 +37,7 @@
|
|||
{% endif %}
|
||||
</header>
|
||||
{% if image %}
|
||||
<a href="{{ p.url }}" class="image">
|
||||
<a href="{{ p.url }}" class="image" title="{{ title|raw }}" rel="nofollow">
|
||||
{{ image.cropZoom(1038,437).loading('lazy').attribute('decoding','async').html(title,title)|raw}}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<h2>{{theme_config.footer.title}}</h2>
|
||||
<p>{{theme_config.footer.description}}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{theme_config.footer.button_url}}" class="button">{{theme_config.footer.button_text}}</a></li>
|
||||
<li><a href="{{theme_config.footer.button_url}}" class="button" aria-label="{{theme_config.footer.title}}">{{theme_config.footer.button_text}}</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue