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
Listing shortcode #2880
Listing shortcode #2880
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s up with the license? Could we avoid duplicating rest/listings.py code?
nikola/plugins/shortcode/listing.py
Outdated
@@ -0,0 +1,58 @@ | |||
# -*- coding: utf-8 -*- | |||
# This file is public domain according to its author, Brian Hsu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoa, flashback. I don't think any of that code is still there. OTOH, I suspect this is because I copied gist.py :-)
Could we avoid duplicating rest/listings.py code? |
@Kwpolska there is not that much repeated code:
It's about 10 LOC and only used in these two, so can't go to utils/ ... any suggestions where I could put it? |
Implement #2868