diff --git a/Gemfile b/Gemfile index 0cb2a8af6fc5..b0cf11d34238 100644 --- a/Gemfile +++ b/Gemfile @@ -1,16 +1,17 @@ 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' @@ -18,6 +19,6 @@ group :jekyll_plugins do gem 'webrick' end group :other_plugins do - gem 'httparty' gem 'feedjira' + gem 'httparty' end diff --git a/README.md b/README.md index 6174d566d33b..a35d72eba16f 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ Score Based Methods (NeurIPS: + + +

Enjoy Reading This Article?

+

Here are some more articles you might like to read next:

+ {% endunless %} + +
  • + {{ post.title }} +
  • +{% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index ad513ff4a599..de9ad7f491d6 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -43,6 +43,12 @@

    {{ page.title }}

    {{ content }} + {%- if site.related_blog_posts.enabled -%} + {%- if page.related_posts == null or page.related_posts -%} + {% include related_posts.html %} + {%- endif %} + {%- endif %} + {%- if site.disqus_shortname and page.disqus_comments -%} {% include disqus.html %} {%- endif %} diff --git a/_posts/2015-10-20-disqus-comments.md b/_posts/2015-10-20-disqus-comments.md index 3174f6ca54e9..ec406e4f6221 100644 --- a/_posts/2015-10-20-disqus-comments.md +++ b/_posts/2015-10-20-disqus-comments.md @@ -5,5 +5,6 @@ date: 2015-10-20 11:59:00-0400 description: an example of a blog post with disqus comments categories: sample-posts external-services disqus_comments: true +related_posts: false --- This post shows how to add DISQUS comments. diff --git a/_posts/2015-10-20-math.md b/_posts/2015-10-20-math.md index 1fdca4dd216e..860a3ec1240c 100644 --- a/_posts/2015-10-20-math.md +++ b/_posts/2015-10-20-math.md @@ -5,6 +5,7 @@ date: 2015-10-20 11:12:00-0400 description: an example of a blog post with some math tags: formatting math categories: sample-posts +related_posts: false --- This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/) engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$. diff --git a/_posts/2022-02-01-redirect.md b/_posts/2022-02-01-redirect.md index 8bb9f857d473..62be5f3cc327 100644 --- a/_posts/2022-02-01-redirect.md +++ b/_posts/2022-02-01-redirect.md @@ -5,3 +5,5 @@ date: 2022-02-01 17:39:00 description: you can also redirect to assets like pdf redirect: /assets/pdf/example_pdf.pdf --- + +Redirecting to another page. diff --git a/_posts/2022-12-10-giscus-comments.md b/_posts/2022-12-10-giscus-comments.md index 01c8755fba74..a8971a563ac0 100644 --- a/_posts/2022-12-10-giscus-comments.md +++ b/_posts/2022-12-10-giscus-comments.md @@ -5,5 +5,6 @@ date: 2022-12-10 11:59:00-0400 description: an example of a blog post with giscus comments categories: sample-posts external-services giscus_comments: true +related_posts: false --- This post shows how to add GISCUS comments. diff --git a/bin/cibuild b/bin/cibuild index d5c9e1956fe7..14cfabea577c 100755 --- a/bin/cibuild +++ b/bin/cibuild @@ -1 +1 @@ -bundle exec jekyll build +bundle exec jekyll build --lsi diff --git a/bin/deploy b/bin/deploy index 6797268f1424..dc339a6706ad 100755 --- a/bin/deploy +++ b/bin/deploy @@ -93,7 +93,7 @@ git checkout -b $DEPLOY_BRANCH export JEKYLL_ENV=production # Build site -bundle exec jekyll build +bundle exec jekyll build --lsi # Delete and move files find . -maxdepth 1 ! -name '_site' ! -name '.git' ! -name 'CNAME' ! -name '.gitignore' -exec rm -rf {} \;