From fbc45d7ff0f9dbcce30f4f119faecfb810281003 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Mon, 5 Aug 2024 20:42:50 +0000 Subject: [PATCH] fix(a11y): press, resources - make dateline tertiary, not secondary for a11y --- src/_includes/article.html | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/src/_includes/article.html b/src/_includes/article.html index b3439204..a5b83d8d 100644 --- a/src/_includes/article.html +++ b/src/_includes/article.html @@ -1,30 +1,12 @@ -{% if item.category %} - {% if item.asset %} - {% assign url = item.asset %} - {% unless url contains "https://" %} - {% assign url = "/assets/" | append: url %} - {% endunless %} - {% else %} - {% assign url = item.url %} - {% endif %} -{% else %} - {% assign url = item.url %} - {% if item.external %} - {% assign url = item.external %} - {% endif %} -{% endif %} +{% if item.category %} {% if item.asset %} {% assign url = item.asset %} {% unless url contains "https://" %} {% assign url = +"/assets/" | append: url %} {% endunless %} {% else %} {% assign url = item.url %} {% endif %} {% else %} {% assign url = item.url +%} {% if item.external %} {% assign url = item.external %} {% endif %} {% endif %}
- {{ item.title }} -
- - {% if item.outlet %} - {{ item.outlet }} |{% endif %} - {% if item.tags.size > 0 %} - {{ item.tags | join: ", " }} |{% endif %} - {% include date.html date=item.date format = "%b %Y" %} + {{ item.title }} +
+ + {% if item.outlet %} {{ item.outlet }} |{% endif %} {% if item.tags.size > 0 %} {{ item.tags | join: ", " }} |{% endif %} {% + include date.html date=item.date format = "%b %Y" %}