Skip to content

Commit

Permalink
style collection title
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Gardner committed Jan 9, 2023
1 parent 168fae7 commit 13efa82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: layouts/base.njk
title: Recent Articles
---
<div class="content">
<h1>{{ title }}</h1>
<h1 class="collection-title">{{ title }}</h1>
<ol reversed class="postlist list-reset">
{% for article in collections.articles | reverse %}
<li class="postlist-item{% if article.url == url %} postlist-item-active{% endif %}">
Expand Down
1 change: 1 addition & 0 deletions src/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import 'utilities/helpers.css';
@import 'layout/header.css';
@import 'layout/article.css';
@import 'layout/collection.css';
@import 'components/postlist.css';
@import 'components/meta.css';
@import 'components/icons.css';
Expand Down
4 changes: 4 additions & 0 deletions src/css/layout/collection.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.collection-title {
font-size: var(--size-4);
text-transform: uppercase;
}
2 changes: 1 addition & 1 deletion tags.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ eleventyComputed:
title: Tagged “{{ tag }}
permalink: /tags/{{ tag | slugify }}/
---
<h1>Tagged “{{ tag }}”</h1>
<h1 class="collection-title">Tagged “{{ tag }}”</h1>

{% set postslist = collections[ tag ] %}
{% include "articleslist.njk" %}
Expand Down

0 comments on commit 13efa82

Please sign in to comment.