forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added related posts section (alshedivat#1168)
- Loading branch information
1 parent
d3b6c3e
commit 2c649cb
Showing
7 changed files
with
42 additions
and
8 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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
source 'https://rubygems.org' | ||
group :jekyll_plugins do | ||
gem 'classifier-reborn' | ||
gem 'jekyll' | ||
gem 'jekyll-archives' | ||
gem 'jekyll-diagrams' | ||
gem 'jekyll-email-protect' | ||
gem 'jekyll-feed' | ||
gem 'jekyll-imagemagick' | ||
gem 'jekyll-link-attributes' | ||
gem 'jekyll-minifier' | ||
gem 'jekyll-paginate-v2' | ||
gem 'jekyll-scholar' | ||
gem 'jekyll-sitemap' | ||
gem 'jekyll-link-attributes' | ||
gem 'jekyll-twitter-plugin' | ||
gem 'jemoji' | ||
gem 'mini_racer' | ||
gem 'unicode_utils' | ||
gem 'webrick' | ||
end | ||
group :other_plugins do | ||
gem 'httparty' | ||
gem 'feedjira' | ||
gem 'httparty' | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% assign have_related_posts = false %} | ||
|
||
{% for post in site.related_posts | limit: site.related_blog_posts.max_related %} | ||
{% unless have_related_posts %} | ||
{% assign have_related_posts = true %} | ||
<br> | ||
<hr> | ||
<br> | ||
<ul class="list-disc pl-8"></ul> | ||
|
||
<!-- Adds related posts to the end of an article --> | ||
<h2 class="text-3xl font-semibold mb-4 mt-12">Enjoy Reading This Article?</h2> | ||
<p class="mb-2">Here are some more articles you might like to read next:</p> | ||
{% endunless %} | ||
|
||
<li class="my-2"> | ||
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> | ||
</li> | ||
{% endfor %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bundle exec jekyll build | ||
bundle exec jekyll build --lsi |
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