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
Images does not show on draft article #1639
Comments
Can you show your settings file and how you link to static content? |
@avaris all blog: https://github.com/pythonclub/pythonclub.github.io https://github.com/pythonclub/pythonclub.github.io/blob/pelican/content/changing-tuples-pt_BR.rst To test:
and |
Right, I suspected it might be the case. You're not using You should do:
instead of
|
@avaris oh. Sorry, and thank you for pointing out my mistake. As I am not a fluent speaker of the English language and the vast majority of blog collaborators of PythonClub colaborative blog also are not. Some things due to my still little knowledge in English language, yet are not very clear. I think the real problem is the documentation. The documentation is inconsistent as to the examples. Some examples are shown only in Markdown version and others only in reStructuredText. So it would be good to show examples in both, in Markdown and in reStructuredText That Said, is a reStructuredText valid sintax . It would be possible to include a warning, showing that it is not recommended this syntax when using Pelican and talking to be insert |
Hi @luzfcb. Thanks for your comments. Some thoughts...
This gets cumbersome to do everywhere, and it doesn't scale. Should we include examples for Asciidoc, too? What if we support Textile in the future? Do we include that, too?
Sure... IF you are trying to link to your generated output as it appears on your live site — e.g., http://example.com/images/ramalho/Tweedledum-Tweedledee_500x390.png. But that's not what you're trying to here, is it? I get the impression you are instead trying to link to your source content — i.e.,
I don't think that is a good idea. Intrasite link syntax is optional, so the warning you suggest would be spurious and annoying to everyone who does not use intrasite links. |
also we actually do have examples for md AND rst in the docs: http://pelican.readthedocs.org/en/latest/content.html#linking-to-internal-content the only problem here is as @justinmayer pointed out that you don't seem to grasp the difference between a link to somewhere and a 'internal' link which will be translated by pelican to the final url of the content you 'linked' via the |
When I use the
:status: draft
due to the url of generated image is relative, the image is not found because draft articles staying in url
http://foodomain.com/drafts
would not want to have to manage another folder for images.
I would simply remove
: status: draft
from article and the article be published, without the need to stay renaming folders and moving static filesif this is expected behavior, it is not documented:
http://docs.getpelican.com/en/3.5.0/content.html?highlight=draft#publishing-drafts
The text was updated successfully, but these errors were encountered: