mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-21 19:32:34 +00:00
Add missing alt attribute to img elements (#285)
This commit is contained in:
parent
289bac4949
commit
86873699ab
@ -2,7 +2,7 @@
|
|||||||
<div class="beian">
|
<div class="beian">
|
||||||
{{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
|
{{- next_url('https://beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
|
||||||
{%- if theme.footer.beian.gongan_icon_url %}
|
{%- if theme.footer.beian.gongan_icon_url %}
|
||||||
<img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}">
|
<img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" alt="">
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %}
|
{%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %}
|
||||||
{{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}
|
{{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<div class="popular-posts-date">{{ popular_post.date }}</div>
|
<div class="popular-posts-date">{{ popular_post.date }}</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if popular_post.img and popular_post.img != '' %}
|
{%- if popular_post.img and popular_post.img != '' %}
|
||||||
<div class="popular-posts-img"><img src="{{ popular_post.img }}"></div>
|
<div class="popular-posts-img"><img src="{{ popular_post.img }}" alt="{{ popular_post.title }}"></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<div class="popular-posts-title"><a href="{{ popular_post.path }}" rel="bookmark">{{ popular_post.title }}</a></div>
|
<div class="popular-posts-title"><a href="{{ popular_post.path }}" rel="bookmark">{{ popular_post.title }}</a></div>
|
||||||
{%- if popular_post.excerpt and popular_post.excerpt != '' %}
|
{%- if popular_post.excerpt and popular_post.excerpt != '' %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user