Skip to content

Commit d38515e

Browse files
committed
Enable lazy_image_tag in Podcasts resources
1 parent 2c53eaf commit d38515e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

app/views/podcasts/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<% provide(:url, @url ) %>
44
<% provide(:meta_image, "/img/ogp-dojocast.jpeg") %>
55

6-
<img class="dojocast-cover lazyload" alt="DojoCast Cover Photo" src="/spinner.svg" data-src="/img/dojocast-cover.jpg" loading='lazy' />
6+
<%= lazy_image_tag('/podcasts/dojocast-cover.jpg', alt: 'DojoCast Cover Photo', class: 'dojocast-cover') %>
77

88
<div class="container" style="line-height: 2.2em;">
99
<section class="doc" style="padding: 50px 0px 0px 0px;">
1010
<h1 style="text-align: center;"><%= @title %></h1>
1111
<p style="text-align: center; padding-bottom: 10px;">CoderDojo コミュニティに関わる人々を<br class="ignore-pc">ハイライトするポッドキャスト番組です 📻✨</p>
12-
<img class="lazyload" src="/podcasts/cover-sub.jpg" alt="インタビューの様子"/>
12+
<%= lazy_image_tag('/podcasts/cover-sub.jpg', alt: 'DojoCast の収録の様子') %>
1313

1414
<div class='text-center' style="margin-top: 30px;">
1515
<div class="g-ytsubscribe" data-channelid="UCal5GuoCDCMDQe07w69TuJA" data-layout="full" data-count="default"></div>

app/views/podcasts/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% provide(:url, @url) %>
44
<% provide(:meta_image, @episode.cover) %>
55

6-
<img class="dojocast-cover" alt="DojoCast Cover Photo" src="/img/dojocast-cover.jpg" />
6+
<%= lazy_image_tag('/podcasts/dojocast-cover.jpg', alt: 'DojoCast Cover Photo', class: 'dojocast-cover') %>
77

88
<style type="text/css">
99
.prev { display: table-cell; font-color: white; text-align: left; }
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)