Skip to content

How to show posts in "Just the docs" #1137

Answered by mattxwang
SvenFlock asked this question in Q&A
Discussion options

You must be logged in to vote

@SvenFlock you would just need to write some liquid code that searches through site.posts and renders whatever liquid/HTML you'd like. Just the Docs doesn't touch the posts feature at all, other than adding the default layout to post pages.

The Jekyll docs on posts are a good read if you're not familiar. Her'es a relevant snippet (that you would need to change to fit your purposes)

<ul>
  {% for post in site.posts %}
    <li>
      <a href="{{ post.url }}">{{ post.title }}</a>
    </li>
  {% endfor %}
</ul>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SvenFlock
Comment options

@mattxwang
Comment options

Answer selected by mattxwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants