| Index: includes/index/media.tmpl |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/includes/index/media.tmpl |
| @@ -0,0 +1,44 @@ |
| +<h1 class="heading centered"> |
| + <span>Media coverage:</span> |
| +</h1> |
| + |
| +{% set media = [ |
|
juliandoucette
2017/08/01 23:07:33
NIT: I think "media" is a little too general / mis
ire
2017/08/02 10:35:59
Done.
|
| + { |
| + "url": "http://www.mediapost.com/publications/article/289691/adblock-plus-comes-to-new-york.html", |
| + "publication": "Media Post", |
|
juliandoucette
2017/08/01 23:07:33
NIT: Are these "publication"s? Suggest: author, pu
ire
2017/08/02 10:35:58
I think "publisher" works better. Author implies t
|
| + "image": "media-post" |
| + }, |
| + { |
| + "url": "https://www.nytimes.com/2015/08/20/technology/personaltech/ad-blockers-and-the-nuisance-at-the-heart-of-the-modern-web.html", |
| + "publication": "The New York Times", |
| + "image": "new-york-times" |
| + }, |
| + { |
| + "url": "https://www.wsj.com/articles/adblock-plus-chief-till-faida-says-consumers-are-fed-up-with-current-online-ads-1462981668", |
| + "publication": "The Wall Street Journal", |
| + "image": "wall-street-journal" |
| + }, |
| + { |
| + "url": "https://techcrunch.com/2016/05/09/adblock-plus-closes-in-on-a-billion-downloads/", |
| + "publication": "TechCrunch", |
| + "image": "techcrunch" |
| + }, |
| + { |
| + "url": "http://www.businessinsider.com/theres-nothing-wrong-about-the-way-adblock-plus-makes-money-2015-9", |
| + "publication": "Business Insider", |
| + "image": "business-insider" |
| + } |
| +] %} |
| + |
| +{% macro media_item(item) -%} |
| + <a href="{{ item.url }}" target="_blank"> |
|
juliandoucette
2017/08/01 23:07:33
NIT: I think we should describe the action (openin
ire
2017/08/02 10:35:58
Done.
|
| + <img class="publication-logo" alt="{{ item.publication }} (Opens in a new window)" src="/images/coverage/{{ item.image }}-1x.png" srcset="/images/coverage/{{ item.image }}-2x.png 2x"> |
|
juliandoucette
2017/08/01 23:07:33
NIT: I think alt text is supposed to describe the
ire
2017/08/02 10:35:58
Agreed on using "{{ item.publication }} logo".
I'
juliandoucette
2017/08/02 20:31:12
Acknowledged.
|
| + <img class="external-link-icon" src="/images/icon-external-link.png" srcset="/images/icon-external-link.svg 2x" alt=""> |
|
ire
2017/08/01 10:04:06
I purposefully left a null alternative text here b
juliandoucette
2017/08/01 23:07:33
Acknowledged.
I would suggest something like:
al
ire
2017/08/02 10:35:59
Makes sense. I changed the alt, but added the titl
juliandoucette
2017/08/02 20:31:12
Acknowledged.
|
| + </a> |
| +{% endmacro %} |
| + |
| +<ul id="media-links"> |
| + {% for item in media %} |
| + <li>{{ media_item(item) }}</li> |
| + {% endfor %} |
| +</ul> |