Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#81: Add image transcriptions to post thumbnails (for the index page) #82

Merged
merged 1 commit into from
Sep 6, 2020
Merged
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
4 changes: 3 additions & 1 deletion _drafts/YYYY-MM-DD-ALT-F4-X.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
author: Names of who wrote this post [optional, recommended]
editor: Names of who edited this post [optional]
translator: Names of who translated this post [optional]
image: Path to thumbnail for this ALT-F4 post (URI)
image:
url: Path to thumbnail for this ALT-F4 post (URI)
transcription: Small transcription of the image thumbnail
title: Title of this ALT-F4 post
lang: en
discuss:
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2>{{ site.data.locale.home-header }}</h2>
{% if post.image %}
<div class="blog-card-thumbnail">
<a href="{{ site.baseurl }}{{ post.url }}" class="no-outline">
<img src="{{ post.image }}">
<img src="{{ post.image.url }}" alt="{{ post.image.transcription }}">
<div class="shadow-overlay"></div>
</a>
</div>
Expand Down
4 changes: 3 additions & 1 deletion _posts/en/2020-08-21-ALTF4-1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
author: Therenas
image: /assets/ALTF4/1/thumbnail.jpg
image:
url: /assets/ALTF4/1/thumbnail.jpg
transcription: A zoomed out view of a small factory from Factorio
title: "Alt-F4 #1 - We Need You!"
lang: en
discuss:
Expand Down
4 changes: 3 additions & 1 deletion _posts/en/2020-08-28-ALTF4-2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
author: Lovely_Santa, Robynthedevil, Xorimuth
editor: Therenas, EDLEXUS, nicgarner
image: /assets/ALTF4/2/thumbnail.jpg
image:
url: /assets/ALTF4/2/thumbnail.jpg
transcription: A Spidertron stands next to the crash site
title: "Alt-F4 #2 - SPIDERTRON!!!"
lang: en
discuss:
Expand Down
4 changes: 3 additions & 1 deletion _posts/en/2020-09-04-ALTF4-3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
author: JD-Plays, T-A-R, Raiguard
editor: Therenas, nicgarner
image: /assets/ALTF4/3/thumbnail.jpg
image:
url: /assets/ALTF4/3/thumbnail.jpg
transcription: A conveyor belt with two infinity loaders at both ends, with a popup showing information for the left one
title: "Alt-F4 #3 - Tronparty"
lang: en
discuss:
Expand Down