mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #623 from bbinet/url-save_as-override
Override page 'url' and 'save_as' directly from the page metadata. Fixes #400.
This commit is contained in:
commit
d0e9c52410
64 changed files with 288 additions and 59 deletions
16
docs/faq.rst
16
docs/faq.rst
|
|
@ -92,6 +92,22 @@ want to have its own template.
|
|||
Then just make sure your theme contains the relevant template file (e.g.
|
||||
``template_name.html``).
|
||||
|
||||
How can I override the generated url of a specific page or article?
|
||||
===================================================================
|
||||
|
||||
It's as simple as specifying the ``url`` and ``save_as`` special metadata to
|
||||
any pages or articles you want to override the generated url.
|
||||
Here is an example rst page::
|
||||
|
||||
Override url/save_as page
|
||||
#########################
|
||||
|
||||
:url: override/url/
|
||||
:save_as: override/url/index.html
|
||||
|
||||
You're done, the page will be written to ``override/url/index.html``
|
||||
and Pelican will use url ``override/url/`` to link to this page.
|
||||
|
||||
What if I want to disable feed generation?
|
||||
==========================================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue