Skip to content

Commit

Permalink
update class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Gardner committed Jan 6, 2023
1 parent 3cd0773 commit 80e2188
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _includes/articleslist.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
{% for post in postslist | reverse %}
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
<time class="postlist-date icon-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
<time class="postlist-date icon--date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
<ul class="post-tags list-reset">
{% for tag in post.data.tags | filterTagList %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li class="post-tags__item">
<a href="{{ tagUrl | url }}" class="post-tag icon-tag">{{ tag }}</a>
<a href="{{ tagUrl | url }}" class="post-tag icon--tag">{{ tag }}</a>
</li>
{% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions _includes/layouts/article.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ templateClass: tmpl-article
<article>
<header>
<h1>{{ title }}</h1>
<time class="post-date icon-date" datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
<time class="post-date icon--date" datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
<ul class="post-tags list-reset">
{%- for tag in tags | filterTagList %}
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li class="post-tags__item">
<a href="{{ tagUrl | url }}" class="post-tag icon-tag">{{ tag }}</a>
<a href="{{ tagUrl | url }}" class="post-tag icon--tag">{{ tag }}</a>
</li>
{%- endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/css/components/icons.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.icon-date {
.icon--date {
background: url(/img/ui/calendar.svg) no-repeat 0 50%;
padding-left: var(--size-5);
}

.icon-tag {
.icon--tag {
background: url(/img/ui/tag.svg) no-repeat 0 50%;
padding-left: var(--size-5);
}
2 changes: 1 addition & 1 deletion tags-list.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ layout: layouts/home.njk
{% for tag in collections.tagList %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li class="post-tags__item">
<a href="{{ tagUrl | url }}" class="post-tag icon-tag">{{ tag }}</a>
<a href="{{ tagUrl | url }}" class="post-tag icon--tag">{{ tag }}</a>
</li>
{% endfor %}
</ul>

0 comments on commit 80e2188

Please sign in to comment.