Skip to content

Commit

Permalink
Merge pull request #157 from springload/fix/link-blog-author
Browse files Browse the repository at this point in the history
Add links to blog author pages
  • Loading branch information
liamjohnston authored Aug 4, 2024
2 parents c69f070 + 24e924a commit 4bc1d21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cdhweb/static_src/global/components/blog-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ Blog hero. Similar to standard hero. Key differences:
@include xl {
font-size: px2rem(20);
}

:where(ul) {
display: flex;
flex-direction: column;
gap: 12px;
}
}

.blog-hero__description {
Expand Down
2 changes: 1 addition & 1 deletion templates/includes/blog_hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>{{ page.title }}</h1>
<h2 class="sr-only">Authors</h2>
<ul>
{% for author in page.authors.all %}
<li>{{ author.person }}</li>
<li><a href="{{ author.person.profile_url }}">{{ author.person }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit 4bc1d21

Please sign in to comment.