Support configuring the featured series in the _config.yml
This commit is contained in:
parent
d85c1fa6d3
commit
10855984f8
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue