Support configuring the featured series in the _config.yml

This commit is contained in:
R Tyler Croy 2020-02-29 11:40:16 -08:00
parent d85c1fa6d3
commit 10855984f8
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,7 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://tech.scribd.com" # the base hostname & protocol for your site, e.g. http://example.com
google_analytics: 'UA-443684-30'
featured_series: 'airflow-series'
# GitHub Metadata
# Used for "improve this page" link

View File

@ -70,9 +70,8 @@
<section class="feat-post__secondary">
<h3 class="section-heading mb-0 text-plum">Featured Series</h3>
<ul class="post-list text-length-sm">
<!-- Pick a series to features using its unique tag - i.e. di-series -->
{% assign featured-series = site.tags.di-series | sort: 'date' %}
{% assign featured-series = site.tags[site.featured_series] | sort: 'date' %}
{% for post in featured-series limit: 2 %}
<!-- Post item template -->
{% include post-list-item.html %}