mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 290adb9499 into 6813cd923f
This commit is contained in:
commit
a482ba41f2
3 changed files with 24 additions and 2 deletions
|
|
@ -9,7 +9,8 @@ Next release
|
||||||
longer article-specific
|
longer article-specific
|
||||||
* Deprecate ``FILES_TO_COPY`` in favor of ``STATIC_PATHS`` and
|
* Deprecate ``FILES_TO_COPY`` in favor of ``STATIC_PATHS`` and
|
||||||
``EXTRA_PATH_METADATA``
|
``EXTRA_PATH_METADATA``
|
||||||
* Add support for |tag| and |category| relative links.
|
* Add support for ``{}`` in relative links syntax, besides ``||``
|
||||||
|
* Add support for ``{tag}`` and ``{category}`` relative links
|
||||||
|
|
||||||
3.2.1 and 3.2.2
|
3.2.1 and 3.2.2
|
||||||
===============
|
===============
|
||||||
|
|
|
||||||
14
docs/faq.rst
14
docs/faq.rst
|
|
@ -96,7 +96,7 @@ This metadata can then be accessed in templates such as ``article.html`` via::
|
||||||
Last modified: {{ article.modified }}
|
Last modified: {{ article.modified }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
If you want to include metadata in templates outside the article context (e.g., ``base.html``), the ``if`` statement should instead be:
|
If you want to include metadata in templates outside the article context (e.g., ``base.html``), the ``if`` statement should instead be::
|
||||||
|
|
||||||
{% if article and article.modified %}
|
{% if article and article.modified %}
|
||||||
|
|
||||||
|
|
@ -191,3 +191,15 @@ Older themes that referenced the old setting names may not link properly.
|
||||||
In order to rectify this, please update your theme for compatibility by changing
|
In order to rectify this, please update your theme for compatibility by changing
|
||||||
the relevant values in your template files. For an example of complete feed
|
the relevant values in your template files. For an example of complete feed
|
||||||
headers and usage please check out the ``simple`` theme.
|
headers and usage please check out the ``simple`` theme.
|
||||||
|
|
||||||
|
Is Pelican only suitable for blogs?
|
||||||
|
===================================
|
||||||
|
|
||||||
|
No. Pelican can be easily configured to create and maintain any type of static site.
|
||||||
|
This may require little customization of your theme and Pelican configuration.
|
||||||
|
For example, if you are building a launch site for your product and do not need
|
||||||
|
tags on your site. You can hide tags by removing relevant html code from your theme.
|
||||||
|
You can also disable generation of tags pages::
|
||||||
|
|
||||||
|
TAGS_SAVE_AS = ''
|
||||||
|
TAG_SAVE_AS = ''
|
||||||
|
|
|
||||||
|
|
@ -83,3 +83,12 @@ that you will add ``CNAME`` file to your ``content``, dir and use the
|
||||||
to the ``output`` dir. For example::
|
to the ``output`` dir. For example::
|
||||||
|
|
||||||
FILES_TO_COPY = (('extra/CNAME', 'CNAME'),)
|
FILES_TO_COPY = (('extra/CNAME', 'CNAME'),)
|
||||||
|
|
||||||
|
How to add Youtube or Vimeo Videos
|
||||||
|
==================================
|
||||||
|
|
||||||
|
The easiest way is to paste embed code of the video from these sites in your
|
||||||
|
markup file.
|
||||||
|
|
||||||
|
Alternatively, you can also use Pelican plugins like ``liquid_tags`` or ``pelican_youtube``
|
||||||
|
or ``pelican_vimeo`` to embed videos in your blog.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue