Skip to content

Commit

Permalink
feat: related articles footer
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus authored Nov 17, 2024
1 parent 2711407 commit 2c78053
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions www/_includes/layouts/article.webc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ layout: page
</header>

<div @raw="content" webc:nokeep></div>

<footer>
<h2 class="recent">Recent Articles</h2>

<article-list
:articles="collections.article.filter((article) => article.url !== page.url)"
limit="5"
></article-list>
</footer>
</article>

<style webc:scoped>
Expand Down Expand Up @@ -62,4 +71,8 @@ layout: page
:host header figure {
margin: 1rem 0;
}

:host footer {
margin: 4rem 0;
}
</style>

0 comments on commit 2c78053

Please sign in to comment.