mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Don't rewrite URLs
Remove the code that was appending ../static in front of some URLs, and add a way to do cross-content linking.
This commit is contained in:
parent
f653118658
commit
c74abe579b
12 changed files with 228 additions and 125 deletions
|
|
@ -14,7 +14,7 @@ Why not ?
|
|||
After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||
YEAH !
|
||||
|
||||
.. image:: pictures/Sushi.jpg
|
||||
.. image:: |filename|/pictures/Sushi.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
|
|
|||
|
|
@ -2,3 +2,6 @@ Title: A markdown powered article
|
|||
Date: 2011-04-20
|
||||
|
||||
You're mutually oblivious.
|
||||
|
||||
[a root-relative link to unbelievable](|filename|/unbelievable.rst)
|
||||
[a file-relative link to unbelievable](|filename|../unbelievable.rst)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ This is a test page
|
|||
|
||||
Just an image.
|
||||
|
||||
.. image:: pictures/Fat_Cat.jpg
|
||||
.. image:: |filename|/pictures/Fat_Cat.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ This is a simple title
|
|||
|
||||
And here comes the cool stuff_.
|
||||
|
||||
.. image:: pictures/Sushi.jpg
|
||||
.. image:: |filename|/pictures/Sushi.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
||||
.. image:: pictures/Sushi_Macro.jpg
|
||||
.. image:: |filename|/pictures/Sushi_Macro.jpg
|
||||
:height: 450 px
|
||||
:width: 600 px
|
||||
:alt: alternate text
|
||||
|
|
|
|||
|
|
@ -4,3 +4,6 @@ Unbelievable !
|
|||
:date: 2010-10-15 20:30
|
||||
|
||||
Or completely awesome. Depends the needs.
|
||||
|
||||
`a root-relative link to markdown-article <|filename|/cat1/markdown-article.md>`_
|
||||
`a file-relative link to markdown-article <|filename|cat1/markdown-article.md>`_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue