We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f8f56 commit d3451feCopy full SHA for d3451fe
1 file changed
staging/index.md
@@ -16,8 +16,8 @@ This is where posts are staged for preview before going live.
16
## Staged Posts
17
18
<div class="post-links">
19
- {% assign staging_posts = site.staging | sort: 'date' | reverse %}
20
- {% if staging_posts.size > 0 %}
+ {% if site.staging and site.staging.size > 0 %}
+ {% assign staging_posts = site.staging | sort: 'date' | reverse %}
21
{% for post in staging_posts %}
22
<div class="post-link-wrapper">
23
<a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
0 commit comments