Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion addon/templates/components/post-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

{{#if @post.image}}
{{#link-to 'post' @post.id class="post-card-image-link"}}
<ResponsiveImage class="post-card-image" @image={{responsive-image-url @post.image}} />
<ResponsiveImage
class="post-card-image"
@image={{responsive-image-url @post.image}}
alt={{if post.imageMeta.alt post.imageMeta.alt ""}} />
{{/link-to}}
{{/if}}

Expand Down
4 changes: 3 additions & 1 deletion app/templates/page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ into the {body} of the default.hbs template --}}

{{#if post.image}}
<figure class="post-full-image">
<ResponsiveImage @image={{responsive-image-url post.image}} />
<ResponsiveImage
@image={{responsive-image-url post.image}}
alt={{if post.imageMeta.alt post.imageMeta.alt ""}} />
</figure>
{{/if}}

Expand Down
4 changes: 3 additions & 1 deletion app/templates/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ into the {body} of the default.hbs template --}}

{{#if post.image}}
<figure class="post-full-image">
<ResponsiveImage @image={{responsive-image-url post.image}} />
<ResponsiveImage
@image={{responsive-image-url post.image}}
alt={{if post.imageMeta.alt post.imageMeta.alt ""}} />
</figure>
{{/if}}

Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/advanced-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/advanced.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- ghost
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/ember.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/ember.jpg
imageMeta:
attribution: by Robert Wagner
attributionLink: https://unsplash.com/photos/OM4TjQwHC1I
alt: Wooden desk with a laptop and a screen showing the Ship Shape Logo. The desk features several EmberJS mascot figurines and an Ember merchandise cup
featured: true
authors:
- chris
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/managing-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/team.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- chris
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/the-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/writing.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- ghost
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/design.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- ghost
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/using-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/tags.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- ghost
Expand Down
1 change: 1 addition & 0 deletions tests/dummy/content/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image: /images/welcome.jpg
imageMeta:
attribution:
attributionLink:
alt:
featured: true
authors:
- ghost
Expand Down