Skip to content

Commit

Permalink
Add more item links to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Dec 4, 2024
1 parent e530c2f commit 3e3e615
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/_includes/main/project-grid.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
{% include "main/project-card.njk" %}
{% endeach %}
</div>
<a class="home__btn-link" href="/projects">More Projects</a>
</section>
6 changes: 6 additions & 0 deletions src/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
text-align: center;
}

/* Home button links */
.home__btn-link {
display: block;
margin: 0 auto;
}

/* Webrings and Badges */
.widgets.webrings {
gap: 2em;
Expand Down
1 change: 1 addition & 0 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
<h2 class="heading--home">Latest Blog Posts</h2>
{% set postList = collections.posts | reverse | itemLimit(3) %}
{% include "blog/postslist.njk" %}
<a class="home__btn-link" href="/blog">More Blog Posts</a>
</section>
{% include "main/project-grid.njk" %}
{% include "main/webmembership.njk" %}
Expand Down

0 comments on commit 3e3e615

Please sign in to comment.