Skip to content

Commit

Permalink
fix(a11y): press, resources - make dateline tertiary, not secondary f…
Browse files Browse the repository at this point in the history
…or a11y
  • Loading branch information
machikoyasuda committed Aug 5, 2024
1 parent 9fcd775 commit fbc45d7
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions src/_includes/article.html
Original file line number Diff line number Diff line change
@@ -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 %}

<article class="d-block mb-3 pb-4">
<a
href="{{ url }}"
{% if item.external %}
target="_blank"
{% endif %}>{{ item.title }}</a>
<br/>
<span class="text-secondary font-poppins fs-7">
{% if item.outlet %}
{{ item.outlet }} |{% endif %}
{% if item.tags.size > 0 %}
{{ item.tags | join: ", " }} |{% endif %}
{% include date.html date=item.date format = "%b %Y" %}</span>
<a href="{{ url }}" {% if item.external %} target="_blank" {% endif %}>{{ item.title }}</a>
<br />
<span class="text-body-tertiary font-poppins fs-7">
{% if item.outlet %} {{ item.outlet }} |{% endif %} {% if item.tags.size > 0 %} {{ item.tags | join: ", " }} |{% endif %} {%
include date.html date=item.date format = "%b %Y" %}</span
>
</article>

0 comments on commit fbc45d7

Please sign in to comment.