From c6b4281b6ad814cd7107c2b97bc11d65b3894dd8 Mon Sep 17 00:00:00 2001 From: Talha Mansoor Date: Mon, 9 Sep 2013 00:43:28 +0500 Subject: [PATCH 1/3] Add updated syntax of relative links in changes.rst --- docs/changelog.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 27938d4d..064c8fd2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,7 +9,8 @@ Next release longer article-specific * Deprecate ``FILES_TO_COPY`` in favor of ``STATIC_PATHS`` and ``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 =============== From bfa8c74705205905db18b40f5bcb0f8d9beb840e Mon Sep 17 00:00:00 2001 From: Talha Mansoor Date: Mon, 9 Sep 2013 00:45:45 +0500 Subject: [PATCH 2/3] Add details on how to use Pelican for non-blog static sites This question comes up on IRC quite frequently. --- docs/faq.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/faq.rst b/docs/faq.rst index 2cd363d8..c1d4f5a0 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -96,7 +96,7 @@ This metadata can then be accessed in templates such as ``article.html`` via:: Last modified: {{ article.modified }} {% 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 %} @@ -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 the relevant values in your template files. For an example of complete feed 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 = '' From 290adb94991212332cca9a87a15b0e3f500aff3a Mon Sep 17 00:00:00 2001 From: Talha Mansoor Date: Mon, 9 Sep 2013 00:52:26 +0500 Subject: [PATCH 3/3] Add tip on how to add videos to your blog. --- docs/tips.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/tips.rst b/docs/tips.rst index 430d6488..1864f0dd 100644 --- a/docs/tips.rst +++ b/docs/tips.rst @@ -83,3 +83,12 @@ that you will add ``CNAME`` file to your ``content``, dir and use the to the ``output`` dir. For example:: 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.