Comments (5)
Consider using a different YAML front-matter item:
In your post:
---
title: My upcoming post
written: false
permalink: THIS-CRAZY-UNGUESSABLE-LINK-HAHAHAHOIAENFOEA
---
This post is unwritten
Now list the posts, but showing only those you want to show:
<ul>
{% for post in site.posts %}
<li>
{% if post.written %}
<a href="{{ post.url }}">{{ post.title }}</a>
{% else %}
{{ post.title }} (coming soon)
{% endif %}
</li>
{% endfor %}
</ul>
from jekyll-help.
Thanks for the info - that could work at the post level, but I have the following issues with it.
- The series component allows me to just include
{% include series.html %}
anywhere and it generates the series - I would rather not duplicate code like this within blog-post content if possible. Would love to find a way to abstract out the
series
concept from the posts... - I'm not sure how to get what I want with that example and not have the future posts arrive in the
rss
feed and the RecentPosts section on the right of the page.
from jekyll-help.
You'll like collections: jekyll/jekyll#2199
from jekyll-help.
Thanks, I'll be patient and wait to take a look at this.
For now I may just go with what I have and not worry about showing the up-and-coming posts. Since the tool will automatically re-generate the series section anyway.
Thanks!
from jekyll-help.
Closing this out. I think this is a fantastic use case for collections, though. We should write a tutorial on how to do this once 2.0 is finally released.
from jekyll-help.
Related Issues (20)
- undefined method 'activate_bin_path' HOT 1
- files not able to be accessed HOT 1
- bundle problem HOT 1
- Bundler could not find compatible versions for gem “kramdown” HOT 1
- Jekyll Error not helpful HOT 1
- Every thing is perfect in local server. But not in GitHub. HOT 1
- favicon for minima theme HOT 1
- Installation Process NEED HELP HOT 1
- Jekyll Server Stripping URLs From Generated Code HOT 1
- Jekyll category names from folder name & frontmatter HOT 1
- cannot install HOT 1
- jniujhcv HOT 1
- Saving a file while running jekyll serve causes an error HOT 1
- GH-pages build and local jekyll build have different display formats for posts HOT 1
- Need Jekyll Help in running multiple jekyll instances on different port and using nginx server HOT 1
- Installation fails on CentOS 7 due to dependencies HOT 1
- Jekyll Build Not Working after MacOS High Sierra Update HOT 1
- Accessing specific data items not working HOT 1
- Jekyll not found after running gem install HOT 1
- GitHub published site appears much different than local site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-help.