Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reStructuredText directive: post_list #815

Closed
udono opened this issue Oct 10, 2013 · 6 comments
Closed

Add reStructuredText directive: post_list #815

udono opened this issue Oct 10, 2013 · 6 comments

Comments

@udono
Copy link
Contributor

udono commented Oct 10, 2013

Add reStructuredText directive "post_list", which renders a list of posts on a 'story'.

 Usage:
    .. post_list:: [post_list_id]
        :lang: the language of the title and links (string)
        :slice-start: the start value of the slice of the post list (integer)
        :slice-stop: the stop value of the slice of the post list (integer)
        :slice-step: the step value of the slice of the post list (integer)
        :tags: shows only posts with tags (list of strings)
        :template: use an alternative template (uri string)

The argument ``post_list_id`` sets an id for the post list.
All arguments and options are optional.
@udono
Copy link
Contributor Author

udono commented Oct 10, 2013

Thanks for testing and reviewing!

@ralsina
Copy link
Member

ralsina commented Oct 10, 2013

Can you show an example of how this would be used in a document?

@ralsina
Copy link
Member

ralsina commented Oct 10, 2013

Also, can you turn it into a pull request? That makes travis run the test suite on it :-)

@udono
Copy link
Contributor Author

udono commented Oct 11, 2013

Also, can you turn it into a pull request? That makes travis run the test suite on it :-)

Done: #816

Can you show an example of how this would be used in a document?

I put it in the description of the pull request.

@ralsina
Copy link
Member

ralsina commented Oct 11, 2013

On 11/10/13 07:56, Udo Spallek wrote:

Also, can you turn it into a pull request? That makes travis run
the test suite on it :-)
Done: #816 <https://github.com/getnikola/nikola/pull/816>

Can you show an example of how this would be used in a document?
I put it in the description of the pull request.

Awesome, I will take a look at this today to give you more feedback.

@Kwpolska
Copy link
Member

In order to make stuff a bit cleaner, closing this issue (the pull request is here to stay and get merged in)

ralsina added a commit that referenced this issue Oct 22, 2013
Add reStructuredText directive post_list for issue #815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants