diff --git a/config/mediaFilters.js b/config/mediaFilters.js index eb054750..03d8b95a 100644 --- a/config/mediaFilters.js +++ b/config/mediaFilters.js @@ -12,12 +12,17 @@ module.exports = { } if (item.type === 'artist') { normalized['title'] = item['title'] + normalized['alt'] = `${item['plays']} plays of ${item['title']}` normalized['subtext'] = `${item['plays']} plays` } if (item.type === 'book') normalized['alt'] = item['title'] - if (item.type === 'movie') normalized['title'] = item['title'] + if (item.type === 'movie') { + normalized['title'] = item['title'] + normalized['alt'] = `${item['title']} - ${item['summary']}` + } if (item.type === 'tv') { normalized['title'] = item['title'] + normalized['alt'] = `${item['title']} from ${item['name']}` normalized['subtext'] = `${item.name} • ${item.episode}` } return normalized diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index ac8e2e1f..41c4d09d 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -6,14 +6,7 @@
{% for item in media limit: count %} - {% capture altVal %} - {% if item.alt %} - {{ item.alt }} - {% elsif item.title %} - {{ item.title }} - {% endif %} - {% endcapture %} - {% assign alt = altVal | strip %} + {% assign alt = item.alt | strip %}