Skip to content

Commit 1085598

Browse files
committed
Support configuring the featured series in the _config.yml
1 parent d85c1fa commit 1085598

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description: >- # this means to ignore newlines until "baseurl:"
77
baseurl: "" # the subpath of your site, e.g. /blog
88
url: "https://tech.scribd.com" # the base hostname & protocol for your site, e.g. http://example.com
99
google_analytics: 'UA-443684-30'
10+
featured_series: 'airflow-series'
1011

1112
# GitHub Metadata
1213
# Used for "improve this page" link

_includes/featured-post-hero.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ <h2 class="hero__title">
7070
<section class="feat-post__secondary">
7171
<h3 class="section-heading mb-0 text-plum">Featured Series</h3>
7272
<ul class="post-list text-length-sm">
73-
7473
<!-- Pick a series to features using its unique tag - i.e. di-series -->
75-
{% assign featured-series = site.tags.di-series | sort: 'date' %}
74+
{% assign featured-series = site.tags[site.featured_series] | sort: 'date' %}
7675
{% for post in featured-series limit: 2 %}
7776
<!-- Post item template -->
7877
{% include post-list-item.html %}

0 commit comments

Comments
 (0)