-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a "post series" component to display all posts in a series
- Loading branch information
1 parent
c5d7797
commit b938074
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% assign tag = include.tag %} | ||
{% assign topic = include.topic %} | ||
|
||
{% assign post_list = site.tags[tag] %} | ||
|
||
<div class="alert alert-primary pb-0"> | ||
<h5><i class="bi bi-bookmark-star-fill"></i> In This Series</h5> | ||
<p class="pb-0 mb-2">This post is part of a series about <span class="fw-semibold">{{ topic }}</span>.</p> | ||
<ol> | ||
{% for each in post_list reversed %} | ||
<li class="fw-bold"> | ||
{% if each.url == page.url %} | ||
<span class="fw-bold">{{ each.title }}</span> <i class="bi bi-star-fill"></i> | ||
{% else %} | ||
<a href="{{ each.url }}" class="alert-link fw-normal">{{ each.title }}</a> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters