mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
merge with master
This commit is contained in:
commit
93c04cd79f
166 changed files with 4437 additions and 2285 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -9,3 +9,5 @@ build
|
||||||
dist
|
dist
|
||||||
tags
|
tags
|
||||||
.tox
|
.tox
|
||||||
|
.coverage
|
||||||
|
htmlcov
|
||||||
|
|
|
||||||
108
CHANGELOG
108
CHANGELOG
|
|
@ -1,108 +0,0 @@
|
||||||
3.0 - XX/XX/XXXX
|
|
||||||
|
|
||||||
* Refactored the way URL are handled.
|
|
||||||
* Improved the english documentation
|
|
||||||
* Fixed packaging using setuptools entrypoints
|
|
||||||
* Added typogrify support
|
|
||||||
* Added a way to disable feed generation
|
|
||||||
* Added support for DIRECT_TEMPLATES
|
|
||||||
* Allow multiple extensions for content files
|
|
||||||
* Added less support
|
|
||||||
* Improved the import script
|
|
||||||
* Fixed a bunch of bugs :-)
|
|
||||||
* Added functional tests
|
|
||||||
* Rsync support in the generated Makefile
|
|
||||||
* Improved feed support (easily pluggable with feedburner for instance)
|
|
||||||
|
|
||||||
2.8
|
|
||||||
|
|
||||||
* dotclear importer
|
|
||||||
* Allow the usage of markdown extensions
|
|
||||||
* Themes are now easily extensible
|
|
||||||
* Don't output pagination information if there is only one page.
|
|
||||||
* Add a page per author, with all their articles
|
|
||||||
* Improved the test suite
|
|
||||||
* Made the themes more easy to extend
|
|
||||||
* Removed Skribit support
|
|
||||||
* Added a "pelican-quickstart" script
|
|
||||||
* Fixed timezone-related issues
|
|
||||||
* Add some scripts for windows support
|
|
||||||
* Date can be specified in seconds
|
|
||||||
* Never fail when generating posts (skip and continue)
|
|
||||||
* Allow the use of future dates
|
|
||||||
* Support having different timezones per languages.
|
|
||||||
* Enhanced the documentation
|
|
||||||
|
|
||||||
2.7
|
|
||||||
|
|
||||||
* Uses logging rather than echoing to stdout
|
|
||||||
* Support custom jinja filters
|
|
||||||
* Compatibility with python 2.5
|
|
||||||
* Add a theme manager
|
|
||||||
* Packaged for debian
|
|
||||||
* Add draft support
|
|
||||||
|
|
||||||
2.6
|
|
||||||
|
|
||||||
* changes in the output directory structure
|
|
||||||
* makes templates easier to work with / create
|
|
||||||
* Add RSS support (was only atom previously)
|
|
||||||
* Add tag support for the feeds
|
|
||||||
* Enhance the documentation
|
|
||||||
* Add another theme (brownstone)
|
|
||||||
* Add translations
|
|
||||||
* Add a way to use "cleaner urls" with a rewrite url module (or equivalent)
|
|
||||||
* Add a tag cloud
|
|
||||||
* Add an autoreloading feature: the blog is automatically regenerated each time a modification is detected
|
|
||||||
* Translate the documentation in french
|
|
||||||
* import a blog from an rss feed
|
|
||||||
* Pagination support
|
|
||||||
* Add skribit support
|
|
||||||
|
|
||||||
2.5
|
|
||||||
|
|
||||||
* import from wordpress
|
|
||||||
* add some new themes (martyalchin / wide-notmyidea)
|
|
||||||
* first bug report !
|
|
||||||
* linkedin support
|
|
||||||
* added a FAQ
|
|
||||||
* google analytics support
|
|
||||||
* twitter support
|
|
||||||
* use relative urls not static ones
|
|
||||||
|
|
||||||
2.4
|
|
||||||
|
|
||||||
* minor themes changes
|
|
||||||
* add disqus support (so we have comments)
|
|
||||||
* another code refactoring
|
|
||||||
* add config settings about pages
|
|
||||||
* blog entries can also be generated in pdf
|
|
||||||
|
|
||||||
2.3
|
|
||||||
|
|
||||||
* markdown support
|
|
||||||
|
|
||||||
2.2
|
|
||||||
|
|
||||||
* Prettify output
|
|
||||||
* Manages static pages as well
|
|
||||||
|
|
||||||
2.1
|
|
||||||
|
|
||||||
* Put the notmyidea theme by default
|
|
||||||
|
|
||||||
2.0
|
|
||||||
|
|
||||||
* Refactoring to be more extensible
|
|
||||||
* Change into the setting variables
|
|
||||||
|
|
||||||
1.2
|
|
||||||
|
|
||||||
* Add a debug option
|
|
||||||
* Add feeds per category
|
|
||||||
* Use filsystem to get dates if no metadata provided
|
|
||||||
* Add pygment support
|
|
||||||
|
|
||||||
1.1:
|
|
||||||
|
|
||||||
* first working version
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
include *.rst
|
include *.rst
|
||||||
global-include *.py
|
global-include *.py
|
||||||
recursive-include pelican *.html *.css *png *.in
|
recursive-include pelican *.html *.css *png *.in
|
||||||
include LICENSE
|
include LICENSE THANKS
|
||||||
|
recursive-include tests *
|
||||||
|
recursive-exclude tests *.pyc
|
||||||
|
|
|
||||||
55
README.rst
55
README.rst
|
|
@ -1,12 +1,14 @@
|
||||||
Pelican
|
Pelican
|
||||||
#######
|
=======
|
||||||
|
|
||||||
.. image:: https://secure.travis-ci.org/ametaireau/pelican.png?branch=master
|
.. image:: https://secure.travis-ci.org/getpelican/pelican.png?branch=master
|
||||||
|
:target: http://travis-ci.org/#!/getpelican/pelican
|
||||||
|
:alt: Travis-ci: continuous integration status.
|
||||||
|
|
||||||
Pelican is a simple weblog generator, written in `Python <http://www.python.org/>`_.
|
Pelican is a static site generator, written in Python_.
|
||||||
|
|
||||||
* Write your weblog entries directly with your editor of choice (vim!)
|
* Write your weblog entries directly with your editor of choice (vim!)
|
||||||
in `reStructuredText <http://docutils.sourceforge.net/rst.html>`_ or `Markdown <http://daringfireball.net/projects/markdown/>`_
|
in reStructuredText_ or Markdown_
|
||||||
* Includes a simple CLI tool to (re)generate the weblog
|
* Includes a simple CLI tool to (re)generate the weblog
|
||||||
* Easy to interface with DVCSes and web hooks
|
* Easy to interface with DVCSes and web hooks
|
||||||
* Completely static output is easy to host anywhere
|
* Completely static output is easy to host anywhere
|
||||||
|
|
@ -20,40 +22,49 @@ Pelican currently supports:
|
||||||
* Comments, via an external service (Disqus). (Please note that while
|
* Comments, via an external service (Disqus). (Please note that while
|
||||||
useful, Disqus is an external service, and thus the comment data will be
|
useful, Disqus is an external service, and thus the comment data will be
|
||||||
somewhat outside of your control and potentially subject to data loss.)
|
somewhat outside of your control and potentially subject to data loss.)
|
||||||
* Theming support (themes are created using `jinja2 <http://jinja.pocoo.org/>`_)
|
* Theming support (themes are created using Jinja2_ templates)
|
||||||
* PDF generation of the articles/pages (optional)
|
* PDF generation of the articles/pages (optional)
|
||||||
* Publication of articles in multiple languages
|
* Publication of articles in multiple languages
|
||||||
* Atom/RSS feeds
|
* Atom/RSS feeds
|
||||||
* Code syntax highlighting
|
* Code syntax highlighting
|
||||||
|
* Compilation of `LESS CSS`_ (optional)
|
||||||
* Import from WordPress, Dotclear, or RSS feeds
|
* Import from WordPress, Dotclear, or RSS feeds
|
||||||
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
|
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
|
||||||
|
|
||||||
Have a look at `the documentation <http://pelican.notmyidea.org/en/latest/>`_ for
|
Have a look at the `Pelican documentation`_ for more information.
|
||||||
more information.
|
|
||||||
|
|
||||||
Why the name "Pelican"?
|
Why the name "Pelican"?
|
||||||
------------------------
|
-----------------------
|
||||||
|
|
||||||
Heh, you didn't notice? "Pelican" is an anagram for « Calepin » ;)
|
"Pelican" is an anagram for *calepin*, which means "notebook" in French. ;)
|
||||||
|
|
||||||
Source code
|
Source code
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
You can access the source code via git at: https://github.com/ametaireau/pelican
|
You can access the source code at: https://github.com/getpelican/pelican
|
||||||
|
|
||||||
If you feel hackish, have a look at the explanation of `Pelican's internals
|
If you feel hackish, have a look at the explanation of `Pelican's internals`_.
|
||||||
<http://pelican.notmyidea.org/en/latest/internals.html>`_.
|
|
||||||
|
|
||||||
Feedback / Contact us
|
Feedback / Contact us
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
If you want to see new features in Pelican, don't hesitate to offer suggestions,
|
If you want to see new features in Pelican, don't hesitate to offer
|
||||||
clone the repository, etc. There are many ways to `contribute
|
suggestions, clone the repository, etc. There are many ways to contribute_.
|
||||||
<http://pelican.notmyidea.org/en/latest/contribute.html>`_. That's open source, dude!
|
That's open source, dude!
|
||||||
|
|
||||||
Contact me at "alexis at notmyidea dot org" for any request/feedback! You can
|
Send a message to "authors at getpelican dot com" with any requests/feedback! You
|
||||||
also join the team at `#pelican on irc.freenode.org
|
can also join the team at `#pelican on Freenode`_ (or if you don't have an IRC
|
||||||
<irc://irc.freenode.net/pelican>`_
|
client handy, use the webchat_ for quick feedback.
|
||||||
(or if you don't have any IRC client, use `the webchat
|
|
||||||
<http://webchat.freenode.net/?channels=pelican&uio=d4>`_)
|
.. Links
|
||||||
for quick feedback.
|
|
||||||
|
.. _Python: http://www.python.org/
|
||||||
|
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
|
||||||
|
.. _Markdown: http://daringfireball.net/projects/markdown/
|
||||||
|
.. _Jinja2: http://jinja.pocoo.org/
|
||||||
|
.. _`LESS CSS`: http://lesscss.org/
|
||||||
|
.. _`Pelican documentation`: http://docs.getpelican.com/latest/
|
||||||
|
.. _`Pelican's internals`: http://docs.getpelican.com/en/latest/internals.html
|
||||||
|
.. _`#pelican on Freenode`: irc://irc.freenode.net/pelican
|
||||||
|
.. _webchat: http://webchat.freenode.net/?channels=pelican&uio=d4
|
||||||
|
.. _contribute: http://docs.getpelican.com/en/latest/contribute.html
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
Jinja2
|
# Tests
|
||||||
Pygments
|
|
||||||
docutils
|
|
||||||
feedgenerator
|
|
||||||
unittest2
|
unittest2
|
||||||
pytz
|
|
||||||
mock
|
mock
|
||||||
|
# Optional Packages
|
||||||
Markdown
|
Markdown
|
||||||
blinker
|
|
||||||
BeautifulSoup
|
BeautifulSoup
|
||||||
|
typogrify
|
||||||
|
webassets
|
||||||
129
docs/changelog.rst
Normal file
129
docs/changelog.rst
Normal file
|
|
@ -0,0 +1,129 @@
|
||||||
|
Release history
|
||||||
|
###############
|
||||||
|
|
||||||
|
3.1 (XXXX-XX-XX)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Improve handling of links to intra-site resources
|
||||||
|
|
||||||
|
3.0 (2012-08-08)
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Refactored the way URLs are handled
|
||||||
|
* Improved the English documentation
|
||||||
|
* Fixed packaging using ``setuptools`` entrypoints
|
||||||
|
* Added ``typogrify`` support
|
||||||
|
* Added a way to disable feed generation
|
||||||
|
* Added support for ``DIRECT_TEMPLATES``
|
||||||
|
* Allow multiple extensions for content files
|
||||||
|
* Added LESS support
|
||||||
|
* Improved the import script
|
||||||
|
* Added functional tests
|
||||||
|
* Rsync support in the generated Makefile
|
||||||
|
* Improved feed support (easily pluggable with Feedburner for instance)
|
||||||
|
* Added support for ``abbr`` in reST
|
||||||
|
* Fixed a bunch of bugs :-)
|
||||||
|
|
||||||
|
2.8 (2012-02-28)
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Dotclear importer
|
||||||
|
* Allow the usage of Markdown extensions
|
||||||
|
* Themes are now easily extensible
|
||||||
|
* Don't output pagination information if there is only one page
|
||||||
|
* Add a page per author, with all their articles
|
||||||
|
* Improved the test suite
|
||||||
|
* Made the themes easier to extend
|
||||||
|
* Removed Skribit support
|
||||||
|
* Added a ``pelican-quickstart`` script
|
||||||
|
* Fixed timezone-related issues
|
||||||
|
* Added some scripts for Windows support
|
||||||
|
* Date can be specified in seconds
|
||||||
|
* Never fail when generating posts (skip and continue)
|
||||||
|
* Allow the use of future dates
|
||||||
|
* Support having different timezones per language
|
||||||
|
* Enhanced the documentation
|
||||||
|
|
||||||
|
2.7 (2011-06-11)
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Use ``logging`` rather than echoing to stdout
|
||||||
|
* Support custom Jinja filters
|
||||||
|
* Compatibility with Python 2.5
|
||||||
|
* Added a theme manager
|
||||||
|
* Packaged for Debian
|
||||||
|
* Added draft support
|
||||||
|
|
||||||
|
2.6 (2011-03-08)
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Changes in the output directory structure
|
||||||
|
* Makes templates easier to work with / create
|
||||||
|
* Added RSS support (was Atom-only)
|
||||||
|
* Added tag support for the feeds
|
||||||
|
* Enhance the documentation
|
||||||
|
* Added another theme (brownstone)
|
||||||
|
* Added translations
|
||||||
|
* Added a way to use cleaner URLs with a rewrite url module (or equivalent)
|
||||||
|
* Added a tag cloud
|
||||||
|
* Added an autoreloading feature: the blog is automatically regenerated each time a modification is detected
|
||||||
|
* Translate the documentation into French
|
||||||
|
* Import a blog from an RSS feed
|
||||||
|
* Pagination support
|
||||||
|
* Added Skribit support
|
||||||
|
|
||||||
|
2.5 (2010-11-20)
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Import from Wordpress
|
||||||
|
* Added some new themes (martyalchin / wide-notmyidea)
|
||||||
|
* First bug report!
|
||||||
|
* Linkedin support
|
||||||
|
* Added a FAQ
|
||||||
|
* Google Analytics support
|
||||||
|
* Twitter support
|
||||||
|
* Use relative URLs, not static ones
|
||||||
|
|
||||||
|
2.4 (2010-11-06)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Minor themes changes
|
||||||
|
* Add Disqus support (so we have comments)
|
||||||
|
* Another code refactoring
|
||||||
|
* Added config settings about pages
|
||||||
|
* Blog entries can also be generated in PDF
|
||||||
|
|
||||||
|
2.3 (2010-10-31)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Markdown support
|
||||||
|
|
||||||
|
2.2 (2010-10-30)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Prettify output
|
||||||
|
* Manages static pages as well
|
||||||
|
|
||||||
|
2.1 (2010-10-30)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Make notmyidea the default theme
|
||||||
|
|
||||||
|
2.0 (2010-10-30)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Refactoring to be more extensible
|
||||||
|
* Change into the setting variables
|
||||||
|
|
||||||
|
1.2 (2010-09-28)
|
||||||
|
================
|
||||||
|
|
||||||
|
* Added a debug option
|
||||||
|
* Added per-category feeds
|
||||||
|
* Use filesystem to get dates if no metadata is provided
|
||||||
|
* Add Pygments support
|
||||||
|
|
||||||
|
1.1 (2010-08-19)
|
||||||
|
================
|
||||||
|
|
||||||
|
* First working version
|
||||||
|
|
@ -24,7 +24,7 @@ html_theme = 'pelican'
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
'nosidebar': True,
|
'nosidebar': True,
|
||||||
'index_logo': 'pelican.png',
|
'index_logo': 'pelican.png',
|
||||||
'github_fork': 'ametaireau/pelican',
|
'github_fork': 'getpelican/pelican',
|
||||||
}
|
}
|
||||||
|
|
||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,17 @@ How to contribute?
|
||||||
There are many ways to contribute to Pelican. You can enhance the
|
There are many ways to contribute to Pelican. You can enhance the
|
||||||
documentation, add missing features, and fix bugs (or just report them).
|
documentation, add missing features, and fix bugs (or just report them).
|
||||||
|
|
||||||
Don't hesitate to fork and make a pull request on GitHub.
|
Don't hesitate to fork and make a pull request on GitHub. When doing so, please
|
||||||
|
create a new feature branch as opposed to making your commits in the master
|
||||||
|
branch.
|
||||||
|
|
||||||
Setting up the development environment
|
Setting up the development environment
|
||||||
======================================
|
======================================
|
||||||
|
|
||||||
You're free to set up your development environment any way you like. Here is a
|
You're free to set up your development environment any way you like. Here is a
|
||||||
way using virtualenv and virtualenvwrapper. If you don't have them, you can
|
way using the `virtualenv <http://www.virtualenv.org/>`_ and `virtualenvwrapper
|
||||||
install these packages via::
|
<http://www.doughellmann.com/projects/virtualenvwrapper/>`_ tools. If you don't
|
||||||
|
have them, you can install these both of these packages via::
|
||||||
|
|
||||||
$ pip install virtualenvwrapper
|
$ pip install virtualenvwrapper
|
||||||
|
|
||||||
|
|
@ -20,30 +23,47 @@ different projects.
|
||||||
|
|
||||||
To create a virtual environment, use the following syntax::
|
To create a virtual environment, use the following syntax::
|
||||||
|
|
||||||
$ mkvirtualenv pelican
|
$ mkvirtualenv pelican
|
||||||
|
|
||||||
To manually install the dependencies::
|
To clone the Pelican source::
|
||||||
|
|
||||||
|
$ git clone https://github.com/getpelican/pelican.git src/pelican
|
||||||
|
|
||||||
|
To install the development dependencies::
|
||||||
|
|
||||||
|
$ cd src/pelican
|
||||||
$ pip install -r dev_requirements.txt
|
$ pip install -r dev_requirements.txt
|
||||||
|
|
||||||
|
To install Pelican and its dependencies::
|
||||||
|
|
||||||
$ python setup.py develop
|
$ python setup.py develop
|
||||||
|
|
||||||
Running the test suite
|
Running the test suite
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Each time you add a feature, there are two things to do regarding tests:
|
Each time you add a feature, there are two things to do regarding tests:
|
||||||
checking that the existing tests pass, and adding tests for your new feature
|
checking that the existing tests pass, and adding tests for the new feature
|
||||||
or for the bug you're fixing.
|
or bugfix.
|
||||||
|
|
||||||
The tests live in "pelican/tests" and you can run them using the
|
The tests live in "pelican/tests" and you can run them using the
|
||||||
"discover" feature of unittest2::
|
"discover" feature of unittest2::
|
||||||
|
|
||||||
$ unit2 discover
|
$ unit2 discover
|
||||||
|
|
||||||
|
If you have made changes that affect the output of a Pelican-generated weblog,
|
||||||
|
then you should update the output used by functional tests.
|
||||||
|
To do so, you can use the following two commands::
|
||||||
|
|
||||||
|
$ LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py \
|
||||||
|
samples/content/
|
||||||
|
$ LC_ALL="C" USER="Dummy Author" pelican -o tests/output/basic/ samples/content/
|
||||||
|
|
||||||
Coding standards
|
Coding standards
|
||||||
================
|
================
|
||||||
|
|
||||||
Try to respect what is described in the PEP8
|
Try to respect what is described in the `PEP8 specification
|
||||||
(http://www.python.org/dev/peps/pep-0008/) when providing patches. This can be
|
<http://www.python.org/dev/peps/pep-0008/>`_ when providing patches. This can be
|
||||||
eased by the pep8 tool (http://pypi.python.org/pypi/pep8) or by Flake8, which
|
eased via the `pep8 <http://pypi.python.org/pypi/pep8>`_ or `flake8
|
||||||
will give you some other cool hints about what's good or wrong
|
<http://pypi.python.org/pypi/flake8/>`_ tools, the latter of which in
|
||||||
(http://pypi.python.org/pypi/flake8/)
|
particular will give you some useful hints about ways in which the
|
||||||
|
code/formatting can be improved.
|
||||||
|
|
|
||||||
107
docs/faq.rst
107
docs/faq.rst
|
|
@ -3,19 +3,47 @@ Frequently Asked Questions (FAQ)
|
||||||
|
|
||||||
Here is a summary of the frequently asked questions for Pelican.
|
Here is a summary of the frequently asked questions for Pelican.
|
||||||
|
|
||||||
|
What's the best way to communicate a problem, question, or suggestion?
|
||||||
|
======================================================================
|
||||||
|
|
||||||
|
If you have a problem, question, or suggestion, please start by striking up a
|
||||||
|
conversation on `#pelican on Freenode <irc://irc.freenode.net/pelican>`_.
|
||||||
|
Those who don't have an IRC client handy can jump in immediately via
|
||||||
|
`IRC webchat <http://webchat.freenode.net/?channels=pelican&uio=d4>`_. Because
|
||||||
|
of differing time zones, you may not get an immediate response to your question,
|
||||||
|
but please be patient and stay logged into IRC — someone will almost always
|
||||||
|
respond.
|
||||||
|
|
||||||
|
If you are unable to resolve your issue or if you have a feature request, please
|
||||||
|
refer to the `issue tracker <https://github.com/getpelican/pelican/issues>`_.
|
||||||
|
|
||||||
|
How can I help?
|
||||||
|
================
|
||||||
|
|
||||||
|
There are several ways to help out. First, you can use Pelican and report any
|
||||||
|
suggestions or problems you might have via IRC or the issue tracker.
|
||||||
|
|
||||||
|
If you want to contribute, please fork `the git repository
|
||||||
|
<https://github.com/getpelican/pelican/>`_, create a new feature branch, make
|
||||||
|
your changes, and issue a pull request. Someone will review your changes as soon
|
||||||
|
as possible. Please refer to the :doc:`How to Contribute <contribute>` section
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You can also contribute by creating themes and improving the documentation.
|
||||||
|
|
||||||
Is it mandatory to have a configuration file?
|
Is it mandatory to have a configuration file?
|
||||||
=============================================
|
=============================================
|
||||||
|
|
||||||
No, it's not. Configuration files are just an easy way to configure Pelican.
|
No, it's not. Configuration files are just an easy way to configure Pelican.
|
||||||
For basic operations, it's possible to specify options while invoking Pelican
|
For basic operations, it's possible to specify options while invoking Pelican
|
||||||
via the command line. See `pelican --help` for more information.
|
via the command line. See ``pelican --help`` for more information.
|
||||||
|
|
||||||
I'm creating my own theme. How do I use Pygments for syntax highlighting?
|
I'm creating my own theme. How do I use Pygments for syntax highlighting?
|
||||||
=========================================================================
|
=========================================================================
|
||||||
|
|
||||||
Pygments adds some classes to the generated content. These classes are used by
|
Pygments adds some classes to the generated content. These classes are used by
|
||||||
themes to style code syntax highlighting via CSS. Specifically, you can
|
themes to style code syntax highlighting via CSS. Specifically, you can
|
||||||
customize the appearance of your syntax highlighting via the `.codehilite pre`
|
customize the appearance of your syntax highlighting via the ``.codehilite pre``
|
||||||
class in your theme's CSS file. To see how various styles can be used to render
|
class in your theme's CSS file. To see how various styles can be used to render
|
||||||
Django code, for example, you can use the demo `on the project website
|
Django code, for example, you can use the demo `on the project website
|
||||||
<http://pygments.org/demo/15101/>`_.
|
<http://pygments.org/demo/15101/>`_.
|
||||||
|
|
@ -25,19 +53,6 @@ How do I create my own theme?
|
||||||
|
|
||||||
Please refer to :ref:`theming-pelican`.
|
Please refer to :ref:`theming-pelican`.
|
||||||
|
|
||||||
How can I help?
|
|
||||||
================
|
|
||||||
|
|
||||||
There are several ways to help out. First, you can use Pelican and report any
|
|
||||||
suggestions or problems you might have on `the bugtracker
|
|
||||||
<http://github.com/ametaireau/pelican/issues>`_.
|
|
||||||
|
|
||||||
If you want to contribute, please fork `the git repository
|
|
||||||
<https://github.com/ametaireau/pelican/>`_, make your changes, and issue
|
|
||||||
a pull request. I'll review your changes as soon as possible.
|
|
||||||
|
|
||||||
You can also contribute by creating themes and improving the documentation.
|
|
||||||
|
|
||||||
I want to use Markdown, but I got an error.
|
I want to use Markdown, but I got an error.
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
|
|
@ -49,3 +64,65 @@ install it. You can do so by typing::
|
||||||
In case you don't have pip installed, consider installing it via::
|
In case you don't have pip installed, consider installing it via::
|
||||||
|
|
||||||
$ (sudo) easy_install pip
|
$ (sudo) easy_install pip
|
||||||
|
|
||||||
|
Can I use arbitrary meta-data in my templates?
|
||||||
|
==============================================
|
||||||
|
|
||||||
|
Yes. For example, to include a modified date in a Markdown post, one could
|
||||||
|
include the following at the top of the article::
|
||||||
|
|
||||||
|
Modified: 2012-08-08
|
||||||
|
|
||||||
|
That meta-data can then be accessed in the template::
|
||||||
|
|
||||||
|
{% if article.modified %}
|
||||||
|
Last modified: {{ article.modified }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
How do I assign custom templates on a per-page basis?
|
||||||
|
=====================================================
|
||||||
|
|
||||||
|
It's as simple as adding an extra line of metadata to any pages or articles you
|
||||||
|
want to have its own template.
|
||||||
|
|
||||||
|
:template: template_name
|
||||||
|
|
||||||
|
Then just make sure to have the template installed in to your theme as
|
||||||
|
``template_name.html``.
|
||||||
|
|
||||||
|
What if I want to disable feed generation?
|
||||||
|
==========================================
|
||||||
|
|
||||||
|
To disable all feed generation set ``FEED_ATOM`` and ``FEED_RSS`` to ``None`` in
|
||||||
|
your settings. Please note ``None`` and ``''`` are not the same thing. The
|
||||||
|
word ``None`` should not be surrounded by quotes.
|
||||||
|
|
||||||
|
I'm getting a warning about feeds generated without SITEURL being set properly
|
||||||
|
==============================================================================
|
||||||
|
|
||||||
|
`RSS and Atom feeds require all URLs and links in them to be absolute
|
||||||
|
<http://validator.w3.org/feed/docs/rss2.html#comments>`_.
|
||||||
|
In order to properly generate all URLs properly in Pelican you will need to set
|
||||||
|
``SITEURL`` to the full path of your blog. When using ``make html`` and the
|
||||||
|
default Makefile provided by the `pelican-quickstart` bootstrap script to test
|
||||||
|
build your site, it's normal to see this warning since ``SITEURL`` is
|
||||||
|
deliberately left undefined. If configured properly no other ``make`` commands
|
||||||
|
should result in this warning.
|
||||||
|
|
||||||
|
Feeds are still generated when this warning is displayed but may not validate.
|
||||||
|
|
||||||
|
My feeds are broken since I upgraded to Pelican 3.0
|
||||||
|
===================================================
|
||||||
|
|
||||||
|
Starting in 3.0, some of the FEED setting names were changed to more explicitly
|
||||||
|
refer to the Atom feeds they inherently represent (much like the FEED_RSS
|
||||||
|
setting names). Here is an exact list of the renamed setting names::
|
||||||
|
|
||||||
|
FEED -> FEED_ATOM
|
||||||
|
TAG_FEED -> TAG_FEED_ATOM
|
||||||
|
CATEGORY_FEED -> CATEGORY_FEED_ATOM
|
||||||
|
|
||||||
|
Older 2.x themes that referenced the old setting names may not link properly.
|
||||||
|
In order to rectify this, please update your theme for compatibility with 3.0+
|
||||||
|
by changing the relevant values in your template files. For an example of
|
||||||
|
complete feed headers and usage please check out the ``simple`` theme.
|
||||||
|
|
|
||||||
|
|
@ -52,19 +52,19 @@ détails au prochain chapitre.
|
||||||
Flux de syndication
|
Flux de syndication
|
||||||
===================
|
===================
|
||||||
|
|
||||||
CATEGORY_FEED :
|
CATEGORY_FEED_ATOM :
|
||||||
Chemin d’écriture des flux Atom liés aux catégories ;
|
Chemin d’écriture des flux Atom liés aux catégories ;
|
||||||
|
|
||||||
CATEGORY_FEED_RSS :
|
CATEGORY_FEED_RSS :
|
||||||
Idem pour les flux rss (Optionnel);
|
Idem pour les flux rss (Optionnel);
|
||||||
|
|
||||||
FEED :
|
FEED_ATOM :
|
||||||
Chemin du flux Atom global ;
|
Chemin du flux Atom global ;
|
||||||
|
|
||||||
FEED_RSS :
|
FEED_RSS :
|
||||||
Chemin du flux Rss global (Optionnel);
|
Chemin du flux Rss global (Optionnel);
|
||||||
|
|
||||||
TAG_FEED :
|
TAG_FEED_ATOM :
|
||||||
Chemin des flux Atom pour les tags (Optionnel);
|
Chemin des flux Atom pour les tags (Optionnel);
|
||||||
|
|
||||||
TAG_FEED_RSS :
|
TAG_FEED_RSS :
|
||||||
|
|
@ -77,8 +77,11 @@ Traductions
|
||||||
DEFAULT_LANG :
|
DEFAULT_LANG :
|
||||||
Le langage par défaut à utiliser. «*en*» par défaut ;
|
Le langage par défaut à utiliser. «*en*» par défaut ;
|
||||||
|
|
||||||
TRANSLATION_FEED :
|
TRANSLATION_FEED_ATOM :
|
||||||
Chemin du flux pour les traductions.
|
Chemin du flux Atom pour les traductions.
|
||||||
|
|
||||||
|
TRANSLATION_FEED_RSS :
|
||||||
|
Chemin du flux RSS pour les traductions.
|
||||||
|
|
||||||
|
|
||||||
Thèmes
|
Thèmes
|
||||||
|
|
@ -111,7 +114,7 @@ LINKS :
|
||||||
PDF_PROCESSOR :
|
PDF_PROCESSOR :
|
||||||
Génère ou non les articles et pages au format pdf ;
|
Génère ou non les articles et pages au format pdf ;
|
||||||
|
|
||||||
REVERSE_ARCHIVE_ORDER :
|
NEWEST_FIRST_ARCHIVES :
|
||||||
Met les articles plus récent en tête de l'archive ;
|
Met les articles plus récent en tête de l'archive ;
|
||||||
|
|
||||||
SOCIAL :
|
SOCIAL :
|
||||||
|
|
@ -133,8 +136,12 @@ Pelican est fournit avec :doc:`pelican-themes`, un script permettant de gérer l
|
||||||
Paramètres divers
|
Paramètres divers
|
||||||
=================
|
=================
|
||||||
|
|
||||||
FALLBACK_ON_FS_DATE :
|
DEFAULT_DATE:
|
||||||
Si *True*, Pelican se basera sur le *mtime* du fichier s'il n'y a pas de date spécifiée dans le fichier de l'article ;
|
Date par défaut à utiliser si l'information de date n'est pas spécifiée
|
||||||
|
dans les metadonnées de l'article.
|
||||||
|
Si 'fs', Pelican se basera sur le *mtime* du fichier.
|
||||||
|
Si c'est un tuple, il sera passé au constructeur datetime.datetime pour
|
||||||
|
générer l'objet datetime utilisé par défaut.
|
||||||
|
|
||||||
KEEP_OUTPUT DIRECTORY :
|
KEEP_OUTPUT DIRECTORY :
|
||||||
Ne génère que les fichiers modifiés et n'efface pas le repertoire de sortie ;
|
Ne génère que les fichiers modifiés et n'efface pas le repertoire de sortie ;
|
||||||
|
|
@ -151,7 +158,5 @@ SITEURL :
|
||||||
STATIC_PATHS :
|
STATIC_PATHS :
|
||||||
Les chemins statiques que vous voulez avoir accès sur le chemin de sortie "statique" ;
|
Les chemins statiques que vous voulez avoir accès sur le chemin de sortie "statique" ;
|
||||||
|
|
||||||
|
MARKDOWN_EXTENSIONS :
|
||||||
|
Liste des extentions Markdown que vous souhaitez utiliser ;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Code source
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Vous pouvez accéder au code source via git à l'adresse
|
Vous pouvez accéder au code source via git à l'adresse
|
||||||
http://github.com/ametaireau/pelican/
|
http://github.com/getpelican/pelican/
|
||||||
|
|
||||||
Feedback !
|
Feedback !
|
||||||
==========
|
==========
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ Pour installer Pelican en reprenant le code via Github, nous aurons besoin du pa
|
||||||
git-core pour récupérez les sources de Pelican. Puis nous procédons à l’installation ::
|
git-core pour récupérez les sources de Pelican. Puis nous procédons à l’installation ::
|
||||||
|
|
||||||
# apt-get install git-core
|
# apt-get install git-core
|
||||||
$ git clone https://github.com/ametaireau/pelican.git
|
$ git clone https://github.com/getpelican/pelican.git
|
||||||
$ cd pelican
|
$ cd pelican
|
||||||
# python setup.py install
|
# python setup.py install
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ Pelican utlise le très bon moteur de template `jinja2 <http://jinja.pocoo.org>`
|
||||||
pour produire de l'HTML. La syntaxe de jinja2 est vraiment très simple. Si vous
|
pour produire de l'HTML. La syntaxe de jinja2 est vraiment très simple. Si vous
|
||||||
voulez créer votre propre thème, soyez libre de prendre inspiration sur le theme
|
voulez créer votre propre thème, soyez libre de prendre inspiration sur le theme
|
||||||
"simple" qui est disponible `ici
|
"simple" qui est disponible `ici
|
||||||
<https://github.com/ametaireau/pelican/tree/master/pelican/themes/simple/templates>`_
|
<https://github.com/getpelican/pelican/tree/master/pelican/themes/simple/templates>`_
|
||||||
|
|
||||||
Structure
|
Structure
|
||||||
=========
|
=========
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,32 @@
|
||||||
Getting started
|
Getting started
|
||||||
###############
|
###############
|
||||||
|
|
||||||
Installing
|
Installing Pelican
|
||||||
==========
|
==================
|
||||||
|
|
||||||
You're ready? Let's go! You can install Pelican via several different methods.
|
You're ready? Let's go! You can install Pelican via several different methods.
|
||||||
The simplest is via `pip <http://www.pip-installer.org/>`_::
|
The simplest is via `pip <http://www.pip-installer.org/>`_::
|
||||||
|
|
||||||
$ pip install pelican
|
$ pip install pelican
|
||||||
|
|
||||||
If you don't have pip installed, an alternative method is easy_install::
|
If you don't have ``pip`` installed, an alternative method is ``easy_install``::
|
||||||
|
|
||||||
$ easy_install pelican
|
$ easy_install pelican
|
||||||
|
|
||||||
While the above is the simplest method, the recommended approach is to create
|
While the above is the simplest method, the recommended approach is to create
|
||||||
a virtual environment for Pelican via `virtualenv <http://www.virtualenv.org/>`_
|
a virtual environment for Pelican via virtualenv_ and virtualenvwrapper_ before
|
||||||
and `virtualenvwrapper <http://www.doughellmann.com/projects/virtualenvwrapper/>`_
|
installing Pelican. Assuming you've followed the virtualenvwrapper
|
||||||
before installing Pelican::
|
`installation <http://virtualenvwrapper.readthedocs.org/en/latest/install.html>`_
|
||||||
|
and `shell configuration
|
||||||
|
<http://virtualenvwrapper.readthedocs.org/en/latest/install.html#shell-startup-file>`_
|
||||||
|
steps, you can then open a new terminal session and create a new virtual
|
||||||
|
environment for Pelican::
|
||||||
|
|
||||||
$ pip install virtualenvwrapper
|
|
||||||
$ mkvirtualenv pelican
|
$ mkvirtualenv pelican
|
||||||
|
|
||||||
Once the virtual environment has been created and activated, Pelican can be
|
Once the virtual environment has been created and activated, Pelican can be
|
||||||
be installed via pip or easy_install as noted above. Alternatively, if you
|
be installed via ``pip`` or ``easy_install`` as noted above. Alternatively, if
|
||||||
have the project source, you can install Pelican using the distutils
|
you have the project source, you can install Pelican using the distutils
|
||||||
method::
|
method::
|
||||||
|
|
||||||
$ cd path-to-Pelican-source
|
$ cd path-to-Pelican-source
|
||||||
|
|
@ -32,14 +35,19 @@ method::
|
||||||
If you have Git installed and prefer to install the latest bleeding-edge
|
If you have Git installed and prefer to install the latest bleeding-edge
|
||||||
version of Pelican rather than a stable release, use the following command::
|
version of Pelican rather than a stable release, use the following command::
|
||||||
|
|
||||||
$ pip install -e git://github.com/ametaireau/pelican#egg=pelican
|
$ pip install -e git://github.com/getpelican/pelican#egg=pelican
|
||||||
|
|
||||||
|
If you plan on using Markdown as a markup format, you'll need to install the
|
||||||
|
Markdown library as well::
|
||||||
|
|
||||||
|
$ pip install Markdown
|
||||||
|
|
||||||
Upgrading
|
Upgrading
|
||||||
---------
|
---------
|
||||||
|
|
||||||
If you installed a stable Pelican release via pip or easy_install and wish to
|
If you installed a stable Pelican release via ``pip`` or ``easy_install`` and
|
||||||
upgrade to the latest stable release, you can do so by adding `--upgrade` to
|
wish to upgrade to the latest stable release, you can do so by adding
|
||||||
the relevant command. For pip, that would be::
|
``--upgrade`` to the relevant command. For pip, that would be::
|
||||||
|
|
||||||
$ pip install --upgrade pelican
|
$ pip install --upgrade pelican
|
||||||
|
|
||||||
|
|
@ -55,12 +63,76 @@ At this time, Pelican is dependent on the following Python packages:
|
||||||
* jinja2, for templating support
|
* jinja2, for templating support
|
||||||
* docutils, for supporting reStructuredText as an input format
|
* docutils, for supporting reStructuredText as an input format
|
||||||
|
|
||||||
If you're not using Python 2.7, you will also need `argparse`.
|
If you're not using Python 2.7, you will also need the ``argparse`` package.
|
||||||
|
|
||||||
Optionally:
|
Optionally:
|
||||||
|
|
||||||
* pygments, for syntax highlighting
|
* pygments, for syntax highlighting
|
||||||
* Markdown, for supporting Markdown as an input format
|
* Markdown, for supporting Markdown as an input format
|
||||||
|
* Typogrify, for typographical enhancements
|
||||||
|
|
||||||
|
Kickstart a blog
|
||||||
|
================
|
||||||
|
|
||||||
|
Following is a brief tutorial for those who want to get started right away.
|
||||||
|
We're going to assume that virtualenv_ and virtualenvwrapper_ are installed and
|
||||||
|
configured; if you've installed Pelican outside of a virtual environment,
|
||||||
|
you can skip to the ``pelican-quickstart`` command. Let's first create a new
|
||||||
|
virtual environment and install Pelican into it::
|
||||||
|
|
||||||
|
$ mkvirtualenv pelican
|
||||||
|
$ pip install pelican Markdown
|
||||||
|
|
||||||
|
Next we'll create a directory to house our site content and configuration files,
|
||||||
|
which can be located any place you prefer, and associate this new project with
|
||||||
|
the currently-active virtual environment::
|
||||||
|
|
||||||
|
$ mkdir ~/code/yoursitename
|
||||||
|
$ cd ~/code/yoursitename
|
||||||
|
$ setvirtualenvproject
|
||||||
|
|
||||||
|
Now we can run the ``pelican-quickstart`` command, which will ask some questions
|
||||||
|
about your site::
|
||||||
|
|
||||||
|
$ pelican-quickstart
|
||||||
|
|
||||||
|
Once you finish answering all the questions, you can begin adding content to the
|
||||||
|
*content* folder that has been created for you. (See *Writing articles using
|
||||||
|
Pelican* section below for more information about how to format your content.)
|
||||||
|
Once you have some content to generate, you can convert it to HTML via the
|
||||||
|
following command::
|
||||||
|
|
||||||
|
$ make html
|
||||||
|
|
||||||
|
If you'd prefer to have Pelican automatically regenerate your site every time a
|
||||||
|
change is detected (handy when testing locally), use the following command
|
||||||
|
instead::
|
||||||
|
|
||||||
|
$ make regenerate
|
||||||
|
|
||||||
|
To serve the site so it can be previewed in your browser at
|
||||||
|
http://localhost:8000::
|
||||||
|
|
||||||
|
$ make serve
|
||||||
|
|
||||||
|
Normally you would need to run ``make regenerate`` and ``make serve`` in two
|
||||||
|
separate terminal sessions, but you can run both at once via::
|
||||||
|
|
||||||
|
$ make devserver
|
||||||
|
|
||||||
|
The above command will simultaneously run Pelican in regeneration mode as well
|
||||||
|
as serve the output at http://localhost:8000. Once you are done testing your
|
||||||
|
changes, you should stop the development server via::
|
||||||
|
|
||||||
|
$ ./develop_server.sh stop
|
||||||
|
|
||||||
|
When you're ready to publish your site, you can upload it via the method(s) you
|
||||||
|
chose during the ``pelican-quickstart`` questionnaire. For this example, we'll
|
||||||
|
use rsync over ssh::
|
||||||
|
|
||||||
|
$ make rsync_upload
|
||||||
|
|
||||||
|
That's it! Your site should now be live.
|
||||||
|
|
||||||
Writing articles using Pelican
|
Writing articles using Pelican
|
||||||
==============================
|
==============================
|
||||||
|
|
@ -73,7 +145,7 @@ file system (for instance, about the category of your articles), but some
|
||||||
information you need to provide in the form of metadata inside your files.
|
information you need to provide in the form of metadata inside your files.
|
||||||
|
|
||||||
You can provide this metadata in reStructuredText text files via the
|
You can provide this metadata in reStructuredText text files via the
|
||||||
following syntax (give your file the `.rst` extension)::
|
following syntax (give your file the ``.rst`` extension)::
|
||||||
|
|
||||||
My super title
|
My super title
|
||||||
##############
|
##############
|
||||||
|
|
@ -83,10 +155,14 @@ following syntax (give your file the `.rst` extension)::
|
||||||
:category: yeah
|
:category: yeah
|
||||||
:author: Alexis Metaireau
|
:author: Alexis Metaireau
|
||||||
|
|
||||||
|
Pelican implements an extension of reStructuredText to enable support for the
|
||||||
|
``abbr`` HTML tag. To use it, write something like this in your post::
|
||||||
|
|
||||||
You can also use Markdown syntax (with a file ending in `.md`).
|
This will be turned into :abbr:`HTML (HyperText Markup Language)`.
|
||||||
Markdown generation will not work until you explicitly install the `Markdown`
|
|
||||||
package, which can be done via `pip install Markdown`. Metadata syntax for
|
You can also use Markdown syntax (with a file ending in ``.md``).
|
||||||
|
Markdown generation will not work until you explicitly install the ``Markdown``
|
||||||
|
package, which can be done via ``pip install Markdown``. Metadata syntax for
|
||||||
Markdown posts should follow this pattern::
|
Markdown posts should follow this pattern::
|
||||||
|
|
||||||
Date: 2010-12-03
|
Date: 2010-12-03
|
||||||
|
|
@ -99,54 +175,59 @@ Markdown posts should follow this pattern::
|
||||||
Note that, aside from the title, none of this metadata is mandatory: if the date
|
Note that, aside from the title, none of this metadata is mandatory: if the date
|
||||||
is not specified, Pelican will rely on the file's "mtime" timestamp, and the
|
is not specified, Pelican will rely on the file's "mtime" timestamp, and the
|
||||||
category can be determined by the directory in which the file resides. For
|
category can be determined by the directory in which the file resides. For
|
||||||
example, a file located at `python/foobar/myfoobar.rst` will have a category of
|
example, a file located at ``python/foobar/myfoobar.rst`` will have a category of
|
||||||
`foobar`.
|
``foobar``.
|
||||||
|
|
||||||
Generate your blog
|
Generate your blog
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
To launch Pelican, just use the `pelican` command::
|
The ``make`` shortcut commands mentioned in the ``Kickstart a blog`` section
|
||||||
|
are mostly wrappers around the ``pelican`` command that generates the HTML from
|
||||||
|
the content. The ``pelican`` command can also be run directly::
|
||||||
|
|
||||||
$ pelican /path/to/your/content/ [-s path/to/your/settings.py]
|
$ pelican /path/to/your/content/ [-s path/to/your/settings.py]
|
||||||
|
|
||||||
And… that's all! Your weblog will be generated and saved in the `content/`
|
The above command will generate your weblog and save it in the ``output/``
|
||||||
folder.
|
folder, using the default theme to produce a simple site. The default theme is
|
||||||
|
simple HTML without styling and is provided so folks may use it as a basis for
|
||||||
|
creating their own themes.
|
||||||
|
|
||||||
The above command will use the default theme to produce a simple site. It's not
|
Pelican has other command-line switches available. Have a look at the help to
|
||||||
very sexy, as it's just simple HTML output (without any style).
|
see all the options you can use::
|
||||||
|
|
||||||
You can create your own style if you want. Have a look at the help to see all
|
|
||||||
the options you can use::
|
|
||||||
|
|
||||||
$ pelican --help
|
$ pelican --help
|
||||||
|
|
||||||
Kickstart a blog
|
Auto-reload
|
||||||
----------------
|
-----------
|
||||||
|
|
||||||
You also can use the `pelican-quickstart` script to start a new blog in
|
It's possible to tell Pelican to watch for your modifications, instead of
|
||||||
seconds by just answering a few questions. Just run `pelican-quickstart` and
|
manually re-running it every time you want to see your changes. To enable this,
|
||||||
you're done! (Added in Pelican 3.0)
|
run the ``pelican`` command with the ``-r`` or ``--autoreload`` option.
|
||||||
|
|
||||||
Pages
|
Pages
|
||||||
-----
|
-----
|
||||||
|
|
||||||
If you create a folder named `pages`, all the files in it will be used to
|
If you create a folder named ``pages``, all the files in it will be used to
|
||||||
generate static pages.
|
generate static pages.
|
||||||
|
|
||||||
Then, use the `DISPLAY_PAGES_ON_MENU` setting, which will add all the pages to
|
Then, use the ``DISPLAY_PAGES_ON_MENU`` setting, which will add all the pages to
|
||||||
the menu.
|
the menu.
|
||||||
|
|
||||||
|
If you want to exclude any pages from being linked to or listed in the menu
|
||||||
|
then add a ``status: hidden`` attribute to its metadata. This is useful for
|
||||||
|
things like making error pages that fit the generated theme of your site.
|
||||||
|
|
||||||
Importing an existing blog
|
Importing an existing blog
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
It is possible to import your blog from Dotclear, WordPress, and RSS feeds using
|
It is possible to import your blog from Dotclear, WordPress, and RSS feeds using
|
||||||
a simple script. See :ref:`import`.
|
a simple script. See :ref:`import`.
|
||||||
|
|
||||||
Translations
|
Translations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
It is possible to translate articles. To do so, you need to add a `lang` meta
|
It is possible to translate articles. To do so, you need to add a ``lang`` meta
|
||||||
attribute to your articles/pages and set a `DEFAULT_LANG` setting (which is
|
attribute to your articles/pages and set a ``DEFAULT_LANG`` setting (which is
|
||||||
English [en] by default). With those settings in place, only articles with the
|
English [en] by default). With those settings in place, only articles with the
|
||||||
default language will be listed, and each article will be accompanied by a list
|
default language will be listed, and each article will be accompanied by a list
|
||||||
of available translations for that article.
|
of available translations for that article.
|
||||||
|
|
@ -191,26 +272,20 @@ Pelican is able to provide colorized syntax highlighting for your code blocks.
|
||||||
To do so, you have to use the following conventions (you need to put this in
|
To do so, you have to use the following conventions (you need to put this in
|
||||||
your content files).
|
your content files).
|
||||||
|
|
||||||
For RestructuredText::
|
For RestructuredText, use the code-block directive::
|
||||||
|
|
||||||
.. code-block:: identifier
|
.. code-block:: identifier
|
||||||
|
|
||||||
your code goes here
|
<indented code block goes here>
|
||||||
|
|
||||||
For Markdown, format your code blocks thusly::
|
For Markdown, include the language identifier just above the code block,
|
||||||
|
indenting both the identifier and code::
|
||||||
|
|
||||||
:::identifier
|
:::identifier
|
||||||
your code goes here
|
<code goes here>
|
||||||
|
|
||||||
The specified identifier should be one that appears on the
|
The specified identifier (e.g. ``python``, ``ruby``) should be one that
|
||||||
`list of available lexers <http://pygments.org/docs/lexers/>`_.
|
appears on the `list of available lexers <http://pygments.org/docs/lexers/>`_.
|
||||||
|
|
||||||
Auto-reload
|
|
||||||
-----------
|
|
||||||
|
|
||||||
It's possible to tell Pelican to watch for your modifications, instead of
|
|
||||||
manually re-running it every time you want to see your changes. To enable this,
|
|
||||||
run the `pelican` command with the `-r` or `--autoreload` option.
|
|
||||||
|
|
||||||
Publishing drafts
|
Publishing drafts
|
||||||
-----------------
|
-----------------
|
||||||
|
|
@ -234,5 +309,5 @@ Or run a simple web server using Python::
|
||||||
|
|
||||||
cd output && python -m SimpleHTTPServer
|
cd output && python -m SimpleHTTPServer
|
||||||
|
|
||||||
(Tip: If using the latter method in conjunction with the auto-reload feature,
|
.. _virtualenv: http://www.virtualenv.org/
|
||||||
ensure that `DELETE_OUTPUT_DIRECTORY` is set to `False` in your settings file.)
|
.. _virtualenvwrapper: http://www.doughellmann.com/projects/virtualenvwrapper/
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ BeatifulSoup can be installed like any other Python package::
|
||||||
|
|
||||||
$ pip install BeautifulSoup
|
$ pip install BeautifulSoup
|
||||||
|
|
||||||
For pandoc, install a package for your operating system from the
|
For pandoc, install a package for your operating system from the
|
||||||
`pandoc site <http://johnmacfarlane.net/pandoc/installing.html>`_.
|
`pandoc site <http://johnmacfarlane.net/pandoc/installing.html>`_.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
Pelican
|
Pelican
|
||||||
#######
|
=======
|
||||||
|
|
||||||
Pelican is a simple weblog generator, written in Python.
|
Pelican is a static site generator, written in Python_.
|
||||||
|
|
||||||
* Write your weblog entries directly with your editor of choice (vim!) in
|
* Write your weblog entries directly with your editor of choice (vim!)
|
||||||
reStructuredText or Markdown
|
in reStructuredText_ or Markdown_
|
||||||
* A simple CLI tool to (re)generate the weblog
|
* Includes a simple CLI tool to (re)generate the weblog
|
||||||
* Easy to interface with DVCSes and web hooks
|
* Easy to interface with DVCSes and web hooks
|
||||||
* Completely static output is easy to host anywhere
|
* Completely static output is easy to host anywhere
|
||||||
|
|
||||||
Features
|
Features
|
||||||
========
|
--------
|
||||||
|
|
||||||
Pelican currently supports:
|
Pelican currently supports:
|
||||||
|
|
||||||
|
|
@ -18,40 +18,38 @@ Pelican currently supports:
|
||||||
* Comments, via an external service (Disqus). (Please note that while
|
* Comments, via an external service (Disqus). (Please note that while
|
||||||
useful, Disqus is an external service, and thus the comment data will be
|
useful, Disqus is an external service, and thus the comment data will be
|
||||||
somewhat outside of your control and potentially subject to data loss.)
|
somewhat outside of your control and potentially subject to data loss.)
|
||||||
* Theming support (themes are created using `jinja2 <http://jinja.pocoo.org/>`_)
|
* Theming support (themes are created using Jinja2_ templates)
|
||||||
* PDF generation of the articles/pages (optional)
|
* PDF generation of the articles/pages (optional)
|
||||||
* Publication of articles in multiple languages
|
* Publication of articles in multiple languages
|
||||||
* Atom/RSS feeds
|
* Atom/RSS feeds
|
||||||
* Code syntax highlighting
|
* Code syntax highlighting
|
||||||
* Compilation of less css (optional)
|
* Compilation of `LESS CSS`_ (optional)
|
||||||
* Import from WordPress, Dotclear, or RSS feeds
|
* Import from WordPress, Dotclear, or RSS feeds
|
||||||
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
|
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
|
||||||
|
|
||||||
Why the name "Pelican" ?
|
Why the name "Pelican"?
|
||||||
========================
|
-----------------------
|
||||||
|
|
||||||
Heh, you didn't notice? "Pelican" is an anagram for « Calepin » ;)
|
"Pelican" is an anagram for *calepin*, which means "notebook" in French. ;)
|
||||||
|
|
||||||
Source code
|
Source code
|
||||||
===========
|
-----------
|
||||||
|
|
||||||
You can access the source code via git at http://github.com/ametaireau/pelican/
|
You can access the source code at: https://github.com/getpelican/pelican
|
||||||
|
|
||||||
Feedback / Contact us
|
Feedback / Contact us
|
||||||
=====================
|
---------------------
|
||||||
|
|
||||||
If you want to see new features in Pelican, don't hesitate to tell me, to clone
|
If you want to see new features in Pelican, don't hesitate to offer suggestions,
|
||||||
the repository, etc. That's open source, dude!
|
clone the repository, etc. There are many ways to :doc:`contribute<contribute>`.
|
||||||
|
That's open source, dude!
|
||||||
|
|
||||||
Contact me at "alexis at notmyidea dot org" for any request/feedback! You can
|
Send a message to "authors at getpelican dot com" with any requests/feedback! You
|
||||||
also join the team at `#pelican on irc.freenode.org
|
can also join the team at `#pelican on Freenode`_ (or if you don't have an IRC
|
||||||
<irc://irc.freenode.net/pelican>`_
|
client handy, use the webchat_ for quick feedback.
|
||||||
(or if you don't have any IRC client, use `the webchat
|
|
||||||
<http://webchat.freenode.net/?channels=pelican&uio=d4>`_)
|
|
||||||
for quick feedback.
|
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
=============
|
-------------
|
||||||
|
|
||||||
A French version of the documentation is available at :doc:`fr/index`.
|
A French version of the documentation is available at :doc:`fr/index`.
|
||||||
|
|
||||||
|
|
@ -69,3 +67,16 @@ A French version of the documentation is available at :doc:`fr/index`.
|
||||||
tips
|
tips
|
||||||
contribute
|
contribute
|
||||||
report
|
report
|
||||||
|
changelog
|
||||||
|
|
||||||
|
.. Links
|
||||||
|
|
||||||
|
.. _Python: http://www.python.org/
|
||||||
|
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
|
||||||
|
.. _Markdown: http://daringfireball.net/projects/markdown/
|
||||||
|
.. _Jinja2: http://jinja.pocoo.org/
|
||||||
|
.. _`LESS CSS`: http://lesscss.org/
|
||||||
|
.. _`Pelican documentation`: http://docs.getpelican.com/latest/
|
||||||
|
.. _`Pelican's internals`: http://docs.getpelican.com/en/latest/internals.html
|
||||||
|
.. _`#pelican on Freenode`: irc://irc.freenode.net/pelican
|
||||||
|
.. _webchat: http://webchat.freenode.net/?channels=pelican&uio=d4
|
||||||
|
|
|
||||||
|
|
@ -12,34 +12,34 @@ original author wrote with some software design information.
|
||||||
Overall structure
|
Overall structure
|
||||||
=================
|
=================
|
||||||
|
|
||||||
What `pelican` does is take a list of files and process them into some
|
What Pelican does is take a list of files and process them into some
|
||||||
sort of output. Usually, the input files are reStructuredText and Markdown
|
sort of output. Usually, the input files are reStructuredText and Markdown
|
||||||
files, and the output is a blog, but both input and output can be anything you
|
files, and the output is a blog, but both input and output can be anything you
|
||||||
want.
|
want.
|
||||||
|
|
||||||
The logic is separated into different classes and concepts:
|
The logic is separated into different classes and concepts:
|
||||||
|
|
||||||
* `writers` are responsible for writing files: .html files, RSS feeds, and so
|
* **Writers** are responsible for writing files: .html files, RSS feeds, and so
|
||||||
on. Since those operations are commonly used, the object is created once and
|
on. Since those operations are commonly used, the object is created once and
|
||||||
then passed to the generators.
|
then passed to the generators.
|
||||||
|
|
||||||
* `readers` are used to read from various formats (Markdown and
|
* **Readers** are used to read from various formats (Markdown and
|
||||||
reStructuredText for now, but the system is extensible). Given a file, they return
|
reStructuredText for now, but the system is extensible). Given a file, they return
|
||||||
metadata (author, tags, category, etc.) and content (HTML-formatted).
|
metadata (author, tags, category, etc.) and content (HTML-formatted).
|
||||||
|
|
||||||
* `generators` generate the different outputs. For instance, Pelican comes with
|
* **Generators** generate the different outputs. For instance, Pelican comes with
|
||||||
`ArticlesGenerator` and `PageGenerator`. Given a configuration, they can do
|
``ArticlesGenerator`` and ``PageGenerator``. Given a configuration, they can do
|
||||||
whatever they want. Most of the time, it's generating files from inputs.
|
whatever they want. Most of the time, it's generating files from inputs.
|
||||||
|
|
||||||
* `pelican` also uses `templates`, so it's easy to write your own theme. The
|
* Pelican also uses templates, so it's easy to write your own theme. The
|
||||||
syntax is `jinja2`, and, trust me, really easy to learn, so don't hesitate
|
syntax is `Jinja2 <http://jinja.pocoo.org/>`_ and is very easy to learn, so
|
||||||
to jump in and build your own theme.
|
don't hesitate to jump in and build your own theme.
|
||||||
|
|
||||||
How to implement a new reader?
|
How to implement a new reader?
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
Is there an awesome markup language you want to add to Pelican?
|
Is there an awesome markup language you want to add to Pelican?
|
||||||
Well, the only thing you have to do is to create a class with a `read`
|
Well, the only thing you have to do is to create a class with a ``read``
|
||||||
method that returns HTML content and some metadata.
|
method that returns HTML content and some metadata.
|
||||||
|
|
||||||
Take a look at the Markdown reader::
|
Take a look at the Markdown reader::
|
||||||
|
|
@ -52,7 +52,7 @@ Take a look at the Markdown reader::
|
||||||
text = open(filename)
|
text = open(filename)
|
||||||
md = Markdown(extensions = ['meta', 'codehilite'])
|
md = Markdown(extensions = ['meta', 'codehilite'])
|
||||||
content = md.convert(text)
|
content = md.convert(text)
|
||||||
|
|
||||||
metadata = {}
|
metadata = {}
|
||||||
for name, value in md.Meta.items():
|
for name, value in md.Meta.items():
|
||||||
if name in _METADATA_FIELDS:
|
if name in _METADATA_FIELDS:
|
||||||
|
|
@ -65,8 +65,8 @@ Take a look at the Markdown reader::
|
||||||
Simple, isn't it?
|
Simple, isn't it?
|
||||||
|
|
||||||
If your new reader requires additional Python dependencies, then you should wrap
|
If your new reader requires additional Python dependencies, then you should wrap
|
||||||
their `import` statements in a `try...except` block. Then inside the reader's
|
their ``import`` statements in a ``try...except`` block. Then inside the reader's
|
||||||
class, set the `enabled` class attribute to mark import success or failure.
|
class, set the ``enabled`` class attribute to mark import success or failure.
|
||||||
This makes it possible for users to continue using their favourite markup method
|
This makes it possible for users to continue using their favourite markup method
|
||||||
without needing to install modules for formats they don't use.
|
without needing to install modules for formats they don't use.
|
||||||
|
|
||||||
|
|
@ -76,17 +76,17 @@ How to implement a new generator?
|
||||||
Generators have two important methods. You're not forced to create
|
Generators have two important methods. You're not forced to create
|
||||||
both; only the existing ones will be called.
|
both; only the existing ones will be called.
|
||||||
|
|
||||||
* `generate_context`, that is called first, for all the generators.
|
* ``generate_context``, that is called first, for all the generators.
|
||||||
Do whatever you have to do, and update the global context if needed. This
|
Do whatever you have to do, and update the global context if needed. This
|
||||||
context is shared between all generators, and will be passed to the
|
context is shared between all generators, and will be passed to the
|
||||||
templates. For instance, the `PageGenerator` `generate_context` method finds
|
templates. For instance, the ``PageGenerator`` ``generate_context`` method
|
||||||
all the pages, transforms them into objects, and populates the context with
|
finds all the pages, transforms them into objects, and populates the context
|
||||||
them. Be careful *not* to output anything using this context at this stage,
|
with them. Be careful *not* to output anything using this context at this
|
||||||
as it is likely to change by the effect of other generators.
|
stage, as it is likely to change by the effect of other generators.
|
||||||
|
|
||||||
* `generate_output` is then called. And guess what is it made for? Oh,
|
* ``generate_output`` is then called. And guess what is it made for? Oh,
|
||||||
generating the output. :) It's here that you may want to look at the context
|
generating the output. :) It's here that you may want to look at the context
|
||||||
and call the methods of the `writer` object that is passed as the first
|
and call the methods of the ``writer`` object that is passed as the first
|
||||||
argument of this function. In the `PageGenerator` example, this method will
|
argument of this function. In the ``PageGenerator`` example, this method will
|
||||||
look at all the pages recorded in the global context and output a file on
|
look at all the pages recorded in the global context and output a file on
|
||||||
the disk (using the writer method `write_file`) for each page encountered.
|
the disk (using the writer method ``write_file``) for each page encountered.
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ In this example, we can see there are three themes available: ``notmyidea``, ``s
|
||||||
Note that you can combine the ``--list`` option with the ``-v`` or ``--verbose`` option to get more verbose output, like this:
|
Note that you can combine the ``--list`` option with the ``-v`` or ``--verbose`` option to get more verbose output, like this:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ pelican-themes -v -l
|
$ pelican-themes -v -l
|
||||||
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/notmyidea
|
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/notmyidea
|
||||||
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/two-column (symbolic link to `/home/skami/Dev/Python/pelican-themes/two-column')
|
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/two-column (symbolic link to `/home/skami/Dev/Python/pelican-themes/two-column')
|
||||||
|
|
@ -118,7 +118,7 @@ Creating symbolic links
|
||||||
To symbolically link a theme, you can use the ``-s`` or ``--symlink``, which works exactly as the ``--install`` option:
|
To symbolically link a theme, you can use the ``-s`` or ``--symlink``, which works exactly as the ``--install`` option:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
# pelican-themes --symlink ~/Dev/Python/pelican-themes/two-column
|
# pelican-themes --symlink ~/Dev/Python/pelican-themes/two-column
|
||||||
|
|
||||||
In this example, the ``two-column`` theme is now symbolically linked to the Pelican themes path, so we can use it, but we can also modify it without having to reinstall it after each modification.
|
In this example, the ``two-column`` theme is now symbolically linked to the Pelican themes path, so we can use it, but we can also modify it without having to reinstall it after each modification.
|
||||||
|
|
@ -130,11 +130,11 @@ This is useful for theme development:
|
||||||
$ sudo pelican-themes -s ~/Dev/Python/pelican-themes/two-column
|
$ sudo pelican-themes -s ~/Dev/Python/pelican-themes/two-column
|
||||||
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
||||||
$ firefox /tmp/out/index.html
|
$ firefox /tmp/out/index.html
|
||||||
$ vim ~/Dev/Pelican/pelican-themes/two-coumn/static/css/main.css
|
$ vim ~/Dev/Pelican/pelican-themes/two-coumn/static/css/main.css
|
||||||
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
||||||
$ cp /tmp/bg.png ~/Dev/Pelican/pelican-themes/two-coumn/static/img/bg.png
|
$ cp /tmp/bg.png ~/Dev/Pelican/pelican-themes/two-coumn/static/img/bg.png
|
||||||
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
||||||
$ vim ~/Dev/Pelican/pelican-themes/two-coumn/templates/index.html
|
$ vim ~/Dev/Pelican/pelican-themes/two-coumn/templates/index.html
|
||||||
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
$ pelican ~/Blog/content -o /tmp/out -t two-column
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -152,7 +152,7 @@ The ``--install``, ``--remove`` and ``--symlink`` option are not mutually exclus
|
||||||
--symlink ~/Dev/Python/pelican-themes/two-column \
|
--symlink ~/Dev/Python/pelican-themes/two-column \
|
||||||
--verbose
|
--verbose
|
||||||
|
|
||||||
In this example, the theme ``notmyidea-cms`` is replaced by the theme ``notmyidea-cms-fr``
|
In this example, the theme ``notmyidea-cms`` is replaced by the theme ``notmyidea-cms-fr``
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -162,5 +162,3 @@ See also
|
||||||
|
|
||||||
- http://docs.notmyidea.org/alexis/pelican/
|
- http://docs.notmyidea.org/alexis/pelican/
|
||||||
- ``/usr/share/doc/pelican/`` if you have installed Pelican using the `APT repository <http://skami18.github.com/pelican-packages/>`_
|
- ``/usr/share/doc/pelican/`` if you have installed Pelican using the `APT repository <http://skami18.github.com/pelican-packages/>`_
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
220
docs/plugins.rst
220
docs/plugins.rst
|
|
@ -3,41 +3,41 @@
|
||||||
Plugins
|
Plugins
|
||||||
#######
|
#######
|
||||||
|
|
||||||
Since version 3.0, pelican manages plugins. Plugins are a way to add features
|
Since version 3.0, Pelican manages plugins. Plugins are a way to add features
|
||||||
to pelican without having to directly hack pelican code.
|
to Pelican without having to directly hack Pelican code.
|
||||||
|
|
||||||
Pelican is shipped with a set of core plugins, but you can easily implement
|
Pelican is shipped with a set of core plugins, but you can easily implement
|
||||||
your own (and this page describes how).
|
your own (and this page describes how).
|
||||||
|
|
||||||
How to use plugins?
|
How to use plugins
|
||||||
====================
|
==================
|
||||||
|
|
||||||
To load plugins, you have to specify them in your settings file. You have two
|
To load plugins, you have to specify them in your settings file. You have two
|
||||||
ways to do so.
|
ways to do so.
|
||||||
Either by specifying strings with the path to the callables::
|
Either by specifying strings with the path to the callables::
|
||||||
|
|
||||||
PLUGINS = ['pelican.plugins.gravatar',]
|
PLUGINS = ['pelican.plugins.gravatar',]
|
||||||
|
|
||||||
Or by importing them and adding them to the list::
|
Or by importing them and adding them to the list::
|
||||||
|
|
||||||
from pelican.plugins import gravatar
|
from pelican.plugins import gravatar
|
||||||
PLUGINS = [gravatar, ]
|
PLUGINS = [gravatar, ]
|
||||||
|
|
||||||
If your plugins are not in an importable path, you can specify a `PLUGIN_PATH`
|
If your plugins are not in an importable path, you can specify a ``PLUGIN_PATH``
|
||||||
in the settings::
|
in the settings::
|
||||||
|
|
||||||
PLUGIN_PATH = "plugins"
|
PLUGIN_PATH = "plugins"
|
||||||
PLUGINS = ["list", "of", "plugins"]
|
PLUGINS = ["list", "of", "plugins"]
|
||||||
|
|
||||||
How to create plugins?
|
How to create plugins
|
||||||
======================
|
=====================
|
||||||
|
|
||||||
Plugins are based on the concept of signals. Pelican sends signals and plugins
|
Plugins are based on the concept of signals. Pelican sends signals, and plugins
|
||||||
subscribe to those signals. The list of signals are defined in a following
|
subscribe to those signals. The list of signals are defined in a following
|
||||||
section.
|
section.
|
||||||
|
|
||||||
The only rule to follow for plugins is to define a `register` callable, in
|
The only rule to follow for plugins is to define a ``register`` callable, in
|
||||||
which you map the signals to your plugin logic. Let's take a simple exemple::
|
which you map the signals to your plugin logic. Let's take a simple example::
|
||||||
|
|
||||||
from pelican import signals
|
from pelican import signals
|
||||||
|
|
||||||
|
|
@ -48,41 +48,79 @@ which you map the signals to your plugin logic. Let's take a simple exemple::
|
||||||
signals.initialized.connect(test)
|
signals.initialized.connect(test)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List of signals
|
List of signals
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Here is the list of currently implemented signals:
|
Here is the list of currently implemented signals:
|
||||||
|
|
||||||
========================= ============================ =========================================
|
============================= ============================ ===========================================================================
|
||||||
Signal Arguments Description
|
Signal Arguments Description
|
||||||
========================= ============================ =========================================
|
============================= ============================ ===========================================================================
|
||||||
initialized pelican object
|
initialized pelican object
|
||||||
article_generate_context article_generator, metadata
|
finalized pelican object invoked after all the generators are executed and just before pelican exits
|
||||||
article_generator_init article_generator invoked in the ArticlesGenerator.__init__
|
usefull for custom post processing actions, such as:
|
||||||
========================= ============================ =========================================
|
- minifying js/css assets.
|
||||||
|
- notify/ping search engines with an updated sitemap.
|
||||||
|
article_generate_context article_generator, metadata
|
||||||
|
article_generator_init article_generator invoked in the ArticlesGenerator.__init__
|
||||||
|
article_generator_finalized article_generator invoked at the end of ArticlesGenerator.generate_context
|
||||||
|
get_generators generators invoked in Pelican.get_generator_classes,
|
||||||
|
can return a Generator, or several
|
||||||
|
generator in a tuple or in a list.
|
||||||
|
pages_generate_context pages_generator, metadata
|
||||||
|
pages_generator_init pages_generator invoked in the PagesGenerator.__init__
|
||||||
|
============================= ============================ ===========================================================================
|
||||||
|
|
||||||
The list is currently small, don't hesitate to add signals and make a pull
|
The list is currently small, don't hesitate to add signals and make a pull
|
||||||
request if you need them!
|
request if you need them!
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
The signal ``content_object_init`` can send different type of object as
|
||||||
|
argument. If you want to register only one type of object then you will
|
||||||
|
need to specify the sender when you are connecting to the signal.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
from pelican import signals
|
||||||
|
from pelican import contents
|
||||||
|
|
||||||
|
def test(sender, instance):
|
||||||
|
print "%s : %s content initialized !!" % (sender, instance)
|
||||||
|
|
||||||
|
def register():
|
||||||
|
signals.content_object_init.connect(test, sender=contents.Article)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List of plugins
|
List of plugins
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Not all the list are described here, but a few of them have been extracted from
|
The following plugins are currently included with Pelican under ``pelican.plugins``:
|
||||||
pelican core and provided in pelican.plugins. They are described here:
|
|
||||||
|
|
||||||
Tag cloud
|
* `GitHub activity`_
|
||||||
---------
|
* `Global license`_
|
||||||
|
* `Gravatar`_
|
||||||
|
* `HTML tags for reStructuredText`_
|
||||||
|
* `Related posts`_
|
||||||
|
* `Sitemap`_
|
||||||
|
|
||||||
Translation
|
Ideas for plugins that haven't been written yet:
|
||||||
-----------
|
|
||||||
|
|
||||||
Github Activity
|
* Tag cloud
|
||||||
|
* Translation
|
||||||
|
|
||||||
|
Plugin descriptions
|
||||||
|
===================
|
||||||
|
|
||||||
|
GitHub activity
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
This plugin makes use of the ``feedparser`` library that you'll need to
|
This plugin makes use of the ``feedparser`` library that you'll need to
|
||||||
install.
|
install.
|
||||||
|
|
||||||
Set the GITHUB_ACTIVITY_FEED parameter to your github activity feed.
|
Set the ``GITHUB_ACTIVITY_FEED`` parameter to your GitHub activity feed.
|
||||||
For example, my setting would look like::
|
For example, my setting would look like::
|
||||||
|
|
||||||
GITHUB_ACTIVITY_FEED = 'https://github.com/kpanic.atom'
|
GITHUB_ACTIVITY_FEED = 'https://github.com/kpanic.atom'
|
||||||
|
|
@ -105,4 +143,132 @@ variable, as in the example::
|
||||||
|
|
||||||
|
|
||||||
``github_activity`` is a list of lists. The first element is the title
|
``github_activity`` is a list of lists. The first element is the title
|
||||||
and the second element is the raw html from github.
|
and the second element is the raw HTML from GitHub.
|
||||||
|
|
||||||
|
Global license
|
||||||
|
--------------
|
||||||
|
|
||||||
|
This plugin allows you to define a LICENSE setting and adds the contents of that
|
||||||
|
license variable to the article's context, making that variable available to use
|
||||||
|
from within your theme's templates.
|
||||||
|
|
||||||
|
Gravatar
|
||||||
|
--------
|
||||||
|
|
||||||
|
This plugin assigns the ``author_gravatar`` variable to the Gravatar URL and
|
||||||
|
makes the variable available within the article's context. You can add
|
||||||
|
AUTHOR_EMAIL to your settings file to define the default author's email
|
||||||
|
address. Obviously, that email address must be associated with a Gravatar
|
||||||
|
account.
|
||||||
|
|
||||||
|
Alternatively, you can provide an email address from within article metadata::
|
||||||
|
|
||||||
|
:email: john.doe@example.com
|
||||||
|
|
||||||
|
If the email address is defined via at least one of the two methods above,
|
||||||
|
the ``author_gravatar`` variable is added to the article's context.
|
||||||
|
|
||||||
|
HTML tags for reStructuredText
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
This plugin allows you to use HTML tags from within reST documents. Following
|
||||||
|
is a usage example, which is in this case a contact form::
|
||||||
|
|
||||||
|
.. html::
|
||||||
|
|
||||||
|
<form method="GET" action="mailto:some email">
|
||||||
|
<p>
|
||||||
|
<input type="text" placeholder="Subject" name="subject">
|
||||||
|
<br />
|
||||||
|
<textarea name="body" placeholder="Message">
|
||||||
|
</textarea>
|
||||||
|
<br />
|
||||||
|
<input type="reset"><input type="submit">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
Related posts
|
||||||
|
-------------
|
||||||
|
|
||||||
|
This plugin adds the ``related_posts`` variable to the article's context.
|
||||||
|
To enable, add the following to your settings file::
|
||||||
|
|
||||||
|
from pelican.plugins import related_posts
|
||||||
|
PLUGINS = [related_posts]
|
||||||
|
|
||||||
|
You can then use the ``article.related_posts`` variable in your templates.
|
||||||
|
For example::
|
||||||
|
|
||||||
|
{% if article.related_posts %}
|
||||||
|
<ul>
|
||||||
|
{% for related_post in article.related_posts %}
|
||||||
|
<li>{{ related_post }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
Sitemap
|
||||||
|
-------
|
||||||
|
|
||||||
|
The sitemap plugin generates plain-text or XML sitemaps. You can use the
|
||||||
|
``SITEMAP`` variable in your settings file to configure the behavior of the
|
||||||
|
plugin.
|
||||||
|
|
||||||
|
The ``SITEMAP`` variable must be a Python dictionary, it can contain three keys:
|
||||||
|
|
||||||
|
- ``format``, which sets the output format of the plugin (``xml`` or ``txt``)
|
||||||
|
|
||||||
|
- ``priorities``, which is a dictionary with three keys:
|
||||||
|
|
||||||
|
- ``articles``, the priority for the URLs of the articles and their
|
||||||
|
translations
|
||||||
|
|
||||||
|
- ``pages``, the priority for the URLs of the static pages
|
||||||
|
|
||||||
|
- ``indexes``, the priority for the URLs of the index pages, such as tags,
|
||||||
|
author pages, categories indexes, archives, etc...
|
||||||
|
|
||||||
|
All the values of this dictionary must be decimal numbers between ``0`` and ``1``.
|
||||||
|
|
||||||
|
- ``changefreqs``, which is a dictionary with three items:
|
||||||
|
|
||||||
|
- ``articles``, the update frequency of the articles
|
||||||
|
|
||||||
|
- ``pages``, the update frequency of the pages
|
||||||
|
|
||||||
|
- ``indexes``, the update frequency of the index pages
|
||||||
|
|
||||||
|
Valid frequency values are ``always``, ``hourly``, ``daily``, ``weekly``, ``monthly``,
|
||||||
|
``yearly`` and ``never``.
|
||||||
|
|
||||||
|
If a key is missing or a value is incorrect, it will be replaced with the
|
||||||
|
default value.
|
||||||
|
|
||||||
|
The sitemap is saved in ``<output_path>/sitemap.<format>``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
``priorities`` and ``changefreqs`` are informations for search engines.
|
||||||
|
They are only used in the XML sitemaps.
|
||||||
|
For more information: <http://www.sitemaps.org/protocol.html#xmlTagDefinitions>
|
||||||
|
|
||||||
|
**Example**
|
||||||
|
|
||||||
|
Here is an example configuration (it's also the default settings):
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
PLUGINS=['pelican.plugins.sitemap',]
|
||||||
|
|
||||||
|
SITEMAP = {
|
||||||
|
'format': 'xml',
|
||||||
|
'priorities': {
|
||||||
|
'articles': 0.5,
|
||||||
|
'indexes': 0.5,
|
||||||
|
'pages': 0.5
|
||||||
|
},
|
||||||
|
'changefreqs': {
|
||||||
|
'articles': 'monthly',
|
||||||
|
'indexes': 'daily',
|
||||||
|
'pages': 'monthly'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,40 @@
|
||||||
Some history about pelican
|
Some history about Pelican
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
This page comes from a report the original author (Alexis Métaireau) wrote
|
This page comes from a report the original author (Alexis Métaireau) wrote
|
||||||
right after writing pelican, in december 2010. The information may not be
|
right after writing Pelican, in December 2010. The information may not be
|
||||||
up to date.
|
up-to-date.
|
||||||
|
|
||||||
Pelican is a simple static blog generator. It parses markup files
|
Pelican is a simple static blog generator. It parses markup files
|
||||||
(markdown or restructured text for now), and generate a HTML folder
|
(Markdown or reStructuredText for now) and generates an HTML folder
|
||||||
with all the files in it.
|
with all the files in it.
|
||||||
I've chosen to use python to implement pelican because it seemed to
|
I've chosen to use Python to implement Pelican because it seemed to
|
||||||
be simple and to fit to my needs. I did not wanted to define a class for
|
be simple and to fit to my needs. I did not wanted to define a class for
|
||||||
each thing, but still wanted to keep my things loosely coupled.
|
each thing, but still wanted to keep my things loosely coupled.
|
||||||
It turns out that it was exactly what I wanted. From time to time,
|
It turns out that it was exactly what I wanted. From time to time,
|
||||||
thanks to the feedback of some users, it took me a very few time to
|
thanks to the feedback of some users, it took me a very few time to
|
||||||
provide fixes on it. So far, I've re-factored the pelican code by two
|
provide fixes on it. So far, I've re-factored the Pelican code by two
|
||||||
times, each time took less than 30 minutes.
|
times; each time took less than 30 minutes.
|
||||||
|
|
||||||
Use case
|
Use case
|
||||||
========
|
========
|
||||||
|
|
||||||
I was previously using wordpress, a solution you can host on a web
|
I was previously using WordPress, a solution you can host on a web
|
||||||
server to manage your blog. Most of the time, I prefer using markup
|
server to manage your blog. Most of the time, I prefer using markup
|
||||||
languages such as Markdown or RestructuredText to type my articles.
|
languages such as Markdown or reStructuredText to type my articles.
|
||||||
To do so, I use vim. I think it is important to let the people choose the
|
To do so, I use vim. I think it is important to let the people choose the
|
||||||
tool they want to write the articles. In my opinion, a blog manager
|
tool they want to write the articles. In my opinion, a blog manager
|
||||||
should just allow you to take any kind of input and transform it to a
|
should just allow you to take any kind of input and transform it to a
|
||||||
weblog. That's what pelican does.
|
weblog. That's what Pelican does.
|
||||||
You can write your articles using the tool you want, and the markup
|
You can write your articles using the tool you want, and the markup
|
||||||
language you want, and then generate a static HTML weblog
|
language you want, and then generate a static HTML weblog.
|
||||||
|
|
||||||
.. image:: _static/overall.png
|
.. image:: _static/overall.png
|
||||||
|
|
||||||
To be flexible enough, pelican have a template support, so you can
|
To be flexible enough, Pelican has template support, so you can easily write
|
||||||
easily write you own themes if you want to.
|
your own themes if you want to.
|
||||||
|
|
||||||
Design process
|
Design process
|
||||||
==============
|
==============
|
||||||
|
|
@ -42,19 +42,18 @@ Design process
|
||||||
Pelican came from a need I have. I started by creating a single file
|
Pelican came from a need I have. I started by creating a single file
|
||||||
application, and I have make it grow to support what it does by now.
|
application, and I have make it grow to support what it does by now.
|
||||||
To start, I wrote a piece of documentation about what I wanted to do.
|
To start, I wrote a piece of documentation about what I wanted to do.
|
||||||
Then, I have created the content I wanted to parse (the restructured
|
Then, I created the content I wanted to parse (the reStructuredText files)
|
||||||
text files), and started experimenting with the code.
|
and started experimenting with the code. Pelican was 200 lines long and
|
||||||
Pelican was 200 lines long, and contained almost ten functions and one
|
contained almost ten functions and one class when it was first usable.
|
||||||
class when it was first usable.
|
|
||||||
|
|
||||||
I have been facing different problems all over the time, and wanted to
|
I have been facing different problems all over the time and wanted to
|
||||||
add features to pelican while using it. The first change I have done was
|
add features to Pelican while using it. The first change I have done was
|
||||||
to add the support of a settings file. It is possible to pass the options to
|
to add the support of a settings file. It is possible to pass the options to
|
||||||
the command line, but can be tedious if there is a lot of them.
|
the command line, but can be tedious if there is a lot of them.
|
||||||
In the same way, I have added the support of different things over
|
In the same way, I have added the support of different things over
|
||||||
time: atom feeds, multiple themes, multiple markup support, etc.
|
time: Atom feeds, multiple themes, multiple markup support, etc.
|
||||||
At some point, it appears that the “only one file” mantra was not good
|
At some point, it appears that the "only one file" mantra was not good
|
||||||
enough for pelican, so I decided to rework a bit all that, and split this in
|
enough for Pelican, so I decided to rework a bit all that, and split this in
|
||||||
multiple different files.
|
multiple different files.
|
||||||
|
|
||||||
I’ve separated the logic in different classes and concepts:
|
I’ve separated the logic in different classes and concepts:
|
||||||
|
|
@ -64,59 +63,59 @@ I’ve separated the logic in different classes and concepts:
|
||||||
Since those operations are commonly used, the object is created
|
Since those operations are commonly used, the object is created
|
||||||
once, and then passed to the generators.
|
once, and then passed to the generators.
|
||||||
|
|
||||||
* *readers* are used to read from various formats (Markdown, and
|
* *readers* are used to read from various formats (Markdown and
|
||||||
Restructured Text for now, but the system is extensible). Given a
|
reStructuredText for now, but the system is extensible). Given a
|
||||||
file, they return metadata (author, tags, category etc) and
|
file, they return metadata (author, tags, category, etc) and
|
||||||
content (HTML formated).
|
content (HTML formatted).
|
||||||
|
|
||||||
* *generators* generate the different outputs. For instance, pelican
|
* *generators* generate the different outputs. For instance, Pelican
|
||||||
comes with an ArticlesGenerator and PagesGenerator, into
|
comes with an ArticlesGenerator and PagesGenerator, into
|
||||||
others. Given a configuration, they can do whatever you want
|
others. Given a configuration, they can do whatever you want
|
||||||
them to do. Most of the time it’s generating files from inputs
|
them to do. Most of the time it's generating files from inputs
|
||||||
(user inputs and files).
|
(user inputs and files).
|
||||||
|
|
||||||
I also deal with contents objects. They can be `Articles`, `Pages`, `Quotes`,
|
I also deal with contents objects. They can be ``Articles``, ``Pages``,
|
||||||
or whatever you want. They are defined in the contents.py module,
|
``Quotes``, or whatever you want. They are defined in the ``contents.py``
|
||||||
and represent some content to be used by the program.
|
module and represent some content to be used by the program.
|
||||||
|
|
||||||
In more details
|
In more detail
|
||||||
===============
|
==============
|
||||||
|
|
||||||
Here is an overview of the classes involved in pelican.
|
Here is an overview of the classes involved in Pelican.
|
||||||
|
|
||||||
.. image:: _static/uml.jpg
|
.. image:: _static/uml.jpg
|
||||||
|
|
||||||
The interface do not really exists, and I have added it only to clarify the
|
The interface does not really exist, and I have added it only to clarify the
|
||||||
whole picture. I do use duck typing, and not interfaces.
|
whole picture. I do use duck typing and not interfaces.
|
||||||
|
|
||||||
Internally, the following process is followed:
|
Internally, the following process is followed:
|
||||||
|
|
||||||
* First of all, the command line is parsed, and some content from
|
* First of all, the command line is parsed, and some content from
|
||||||
the user are used to initialize the different generator objects.
|
the user is used to initialize the different generator objects.
|
||||||
|
|
||||||
* A `context` is created. It contains the settings from the command
|
* A ``context`` is created. It contains the settings from the command
|
||||||
line and a settings file if provided.
|
line and a settings file if provided.
|
||||||
* The `generate_context` method of each generator is called, updating
|
* The ``generate_context`` method of each generator is called, updating
|
||||||
the context.
|
the context.
|
||||||
|
|
||||||
* The writer is created, and given to the `generate_output` method of
|
* The writer is created and given to the ``generate_output`` method of
|
||||||
each generator.
|
each generator.
|
||||||
|
|
||||||
I make two calls because it is important that when the output is
|
I make two calls because it is important that when the output is
|
||||||
generated by the generators, the context will not change. In other
|
generated by the generators, the context will not change. In other
|
||||||
words, the first method `generate_context` should modify the context,
|
words, the first method ``generate_context`` should modify the context,
|
||||||
whereas the second `generate_output` method should not.
|
whereas the second ``generate_output`` method should not.
|
||||||
|
|
||||||
Then, it is up to the generators to do what the want, in the
|
Then, it is up to the generators to do what the want, in the
|
||||||
`generate_context` and `generate_content` method.
|
``generate_context`` and ``generate_content`` method.
|
||||||
Taking the `ArticlesGenerator` class will help to understand some others
|
Taking the ``ArticlesGenerator`` class will help to understand some others
|
||||||
concepts. Here is what happens when calling the `generate_context`
|
concepts. Here is what happens when calling the ``generate_context``
|
||||||
method:
|
method:
|
||||||
|
|
||||||
* Read the folder “path”, looking for restructured text files, load
|
* Read the folder “path”, looking for restructured text files, load
|
||||||
each of them, and construct a content object (`Article`) with it. To do so,
|
each of them, and construct a content object (``Article``) with it. To do so,
|
||||||
use `Reader` objects.
|
use ``Reader`` objects.
|
||||||
* Update the `context` with all those articles.
|
* Update the ``context`` with all those articles.
|
||||||
|
|
||||||
Then, the `generate_content` method uses the `context` and the `writer` to
|
Then, the ``generate_content`` method uses the ``context`` and the ``writer`` to
|
||||||
generate the wanted output
|
generate the wanted output.
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,16 @@ the command line::
|
||||||
|
|
||||||
Settings are configured in the form of a Python module (a file). You can see an
|
Settings are configured in the form of a Python module (a file). You can see an
|
||||||
example by looking at `/samples/pelican.conf.py
|
example by looking at `/samples/pelican.conf.py
|
||||||
<https://github.com/ametaireau/pelican/raw/master/samples/pelican.conf.py>`_
|
<https://github.com/getpelican/pelican/raw/master/samples/pelican.conf.py>`_
|
||||||
|
|
||||||
All the setting identifiers must be set in all-caps, otherwise they will not be
|
All the setting identifiers must be set in all-caps, otherwise they will not be
|
||||||
processed.
|
processed. Setting values that are numbers (5, 20, etc.), booleans (True,
|
||||||
|
False, None, etc.), dictionaries, or tuples should *not* be enclosed in
|
||||||
|
quotation marks. All other values (i.e., strings) *must* be enclosed in
|
||||||
|
quotation marks.
|
||||||
|
|
||||||
|
Unless otherwise specified, settings that refer to paths can be either absolute or relative to the
|
||||||
|
configuration file.
|
||||||
|
|
||||||
The settings you define in the configuration file will be passed to the
|
The settings you define in the configuration file will be passed to the
|
||||||
templates, which allows you to use your settings to add site-wide content.
|
templates, which allows you to use your settings to add site-wide content.
|
||||||
|
|
@ -33,12 +39,19 @@ Setting name (default value) What doe
|
||||||
`DISPLAY_PAGES_ON_MENU` (``True``) Whether to display pages on the menu of the
|
`DISPLAY_PAGES_ON_MENU` (``True``) Whether to display pages on the menu of the
|
||||||
template. Templates may or not honor this
|
template. Templates may or not honor this
|
||||||
setting.
|
setting.
|
||||||
`FALLBACK_ON_FS_DATE` (``True``) If True, Pelican will use the file system
|
`DEFAULT_DATE` (``fs``) The default date you want to use.
|
||||||
|
If 'fs', Pelican will use the file system
|
||||||
timestamp information (mtime) if it can't get
|
timestamp information (mtime) if it can't get
|
||||||
date information from the metadata.
|
date information from the metadata.
|
||||||
|
If tuple object, it will instead generate the
|
||||||
|
default datetime object by passing the tuple to
|
||||||
|
the datetime.datetime constructor.
|
||||||
|
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the content of the output directory before
|
||||||
|
generating new files.
|
||||||
|
`FILES_TO_COPY` (``()``) A list of files to copy from the source (inside the content
|
||||||
|
directory) to the destination (inside the output directory).
|
||||||
|
For example: ``(('extra/robots.txt', 'robots.txt'),)``.
|
||||||
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
||||||
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the output directory as well as
|
|
||||||
the generated files.
|
|
||||||
`LOCALE` (''[#]_) Change the locale. A list of locales can be provided
|
`LOCALE` (''[#]_) Change the locale. A list of locales can be provided
|
||||||
here or a single string representing one locale.
|
here or a single string representing one locale.
|
||||||
When providing a list, all the locales will be tried
|
When providing a list, all the locales will be tried
|
||||||
|
|
@ -51,26 +64,30 @@ Setting name (default value) What doe
|
||||||
Python-Markdown documentation for a complete list of
|
Python-Markdown documentation for a complete list of
|
||||||
supported extensions.
|
supported extensions.
|
||||||
`OUTPUT_PATH` (``'output/'``) Where to output the generated files.
|
`OUTPUT_PATH` (``'output/'``) Where to output the generated files.
|
||||||
`PATH` (``None``) Path to look at for input files.
|
`PATH` (``None``) Path to content directory to be processed by Pelican.
|
||||||
`PAGE_DIR` (``'pages'``) Directory to look at for pages.
|
`PAGE_DIR` (``'pages'``) Directory to look at for pages, relative to `PATH`.
|
||||||
`PAGE_EXCLUDES` (``()``) A list of directories to exclude when looking for pages.
|
`PAGE_EXCLUDES` (``()``) A list of directories to exclude when looking for pages.
|
||||||
`ARTICLE_DIR` (``''``) Directory to look at for articles.
|
`ARTICLE_DIR` (``''``) Directory to look at for articles, relative to `PATH`.
|
||||||
`ARTICLE_EXCLUDES`: (``('pages',)``) A list of directories to exclude when looking for articles.
|
`ARTICLE_EXCLUDES`: (``('pages',)``) A list of directories to exclude when looking for articles.
|
||||||
`PDF_GENERATOR` (``False``) Set to True if you want to have PDF versions
|
`PDF_GENERATOR` (``False``) Set to True if you want to have PDF versions
|
||||||
of your documents. You will need to install
|
of your documents. You will need to install
|
||||||
`rst2pdf`.
|
`rst2pdf`.
|
||||||
`RELATIVE_URLS` (``True``) Defines whether Pelican should use relative URLs or
|
`OUTPUT_SOURCES` (``False``) Set to True if you want to copy the articles and pages in their
|
||||||
not.
|
original format (e.g. Markdown or ReStructeredText) to the
|
||||||
|
specified OUTPUT_PATH.
|
||||||
|
`OUTPUT_SOURCES_EXTENSION` (``.text``) Controls the extension that will be used by the SourcesGenerator.
|
||||||
|
Defaults to ``.text``. If not a valid string the default value
|
||||||
|
will be used.
|
||||||
|
`RELATIVE_URLS` (``True``) Defines whether Pelican should use document-relative URLs or
|
||||||
|
not. If set to ``False``, Pelican will use the SITEURL
|
||||||
|
setting to construct absolute URLs.
|
||||||
`PLUGINS` (``[]``) The list of plugins to load. See :ref:`plugins`.
|
`PLUGINS` (``[]``) The list of plugins to load. See :ref:`plugins`.
|
||||||
`SITENAME` (``'A Pelican Blog'``) Your site name
|
`SITENAME` (``'A Pelican Blog'``) Your site name
|
||||||
`SITEURL` Base URL of your website. Not defined by default,
|
`SITEURL` Base URL of your website. Not defined by default,
|
||||||
which means the base URL is assumed to be "/" with a
|
so it is best to specify your SITEURL; if you do not, feeds
|
||||||
root-relative URL structure. If `SITEURL` is specified
|
will not be generated with properly-formed URLs. You should
|
||||||
explicitly, there should be no trailing slash at the end,
|
include ``http://`` and your domain, with no trailing
|
||||||
and URLs will be generated with an absolute URL structure
|
slash at the end. Example: ``SITEURL = 'http://mydomain.com'``
|
||||||
(including the domain). If you want to use relative URLs
|
|
||||||
instead of root-relative or absolute URLs, you should
|
|
||||||
instead use the `RELATIVE_URL` setting.
|
|
||||||
`STATIC_PATHS` (``['images']``) The static paths you want to have accessible
|
`STATIC_PATHS` (``['images']``) The static paths you want to have accessible
|
||||||
on the output path "static". By default,
|
on the output path "static". By default,
|
||||||
Pelican will copy the 'images' folder to the
|
Pelican will copy the 'images' folder to the
|
||||||
|
|
@ -78,11 +95,10 @@ Setting name (default value) What doe
|
||||||
`TIMEZONE` The timezone used in the date information, to
|
`TIMEZONE` The timezone used in the date information, to
|
||||||
generate Atom and RSS feeds. See the "timezone"
|
generate Atom and RSS feeds. See the "timezone"
|
||||||
section below for more info.
|
section below for more info.
|
||||||
`TYPOGRIFY` (``False``) If set to true, some
|
`TYPOGRIFY` (``False``) If set to True, several typographical improvements will be
|
||||||
additional transformations will be done on the
|
incorporated into the generated HTML via the `Typogrify
|
||||||
generated HTML, using the `Typogrify
|
|
||||||
<http://static.mintchaos.com/projects/typogrify/>`_
|
<http://static.mintchaos.com/projects/typogrify/>`_
|
||||||
library
|
library, which can be installed via: ``pip install typogrify``
|
||||||
`LESS_GENERATOR` (``FALSE``) Set to True or complete path to `lessc` (if not
|
`LESS_GENERATOR` (``FALSE``) Set to True or complete path to `lessc` (if not
|
||||||
found in system PATH) to enable compiling less
|
found in system PATH) to enable compiling less
|
||||||
css files. Requires installation of `less css`_.
|
css files. Requires installation of `less css`_.
|
||||||
|
|
@ -91,12 +107,17 @@ Setting name (default value) What doe
|
||||||
index pages for collections of content e.g. tags and
|
index pages for collections of content e.g. tags and
|
||||||
category index pages.
|
category index pages.
|
||||||
`PAGINATED_DIRECT_TEMPLATES` (``('index',)``) Provides the direct templates that should be paginated.
|
`PAGINATED_DIRECT_TEMPLATES` (``('index',)``) Provides the direct templates that should be paginated.
|
||||||
`SUMMARY_MAX_LENGTH` (``50``) When creating a short summary of an article, this will
|
`SUMMARY_MAX_LENGTH` (``50``) When creating a short summary of an article, this will
|
||||||
be the default length in words of the text created.
|
be the default length in words of the text created.
|
||||||
This only applies if your content does not otherwise
|
This only applies if your content does not otherwise
|
||||||
specify a summary. Setting to None will cause the summary
|
specify a summary. Setting to None will cause the summary
|
||||||
to be a copy of the original content.
|
to be a copy of the original content.
|
||||||
|
`EXTRA_TEMPLATES_PATHS` (``[]``) A list of paths you want Jinja2 to look for the templates.
|
||||||
|
Can be used to separate templates from the theme.
|
||||||
|
Example: projects, resume, profile ...
|
||||||
|
This templates need to use ``DIRECT_TEMPLATES`` setting
|
||||||
|
|
||||||
|
`MARKDOWN_EXTENSIONS` (``['toc',]``) A list of any Markdown extensions you want to use.
|
||||||
===================================================================== =====================================================================
|
===================================================================== =====================================================================
|
||||||
|
|
||||||
.. [#] Default is the system locale.
|
.. [#] Default is the system locale.
|
||||||
|
|
@ -107,6 +128,15 @@ Setting name (default value) What doe
|
||||||
URL settings
|
URL settings
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
The first thing to understand is that there are currently two supported methods
|
||||||
|
for URL formation: *relative* and *absolute*. Document-relative URLs are useful
|
||||||
|
when testing locally, and absolute URLs are reliable and most useful when
|
||||||
|
publishing. One method of supporting both is to have one Pelican configuration
|
||||||
|
file for local development and another for publishing. To see an example of this
|
||||||
|
type of setup, use the ``pelican-quickstart`` script as described at the top of
|
||||||
|
the :doc:`Getting Started<getting_started>` page, which will produce two separate
|
||||||
|
configuration files for local development and publishing, respectively.
|
||||||
|
|
||||||
You can customize the URLs and locations where files will be saved. The URLs and
|
You can customize the URLs and locations where files will be saved. The URLs and
|
||||||
SAVE_AS variables use Python's format strings. These variables allow you to place
|
SAVE_AS variables use Python's format strings. These variables allow you to place
|
||||||
your articles in a location such as '{slug}/index.html' and link to them as
|
your articles in a location such as '{slug}/index.html' and link to them as
|
||||||
|
|
@ -131,37 +161,37 @@ Also, you can use other file metadata attributes as well:
|
||||||
|
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
* ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
|
* ARTICLE_URL = ``'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'``
|
||||||
* ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
|
* ARTICLE_SAVE_AS = ``'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'``
|
||||||
|
|
||||||
This would save your articles in something like '/posts/2011/Aug/07/sample-post/index.html',
|
This would save your articles in something like '/posts/2011/Aug/07/sample-post/index.html',
|
||||||
and the URL to this would be '/posts/2011/Aug/07/sample-post/'.
|
and the URL to this would be '/posts/2011/Aug/07/sample-post/'.
|
||||||
|
|
||||||
================================================ =====================================================
|
==================================================== =====================================================
|
||||||
Setting name (default value) what does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
==================================================== =====================================================
|
||||||
`ARTICLE_URL` ('{slug}.html') The URL to refer to an ARTICLE.
|
`ARTICLE_URL` (``'{slug}.html'``) The URL to refer to an ARTICLE.
|
||||||
`ARTICLE_SAVE_AS` ('{slug}.html') The place where we will save an article.
|
`ARTICLE_SAVE_AS` (``'{slug}.html'``) The place where we will save an article.
|
||||||
`ARTICLE_LANG_URL` ('{slug}-{lang}.html') The URL to refer to an ARTICLE which doesn't use the
|
`ARTICLE_LANG_URL` (``'{slug}-{lang}.html'``) The URL to refer to an ARTICLE which doesn't use the
|
||||||
default language.
|
default language.
|
||||||
`ARTICLE_LANG_SAVE_AS` ('{slug}-{lang}.html' The place where we will save an article which
|
`ARTICLE_LANG_SAVE_AS` (``'{slug}-{lang}.html'``) The place where we will save an article which
|
||||||
doesn't use the default language.
|
doesn't use the default language.
|
||||||
`PAGE_URL` ('pages/{slug}.html') The URL we will use to link to a page.
|
`PAGE_URL` (``'pages/{slug}.html'``) The URL we will use to link to a page.
|
||||||
`PAGE_SAVE_AS` ('pages/{slug}.html') The location we will save the page.
|
`PAGE_SAVE_AS` (``'pages/{slug}.html'``) The location we will save the page.
|
||||||
`PAGE_LANG_URL` ('pages/{slug}-{lang}.html') The URL we will use to link to a page which doesn't
|
`PAGE_LANG_URL` (``'pages/{slug}-{lang}.html'``) The URL we will use to link to a page which doesn't
|
||||||
use the default language.
|
use the default language.
|
||||||
`PAGE_LANG_SAVE_AS` ('pages/{slug}-{lang}.html') The location we will save the page which doesn't
|
`PAGE_LANG_SAVE_AS` (``'pages/{slug}-{lang}.html'``) The location we will save the page which doesn't
|
||||||
use the default language.
|
use the default language.
|
||||||
`AUTHOR_URL` ('author/{slug}.html') The URL to use for an author.
|
`AUTHOR_URL` (``'author/{name}.html'``) The URL to use for an author.
|
||||||
`AUTHOR_SAVE_AS` ('author/{slug}.html') The location to save an author.
|
`AUTHOR_SAVE_AS` (``'author/{name}.html'``) The location to save an author.
|
||||||
`CATEGORY_URL` ('category/{slug}.html') The URL to use for a category.
|
`CATEGORY_URL` (``'category/{name}.html'``) The URL to use for a category.
|
||||||
`CATEGORY_SAVE_AS` ('category/{slug}.html') The location to save a category.
|
`CATEGORY_SAVE_AS` (``'category/{name}.html'``) The location to save a category.
|
||||||
`TAG_URL` ('tag/{slug}.html') The URL to use for a tag.
|
`TAG_URL` (``'tag/{name}.html'``) The URL to use for a tag.
|
||||||
`TAG_SAVE_AS` ('tag/{slug}.html') The location to save the tag page.
|
`TAG_SAVE_AS` (``'tag/{name}.html'``) The location to save the tag page.
|
||||||
`<DIRECT_TEMPLATE_NAME>_SAVE_AS` The location to save content generated from direct
|
`<DIRECT_TEMPLATE_NAME>_SAVE_AS` The location to save content generated from direct
|
||||||
templates. Where <DIRECT_TEMPLATE_NAME> is the
|
templates. Where <DIRECT_TEMPLATE_NAME> is the
|
||||||
upper case template name.
|
upper case template name.
|
||||||
================================================ =====================================================
|
==================================================== =====================================================
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
@ -184,14 +214,14 @@ Have a look at `the wikipedia page`_ to get a list of valid timezone values.
|
||||||
Date format and locale
|
Date format and locale
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
If no DATE_FORMAT is set, fall back to DEFAULT_DATE_FORMAT. If you need to
|
If no DATE_FORMATS is set, fall back to DEFAULT_DATE_FORMAT. If you need to
|
||||||
maintain multiple languages with different date formats, you can set this dict
|
maintain multiple languages with different date formats, you can set this dict
|
||||||
using language name (``lang`` in your posts) as key. Regarding available format
|
using language name (``lang`` in your posts) as key. Regarding available format
|
||||||
codes, see `strftime document of python`_ :
|
codes, see `strftime document of python`_ :
|
||||||
|
|
||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
|
||||||
DATE_FORMAT = {
|
DATE_FORMATS = {
|
||||||
'en': '%a, %d %b %Y',
|
'en': '%a, %d %b %Y',
|
||||||
'jp': '%Y-%m-%d(%a)',
|
'jp': '%Y-%m-%d(%a)',
|
||||||
}
|
}
|
||||||
|
|
@ -210,13 +240,13 @@ above:
|
||||||
|
|
||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
# On Unix/Linux
|
# On Unix/Linux
|
||||||
DATE_FORMAT = {
|
DATE_FORMATS = {
|
||||||
'en': ('en_US','%a, %d %b %Y'),
|
'en': ('en_US','%a, %d %b %Y'),
|
||||||
'jp': ('ja_JP','%Y-%m-%d(%a)'),
|
'jp': ('ja_JP','%Y-%m-%d(%a)'),
|
||||||
}
|
}
|
||||||
|
|
||||||
# On Windows
|
# On Windows
|
||||||
DATE_FORMAT = {
|
DATE_FORMATS = {
|
||||||
'en': ('usa','%a, %d %b %Y'),
|
'en': ('usa','%a, %d %b %Y'),
|
||||||
'jp': ('jpn','%Y-%m-%d(%a)'),
|
'jp': ('jpn','%Y-%m-%d(%a)'),
|
||||||
}
|
}
|
||||||
|
|
@ -240,7 +270,7 @@ feeds if you prefer.
|
||||||
|
|
||||||
Pelican generates category feeds as well as feeds for all your articles. It does
|
Pelican generates category feeds as well as feeds for all your articles. It does
|
||||||
not generate feeds for tags by default, but it is possible to do so using
|
not generate feeds for tags by default, but it is possible to do so using
|
||||||
the ``TAG_FEED`` and ``TAG_FEED_RSS`` settings:
|
the ``TAG_FEED_ATOM`` and ``TAG_FEED_RSS`` settings:
|
||||||
|
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
|
|
@ -251,11 +281,11 @@ Setting name (default value) What does it do?
|
||||||
you have already explicitly defined SITEURL (see
|
you have already explicitly defined SITEURL (see
|
||||||
above) and want to use the same domain for your
|
above) and want to use the same domain for your
|
||||||
feeds, you can just set: `FEED_DOMAIN = SITEURL`
|
feeds, you can just set: `FEED_DOMAIN = SITEURL`
|
||||||
`FEED` (``'feeds/all.atom.xml'``) Relative URL to output the Atom feed.
|
`FEED_ATOM` (``'feeds/all.atom.xml'``) Relative URL to output the Atom feed.
|
||||||
`FEED_RSS` (``None``, i.e. no RSS) Relative URL to output the RSS feed.
|
`FEED_RSS` (``None``, i.e. no RSS) Relative URL to output the RSS feed.
|
||||||
`CATEGORY_FEED` ('feeds/%s.atom.xml'[2]_) Where to put the category Atom feeds.
|
`CATEGORY_FEED_ATOM` ('feeds/%s.atom.xml'[2]_) Where to put the category Atom feeds.
|
||||||
`CATEGORY_FEED_RSS` (``None``, i.e. no RSS) Where to put the category RSS feeds.
|
`CATEGORY_FEED_RSS` (``None``, i.e. no RSS) Where to put the category RSS feeds.
|
||||||
`TAG_FEED` (``None``, i.e. no tag feed) Relative URL to output the tag Atom feed. It should
|
`TAG_FEED_ATOM` (``None``, i.e. no tag feed) Relative URL to output the tag Atom feed. It should
|
||||||
be defined using a "%s" match in the tag name.
|
be defined using a "%s" match in the tag name.
|
||||||
`TAG_FEED_RSS` (``None``, ie no RSS tag feed) Relative URL to output the tag RSS feed
|
`TAG_FEED_RSS` (``None``, ie no RSS tag feed) Relative URL to output the tag RSS feed
|
||||||
`FEED_MAX_ITEMS` Maximum number of items allowed in a feed. Feed item
|
`FEED_MAX_ITEMS` Maximum number of items allowed in a feed. Feed item
|
||||||
|
|
@ -263,7 +293,8 @@ Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
||||||
If you don't want to generate some of these feeds, set ``None`` to the
|
If you don't want to generate some of these feeds, set ``None`` to the
|
||||||
variables above.
|
variables above. If you don't want to generate any feeds set both ``FEED_ATOM``
|
||||||
|
and ``FEED_RSS`` to none.
|
||||||
|
|
||||||
.. [2] %s is the name of the category.
|
.. [2] %s is the name of the category.
|
||||||
|
|
||||||
|
|
@ -274,7 +305,7 @@ If you want to use FeedBurner for your feed, you will likely need to decide
|
||||||
upon a unique identifier. For example, if your site were called "Thyme" and
|
upon a unique identifier. For example, if your site were called "Thyme" and
|
||||||
hosted on the www.example.com domain, you might use "thymefeeds" as your
|
hosted on the www.example.com domain, you might use "thymefeeds" as your
|
||||||
unique identifier, which we'll use throughout this section for illustrative
|
unique identifier, which we'll use throughout this section for illustrative
|
||||||
purposes. In your Pelican settings, set the `FEED` attribute to
|
purposes. In your Pelican settings, set the `FEED_ATOM` attribute to
|
||||||
"thymefeeds/main.xml" to create an Atom feed with an original address of
|
"thymefeeds/main.xml" to create an Atom feed with an original address of
|
||||||
`http://www.example.com/thymefeeds/main.xml`. Set the `FEED_DOMAIN` attribute
|
`http://www.example.com/thymefeeds/main.xml`. Set the `FEED_DOMAIN` attribute
|
||||||
to `http://feeds.feedburner.com`, or `http://feeds.example.com` if you are
|
to `http://feeds.feedburner.com`, or `http://feeds.example.com` if you are
|
||||||
|
|
@ -299,10 +330,10 @@ You can use the following settings to configure the pagination.
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
`DEFAULT_ORPHANS` (0) The minimum number of articles allowed on the
|
`DEFAULT_ORPHANS` (``0``) The minimum number of articles allowed on the
|
||||||
last page. Use this when you don't want to
|
last page. Use this when you don't want to
|
||||||
have a last page with very few articles.
|
have a last page with very few articles.
|
||||||
`DEFAULT_PAGINATION` (False) The maximum number of articles to include on a
|
`DEFAULT_PAGINATION` (``False``) The maximum number of articles to include on a
|
||||||
page, not including orphans. False to disable
|
page, not including orphans. False to disable
|
||||||
pagination.
|
pagination.
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
@ -316,9 +347,9 @@ following settings.
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
`TAG_CLOUD_STEPS` (4) Count of different font sizes in the tag
|
`TAG_CLOUD_STEPS` (``4``) Count of different font sizes in the tag
|
||||||
cloud.
|
cloud.
|
||||||
`TAG_CLOUD_MAX_ITEMS` (100) Maximum number of tags in the cloud.
|
`TAG_CLOUD_MAX_ITEMS` (``100``) Maximum number of tags in the cloud.
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
||||||
The default theme does not support tag clouds, but it is pretty easy to add::
|
The default theme does not support tag clouds, but it is pretty easy to add::
|
||||||
|
|
@ -338,12 +369,13 @@ Translations
|
||||||
Pelican offers a way to translate articles. See the Getting Started section for
|
Pelican offers a way to translate articles. See the Getting Started section for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
================================================ =====================================================
|
===================================================== =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
===================================================== =====================================================
|
||||||
`DEFAULT_LANG` (``'en'``) The default language to use.
|
`DEFAULT_LANG` (``'en'``) The default language to use.
|
||||||
`TRANSLATION_FEED` ('feeds/all-%s.atom.xml'[3]_) Where to put the feed for translations.
|
`TRANSLATION_FEED_ATOM` ('feeds/all-%s.atom.xml'[3]_) Where to put the Atom feed for translations.
|
||||||
================================================ =====================================================
|
`TRANSLATION_FEED_RSS` (``None``, i.e. no RSS) Where to put the RSS feed for translations.
|
||||||
|
===================================================== =====================================================
|
||||||
|
|
||||||
.. [3] %s is the language
|
.. [3] %s is the language
|
||||||
|
|
||||||
|
|
@ -353,25 +385,25 @@ Ordering content
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
`REVERSE_ARCHIVE_ORDER` (``False``) Reverse the archives list order. (True: orders by date
|
`NEWEST_FIRST_ARCHIVES` (``True``) Order archives by newest first by date. (False:
|
||||||
in descending order, with newer articles first.)
|
orders by date with older articles first.)
|
||||||
`REVERSE_CATEGORY_ORDER` (``False``) Reverse the category order. (True: lists by reverse
|
`REVERSE_CATEGORY_ORDER` (``False``) Reverse the category order. (True: lists by reverse
|
||||||
alphabetical order; default lists alphabetically.)
|
alphabetical order; default lists alphabetically.)
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
||||||
Theming
|
Themes
|
||||||
=======
|
======
|
||||||
|
|
||||||
Theming is addressed in a dedicated section (see :ref:`theming-pelican`).
|
Creating Pelican themes is addressed in a dedicated section (see :ref:`theming-pelican`).
|
||||||
However, here are the settings that are related to theming.
|
However, here are the settings that are related to themes.
|
||||||
|
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
Setting name (default value) What does it do?
|
Setting name (default value) What does it do?
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
`THEME` Theme to use to produce the output. Can be the
|
`THEME` Theme to use to produce the output. Can be a relative
|
||||||
complete static path to a theme folder, or
|
or absolute path to a theme folder, or the name of a
|
||||||
chosen between the list of default themes (see
|
default theme or a theme installed via
|
||||||
below)
|
``pelican-themes`` (see below).
|
||||||
`THEME_STATIC_PATHS` (``['static']``) Static theme paths you want to copy. Default
|
`THEME_STATIC_PATHS` (``['static']``) Static theme paths you want to copy. Default
|
||||||
value is `static`, but if your theme has
|
value is `static`, but if your theme has
|
||||||
other static paths, you can put them here.
|
other static paths, you can put them here.
|
||||||
|
|
@ -379,22 +411,32 @@ Setting name (default value) What does it do?
|
||||||
`WEBASSETS` (``False``) Asset management with `webassets` (see below)
|
`WEBASSETS` (``False``) Asset management with `webassets` (see below)
|
||||||
================================================ =====================================================
|
================================================ =====================================================
|
||||||
|
|
||||||
By default, two themes are available. You can specify them using the `-t` option:
|
|
||||||
|
By default, two themes are available. You can specify them using the `THEME` setting or by passing the
|
||||||
|
``-t`` option to the ``pelican`` command:
|
||||||
|
|
||||||
* notmyidea
|
* notmyidea
|
||||||
* simple (a synonym for "full text" :)
|
* simple (a synonym for "plain text" :)
|
||||||
|
|
||||||
You can define your own theme too, and specify its placement in the same
|
|
||||||
manner. (Be sure to specify the full absolute path to it.)
|
|
||||||
|
|
||||||
Here is :doc:`a guide on how to create your theme <themes>`
|
|
||||||
|
|
||||||
You can find a list of themes at http://github.com/ametaireau/pelican-themes.
|
|
||||||
|
|
||||||
|
There are a number of other themes available at http://github.com/getpelican/pelican-themes.
|
||||||
Pelican comes with :doc:`pelican-themes`, a small script for managing themes.
|
Pelican comes with :doc:`pelican-themes`, a small script for managing themes.
|
||||||
|
|
||||||
The `notmyidea` theme can make good use of the following settings. I recommend
|
You can define your own theme, either by starting from scratch or by duplicating
|
||||||
using them in your themes as well.
|
and modifying a pre-existing theme. Here is :doc:`a guide on how to create your theme <themes>`.
|
||||||
|
|
||||||
|
Following are example ways to specify your preferred theme::
|
||||||
|
|
||||||
|
# Specify name of a built-in theme
|
||||||
|
THEME = "notmyidea"
|
||||||
|
# Specify name of a theme installed via the pelican-themes tool
|
||||||
|
THEME = "chunk"
|
||||||
|
# Specify a customized theme, via path relative to the settings file
|
||||||
|
THEME = "themes/mycustomtheme"
|
||||||
|
# Specify a customized theme, via absolute path
|
||||||
|
THEME = "~/projects/mysite/themes/mycustomtheme"
|
||||||
|
|
||||||
|
The built-in `notmyidea` theme can make good use of the following settings. Feel
|
||||||
|
free to use them in your themes as well.
|
||||||
|
|
||||||
======================= =======================================================
|
======================= =======================================================
|
||||||
Setting name What does it do ?
|
Setting name What does it do ?
|
||||||
|
|
@ -430,26 +472,27 @@ adding the following to your configuration::
|
||||||
Asset management
|
Asset management
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
The `WEBASSETS` setting allows to use the `webassets`_ module to manage assets
|
The `WEBASSETS` setting allows you to use the `webassets`_ module to manage
|
||||||
(css, js). The module must first be installed::
|
assets such as CSS and JS files. The module must first be installed::
|
||||||
|
|
||||||
pip install webassets
|
pip install webassets
|
||||||
|
|
||||||
`webassets` allows to concatenate your assets and to use almost all of the
|
The `webassets` module allows you to perform a number of useful asset management
|
||||||
hype tools of the moment (see the `documentation`_):
|
functions, including:
|
||||||
|
|
||||||
* css minifier (`cssmin`, `yuicompressor`, ...)
|
* CSS minifier (`cssmin`, `yuicompressor`, ...)
|
||||||
* css compiler (`less`, `sass`, ...)
|
* CSS compiler (`less`, `sass`, ...)
|
||||||
* js minifier (`uglifyjs`, `yuicompressor`, `closure`, ...)
|
* JS minifier (`uglifyjs`, `yuicompressor`, `closure`, ...)
|
||||||
|
|
||||||
Others filters include gzip compression, integration of images in css with
|
Others filters include gzip compression, integration of images in CSS via data
|
||||||
`datauri` and more. Webassets also append a version identifier to your asset
|
URIs, and more. `webassets` can also append a version identifier to your asset
|
||||||
url to convince browsers to download new versions of your assets when you use
|
URL to convince browsers to download new versions of your assets when you use
|
||||||
far future expires headers.
|
far-future expires headers. Please refer to the `webassets documentation`_ for
|
||||||
|
more information.
|
||||||
|
|
||||||
When using it with Pelican, `webassets` is configured to process assets in the
|
When using with Pelican, `webassets` is configured to process assets in the
|
||||||
``OUTPUT_PATH/theme`` directory. You can use it in your templates with a
|
``OUTPUT_PATH/theme`` directory. You can use `webassets` in your templates by
|
||||||
template tag, for example:
|
including one or more template tags. For example...
|
||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|
||||||
|
|
@ -457,28 +500,43 @@ template tag, for example:
|
||||||
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
||||||
{% endassets %}
|
{% endassets %}
|
||||||
|
|
||||||
will produce a minified css file with the version identifier:
|
... will produce a minified css file with a version identifier:
|
||||||
|
|
||||||
.. code-block:: html
|
.. code-block:: html
|
||||||
|
|
||||||
<link href="http://{SITEURL}/theme/css/style.min.css?b3a7c807" rel="stylesheet">
|
<link href="http://{SITEURL}/theme/css/style.min.css?b3a7c807" rel="stylesheet">
|
||||||
|
|
||||||
Another example for javascript:
|
These filters can be combined. Here is an example that uses the SASS compiler
|
||||||
|
and minifies the output:
|
||||||
|
|
||||||
|
.. code-block:: jinja
|
||||||
|
|
||||||
|
{% assets filters="sass,cssmin", output="css/style.min.css", "css/style.scss" %}
|
||||||
|
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
||||||
|
{% endassets %}
|
||||||
|
|
||||||
|
Another example for Javascript:
|
||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|
||||||
{% assets filters="uglifyjs,gzip", output="js/packed.js", "js/jquery.js", "js/base.js", "js/widgets.js" %}
|
{% assets filters="uglifyjs,gzip", output="js/packed.js", "js/jquery.js", "js/base.js", "js/widgets.js" %}
|
||||||
<script src="{{ ASSETS_URL }}"></script>
|
<script src="{{ ASSET_URL }}"></script>
|
||||||
{% endassets %}
|
{% endassets %}
|
||||||
|
|
||||||
will produce a minified and gzipped js file:
|
The above will produce a minified and gzipped JS file:
|
||||||
|
|
||||||
.. code-block:: html
|
.. code-block:: html
|
||||||
|
|
||||||
<script src="http://{SITEURL}/theme/js/packed.js?00703b9d"></script>
|
<script src="http://{SITEURL}/theme/js/packed.js?00703b9d"></script>
|
||||||
|
|
||||||
|
Pelican's debug mode is propagated to `webassets` to disable asset packaging
|
||||||
|
and instead work with the uncompressed assets. However, this also means that
|
||||||
|
the LESS and SASS files are not compiled. This should be fixed in a future
|
||||||
|
version of `webassets` (cf. the related `bug report
|
||||||
|
<https://github.com/getpelican/pelican/issues/481>`_).
|
||||||
|
|
||||||
.. _webassets: https://github.com/miracle2k/webassets
|
.. _webassets: https://github.com/miracle2k/webassets
|
||||||
.. _documentation: http://webassets.readthedocs.org/en/latest/builtin_filters.html
|
.. _webassets documentation: http://webassets.readthedocs.org/en/latest/builtin_filters.html
|
||||||
|
|
||||||
Example settings
|
Example settings
|
||||||
================
|
================
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,10 @@
|
||||||
How to create themes for Pelican
|
How to create themes for Pelican
|
||||||
################################
|
################################
|
||||||
|
|
||||||
Pelican uses the great `jinja2 <http://jinja.pocoo.org>`_ templating engine to
|
Pelican uses the great `Jinja2 <http://jinja.pocoo.org/>`_ templating engine to
|
||||||
generate its HTML output. The jinja2 syntax is really simple. If you want to
|
generate its HTML output. Jinja2 syntax is really simple. If you want to
|
||||||
create your own theme, feel free to take inspiration from the "simple" theme,
|
create your own theme, feel free to take inspiration from the `"simple" theme
|
||||||
which is available `here
|
<https://github.com/getpelican/pelican/tree/master/pelican/themes/simple/templates>`_.
|
||||||
<https://github.com/ametaireau/pelican/tree/master/pelican/themes/simple/templates>`_
|
|
||||||
|
|
||||||
Structure
|
Structure
|
||||||
=========
|
=========
|
||||||
|
|
@ -30,13 +29,13 @@ To make your own theme, you must follow the following structure::
|
||||||
└── tags.html // must list all the tags. Can be a tag cloud.
|
└── tags.html // must list all the tags. Can be a tag cloud.
|
||||||
|
|
||||||
* `static` contains all the static assets, which will be copied to the output
|
* `static` contains all the static assets, which will be copied to the output
|
||||||
`theme/static` folder. I've put the CSS and image folders here, but they are
|
`theme` folder. I've put the CSS and image folders here, but they are
|
||||||
just examples. Put what you need here.
|
just examples. Put what you need here.
|
||||||
|
|
||||||
* `templates` contains all the templates that will be used to generate the content.
|
* `templates` contains all the templates that will be used to generate the content.
|
||||||
I've just put the mandatory templates here; you can define your own if it helps
|
I've just put the mandatory templates here; you can define your own if it helps
|
||||||
you keep things organized while creating your theme.
|
you keep things organized while creating your theme.
|
||||||
|
|
||||||
Templates and variables
|
Templates and variables
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
|
@ -45,7 +44,7 @@ This document describes which templates should exist in a theme, and which
|
||||||
variables will be passed to each template at generation time.
|
variables will be passed to each template at generation time.
|
||||||
|
|
||||||
All templates will receive the variables defined in your settings file, if they
|
All templates will receive the variables defined in your settings file, if they
|
||||||
are in all-caps. You can access them directly.
|
are in all-caps. You can access them directly.
|
||||||
|
|
||||||
Common variables
|
Common variables
|
||||||
----------------
|
----------------
|
||||||
|
|
@ -56,14 +55,14 @@ All of these settings will be available to all templates.
|
||||||
Variable Description
|
Variable Description
|
||||||
============= ===================================================
|
============= ===================================================
|
||||||
articles The list of articles, ordered descending by date
|
articles The list of articles, ordered descending by date
|
||||||
All the elements are `Article` objects, so you can
|
All the elements are `Article` objects, so you can
|
||||||
access their attributes (e.g. title, summary, author
|
access their attributes (e.g. title, summary, author
|
||||||
etc.)
|
etc.)
|
||||||
dates The same list of articles, but ordered by date,
|
dates The same list of articles, but ordered by date,
|
||||||
ascending
|
ascending
|
||||||
tags A key-value dict containing the tags (the keys) and
|
tags A key-value dict containing the tags (the keys) and
|
||||||
the list of respective articles (the values)
|
the list of respective articles (the values)
|
||||||
categories A key-value dict containing the categories (keys)
|
categories A key-value dict containing the categories (keys)
|
||||||
and the list of respective articles (values)
|
and the list of respective articles (values)
|
||||||
pages The list of pages
|
pages The list of pages
|
||||||
============= ===================================================
|
============= ===================================================
|
||||||
|
|
@ -183,7 +182,7 @@ dates Articles related to this tag, but ordered by date,
|
||||||
ascending
|
ascending
|
||||||
articles_paginator A paginator object for the list of articles
|
articles_paginator A paginator object for the list of articles
|
||||||
articles_page The current page of articles
|
articles_page The current page of articles
|
||||||
dates_paginator A paginator object for the list of articles,
|
dates_paginator A paginator object for the list of articles,
|
||||||
ordered by date, ascending
|
ordered by date, ascending
|
||||||
dates_page The current page of articles, ordered by date,
|
dates_page The current page of articles, ordered by date,
|
||||||
ascending
|
ascending
|
||||||
|
|
@ -191,6 +190,23 @@ page_name TAG_URL where everything after `{slug}` is removed
|
||||||
-- useful for pagination links
|
-- useful for pagination links
|
||||||
=================== ===================================================
|
=================== ===================================================
|
||||||
|
|
||||||
|
Feeds
|
||||||
|
=====
|
||||||
|
|
||||||
|
The feed variables changed in 3.0. Each variable now explicitly lists ATOM or
|
||||||
|
RSS in the name. ATOM is still the default. Old themes will need to be updated.
|
||||||
|
Here is a complete list of the feed variables::
|
||||||
|
|
||||||
|
FEED_ATOM
|
||||||
|
FEED_RSS
|
||||||
|
CATEGORY_FEED_ATOM
|
||||||
|
CATEGORY_FEED_RSS
|
||||||
|
TAG_FEED_ATOM
|
||||||
|
TAG_FEED_RSS
|
||||||
|
TRANSLATION_FEED_ATOM
|
||||||
|
TRANSLATION_FEED_RSS
|
||||||
|
|
||||||
|
|
||||||
Inheritance
|
Inheritance
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,16 +12,16 @@ file generator, we can take advantage of this.
|
||||||
|
|
||||||
User Pages
|
User Pages
|
||||||
----------
|
----------
|
||||||
Github allows you to create user pages in the form of ``username.github.com``.
|
GitHub allows you to create user pages in the form of ``username.github.com``.
|
||||||
Whatever is created in master branch will be published. For this purposes just
|
Whatever is created in the master branch will be published. For this purpose,
|
||||||
the output generated by pelican needs to pushed at github.
|
just the output generated by Pelican needs to pushed to GitHub.
|
||||||
|
|
||||||
So given a repository containing your articles, just run pelican over the posts
|
So given a repository containing your articles, just run Pelican over the posts
|
||||||
and deploy the master branch at github::
|
and deploy the master branch to GitHub::
|
||||||
|
|
||||||
$ pelican -s pelican.conf.py ./path/to/posts -o /path/to/output
|
$ pelican -s pelican.conf.py ./path/to/posts -o /path/to/output
|
||||||
|
|
||||||
Now add all the files in the output directory generated by pelican::
|
Now add all the files in the output directory generated by Pelican::
|
||||||
|
|
||||||
$ git add /path/to/output/*
|
$ git add /path/to/output/*
|
||||||
$ git commit -am "Your Message"
|
$ git commit -am "Your Message"
|
||||||
|
|
@ -31,12 +31,12 @@ Project Pages
|
||||||
-------------
|
-------------
|
||||||
For creating Project pages, a branch called ``gh-pages`` is used for publishing.
|
For creating Project pages, a branch called ``gh-pages`` is used for publishing.
|
||||||
The excellent `ghp-import <https://github.com/davisp/ghp-import>`_ makes this
|
The excellent `ghp-import <https://github.com/davisp/ghp-import>`_ makes this
|
||||||
really easy. You will have to install it::
|
really easy, which can be installed via::
|
||||||
|
|
||||||
$ pip install ghp-import
|
$ pip install ghp-import
|
||||||
|
|
||||||
Then, given a repository containing your articles, you would simply have
|
Then, given a repository containing your articles, you would simply run
|
||||||
to run Pelican and upload the output to GitHub::
|
Pelican and upload the output to GitHub::
|
||||||
|
|
||||||
$ pelican -s pelican.conf.py .
|
$ pelican -s pelican.conf.py .
|
||||||
$ ghp-import output
|
$ ghp-import output
|
||||||
|
|
@ -45,10 +45,8 @@ to run Pelican and upload the output to GitHub::
|
||||||
And that's it.
|
And that's it.
|
||||||
|
|
||||||
If you want, you can put that directly into a post-commit hook, so each time you
|
If you want, you can put that directly into a post-commit hook, so each time you
|
||||||
commit, your blog is up to date on GitHub!
|
commit, your blog is up-to-date on GitHub!
|
||||||
|
|
||||||
Put the following into `.git/hooks/post-commit`::
|
Put the following into ``.git/hooks/post-commit``::
|
||||||
|
|
||||||
pelican -s pelican.conf.py . && ghp-import output && git push origin
|
|
||||||
gh-pages
|
|
||||||
|
|
||||||
|
pelican -s pelican.conf.py . && ghp-import output && git push origin gh-pages
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,12 @@ import argparse
|
||||||
from pelican import signals
|
from pelican import signals
|
||||||
|
|
||||||
from pelican.generators import (ArticlesGenerator, PagesGenerator,
|
from pelican.generators import (ArticlesGenerator, PagesGenerator,
|
||||||
StaticGenerator, PdfGenerator, LessCSSGenerator)
|
StaticGenerator, PdfGenerator,
|
||||||
|
LessCSSGenerator, SourceFileGenerator)
|
||||||
from pelican.log import init
|
from pelican.log import init
|
||||||
from pelican.settings import read_settings, _DEFAULT_CONFIG
|
from pelican.settings import read_settings
|
||||||
from pelican.utils import clean_output_dir, files_changed, file_changed
|
from pelican.utils import (clean_output_dir, files_changed, file_changed,
|
||||||
|
NoFilesError)
|
||||||
from pelican.writers import Writer
|
from pelican.writers import Writer
|
||||||
|
|
||||||
__major__ = 3
|
__major__ = 3
|
||||||
|
|
@ -23,55 +25,40 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Pelican(object):
|
class Pelican(object):
|
||||||
def __init__(self, settings=None, path=None, theme=None, output_path=None,
|
def __init__(self, settings):
|
||||||
markup=None, delete_outputdir=False, plugin_path=None):
|
"""
|
||||||
"""Read the settings, and performs some checks on the environment
|
Pelican initialisation, performs some checks on the environment before
|
||||||
before doing anything else.
|
doing anything else.
|
||||||
"""
|
"""
|
||||||
if settings is None:
|
|
||||||
settings = _DEFAULT_CONFIG
|
|
||||||
|
|
||||||
self.path = path or settings['PATH']
|
|
||||||
if not self.path:
|
|
||||||
raise Exception('You need to specify a path containing the content'
|
|
||||||
' (see pelican --help for more information)')
|
|
||||||
|
|
||||||
if self.path.endswith('/'):
|
|
||||||
self.path = self.path[:-1]
|
|
||||||
|
|
||||||
# define the default settings
|
# define the default settings
|
||||||
self.settings = settings
|
self.settings = settings
|
||||||
|
|
||||||
self._handle_deprecation()
|
self._handle_deprecation()
|
||||||
|
|
||||||
self.theme = theme or settings['THEME']
|
self.path = settings['PATH']
|
||||||
output_path = output_path or settings['OUTPUT_PATH']
|
self.theme = settings['THEME']
|
||||||
self.output_path = os.path.realpath(output_path)
|
self.output_path = settings['OUTPUT_PATH']
|
||||||
self.markup = markup or settings['MARKUP']
|
self.markup = settings['MARKUP']
|
||||||
self.delete_outputdir = delete_outputdir \
|
self.delete_outputdir = settings['DELETE_OUTPUT_DIRECTORY']
|
||||||
or settings['DELETE_OUTPUT_DIRECTORY']
|
|
||||||
|
|
||||||
# find the theme in pelican.theme if the given one does not exists
|
|
||||||
if not os.path.exists(self.theme):
|
|
||||||
theme_path = os.sep.join([os.path.dirname(
|
|
||||||
os.path.abspath(__file__)), "themes/%s" % self.theme])
|
|
||||||
if os.path.exists(theme_path):
|
|
||||||
self.theme = theme_path
|
|
||||||
else:
|
|
||||||
raise Exception("Impossible to find the theme %s" % theme)
|
|
||||||
|
|
||||||
|
self.init_path()
|
||||||
self.init_plugins()
|
self.init_plugins()
|
||||||
signals.initialized.send(self)
|
signals.initialized.send(self)
|
||||||
|
|
||||||
|
def init_path(self):
|
||||||
|
if not any(p in sys.path for p in ['', '.']):
|
||||||
|
logger.debug("Adding current directory to system path")
|
||||||
|
sys.path.insert(0, '')
|
||||||
|
|
||||||
def init_plugins(self):
|
def init_plugins(self):
|
||||||
self.plugins = self.settings['PLUGINS']
|
self.plugins = self.settings['PLUGINS']
|
||||||
for plugin in self.plugins:
|
for plugin in self.plugins:
|
||||||
# if it's a string, then import it
|
# if it's a string, then import it
|
||||||
if isinstance(plugin, basestring):
|
if isinstance(plugin, basestring):
|
||||||
log.debug("Loading plugin `{0}' ...".format(plugin))
|
logger.debug("Loading plugin `{0}' ...".format(plugin))
|
||||||
plugin = __import__(plugin, globals(), locals(), 'module')
|
plugin = __import__(plugin, globals(), locals(), 'module')
|
||||||
|
|
||||||
log.debug("Registering plugin `{0}' ...".format(plugin.__name__))
|
logger.debug("Registering plugin `{0}'".format(plugin.__name__))
|
||||||
plugin.register()
|
plugin.register()
|
||||||
|
|
||||||
def _handle_deprecation(self):
|
def _handle_deprecation(self):
|
||||||
|
|
@ -114,6 +101,35 @@ class Pelican(object):
|
||||||
self.settings[setting])
|
self.settings[setting])
|
||||||
logger.warning("%s = '%s'" % (setting, self.settings[setting]))
|
logger.warning("%s = '%s'" % (setting, self.settings[setting]))
|
||||||
|
|
||||||
|
if self.settings.get('FEED', False):
|
||||||
|
logger.warning('Found deprecated `FEED` in settings. Modify FEED'
|
||||||
|
' to FEED_ATOM in your settings and theme for the same behavior.'
|
||||||
|
' Temporarily setting FEED_ATOM for backwards compatibility.')
|
||||||
|
self.settings['FEED_ATOM'] = self.settings['FEED']
|
||||||
|
|
||||||
|
if self.settings.get('TAG_FEED', False):
|
||||||
|
logger.warning('Found deprecated `TAG_FEED` in settings. Modify '
|
||||||
|
' TAG_FEED to TAG_FEED_ATOM in your settings and theme for the '
|
||||||
|
'same behavior. Temporarily setting TAG_FEED_ATOM for backwards '
|
||||||
|
'compatibility.')
|
||||||
|
self.settings['TAG_FEED_ATOM'] = self.settings['TAG_FEED']
|
||||||
|
|
||||||
|
if self.settings.get('CATEGORY_FEED', False):
|
||||||
|
logger.warning('Found deprecated `CATEGORY_FEED` in settings. '
|
||||||
|
'Modify CATEGORY_FEED to CATEGORY_FEED_ATOM in your settings and '
|
||||||
|
'theme for the same behavior. Temporarily setting '
|
||||||
|
'CATEGORY_FEED_ATOM for backwards compatibility.')
|
||||||
|
self.settings['CATEGORY_FEED_ATOM'] =\
|
||||||
|
self.settings['CATEGORY_FEED']
|
||||||
|
|
||||||
|
if self.settings.get('TRANSLATION_FEED', False):
|
||||||
|
logger.warning('Found deprecated `TRANSLATION_FEED` in settings. '
|
||||||
|
'Modify TRANSLATION_FEED to TRANSLATION_FEED_ATOM in your '
|
||||||
|
'settings and theme for the same behavior. Temporarily setting '
|
||||||
|
'TRANSLATION_FEED_ATOM for backwards compatibility.')
|
||||||
|
self.settings['TRANSLATION_FEED_ATOM'] =\
|
||||||
|
self.settings['TRANSLATION_FEED']
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Run the generators and return"""
|
"""Run the generators and return"""
|
||||||
|
|
||||||
|
|
@ -151,12 +167,28 @@ class Pelican(object):
|
||||||
if hasattr(p, 'generate_output'):
|
if hasattr(p, 'generate_output'):
|
||||||
p.generate_output(writer)
|
p.generate_output(writer)
|
||||||
|
|
||||||
|
signals.finalized.send(self)
|
||||||
|
|
||||||
def get_generator_classes(self):
|
def get_generator_classes(self):
|
||||||
generators = [StaticGenerator, ArticlesGenerator, PagesGenerator]
|
generators = [StaticGenerator, ArticlesGenerator, PagesGenerator]
|
||||||
if self.settings['PDF_GENERATOR']:
|
if self.settings['PDF_GENERATOR']:
|
||||||
generators.append(PdfGenerator)
|
generators.append(PdfGenerator)
|
||||||
if self.settings['LESS_GENERATOR']: # can be True or PATH to lessc
|
if self.settings['LESS_GENERATOR']: # can be True or PATH to lessc
|
||||||
generators.append(LessCSSGenerator)
|
generators.append(LessCSSGenerator)
|
||||||
|
if self.settings['OUTPUT_SOURCES']:
|
||||||
|
generators.append(SourceFileGenerator)
|
||||||
|
|
||||||
|
for pair in signals.get_generators.send(self):
|
||||||
|
(funct, value) = pair
|
||||||
|
|
||||||
|
if not isinstance(value, (tuple, list)):
|
||||||
|
value = (value, )
|
||||||
|
|
||||||
|
for v in value:
|
||||||
|
if isinstance(v, type):
|
||||||
|
logger.debug('Found generator: {0}'.format(v))
|
||||||
|
generators.append(v)
|
||||||
|
|
||||||
return generators
|
return generators
|
||||||
|
|
||||||
def get_writer(self):
|
def get_writer(self):
|
||||||
|
|
@ -213,11 +245,26 @@ def parse_arguments():
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
def get_instance(args):
|
def get_config(args):
|
||||||
markup = [a.strip().lower() for a in args.markup.split(',')]\
|
config = {}
|
||||||
if args.markup else None
|
if args.path:
|
||||||
|
config['PATH'] = os.path.abspath(os.path.expanduser(args.path))
|
||||||
|
if args.output:
|
||||||
|
config['OUTPUT_PATH'] = \
|
||||||
|
os.path.abspath(os.path.expanduser(args.output))
|
||||||
|
if args.markup:
|
||||||
|
config['MARKUP'] = [a.strip().lower() for a in args.markup.split(',')]
|
||||||
|
if args.theme:
|
||||||
|
abstheme = os.path.abspath(os.path.expanduser(args.theme))
|
||||||
|
config['THEME'] = abstheme if os.path.exists(abstheme) else args.theme
|
||||||
|
if args.delete_outputdir is not None:
|
||||||
|
config['DELETE_OUTPUT_DIRECTORY'] = args.delete_outputdir
|
||||||
|
return config
|
||||||
|
|
||||||
settings = read_settings(args.settings)
|
|
||||||
|
def get_instance(args):
|
||||||
|
|
||||||
|
settings = read_settings(args.settings, override=get_config(args))
|
||||||
|
|
||||||
cls = settings.get('PELICAN_CLASS')
|
cls = settings.get('PELICAN_CLASS')
|
||||||
if isinstance(cls, basestring):
|
if isinstance(cls, basestring):
|
||||||
|
|
@ -225,19 +272,17 @@ def get_instance(args):
|
||||||
module = __import__(module)
|
module = __import__(module)
|
||||||
cls = getattr(module, cls_name)
|
cls = getattr(module, cls_name)
|
||||||
|
|
||||||
return cls(settings, args.path, args.theme, args.output, markup,
|
return cls(settings)
|
||||||
args.delete_outputdir)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_arguments()
|
args = parse_arguments()
|
||||||
init(args.verbosity)
|
init(args.verbosity)
|
||||||
# Split the markup languages only if some have been given. Otherwise,
|
|
||||||
# populate the variable with None.
|
|
||||||
pelican = get_instance(args)
|
pelican = get_instance(args)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if args.autoreload:
|
if args.autoreload:
|
||||||
|
files_found_error = True
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# Check source dir for changed files ending with the given
|
# Check source dir for changed files ending with the given
|
||||||
|
|
@ -247,6 +292,8 @@ def main():
|
||||||
# have.
|
# have.
|
||||||
if files_changed(pelican.path, pelican.markup) or \
|
if files_changed(pelican.path, pelican.markup) or \
|
||||||
files_changed(pelican.theme, ['']):
|
files_changed(pelican.theme, ['']):
|
||||||
|
if not files_found_error:
|
||||||
|
files_found_error = True
|
||||||
pelican.run()
|
pelican.run()
|
||||||
|
|
||||||
# reload also if settings.py changed
|
# reload also if settings.py changed
|
||||||
|
|
@ -258,7 +305,19 @@ def main():
|
||||||
|
|
||||||
time.sleep(.5) # sleep to avoid cpu load
|
time.sleep(.5) # sleep to avoid cpu load
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
logger.warning("Keyboard interrupt, quitting.")
|
||||||
break
|
break
|
||||||
|
except NoFilesError:
|
||||||
|
if files_found_error:
|
||||||
|
logger.warning("No valid files found in content. "
|
||||||
|
"Nothing to generate.")
|
||||||
|
files_found_error = False
|
||||||
|
time.sleep(1) # sleep to avoid cpu load
|
||||||
|
except Exception, e:
|
||||||
|
logger.warning(
|
||||||
|
"Caught exception \"{}\". Reloading.".format(e)
|
||||||
|
)
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
pelican.run()
|
pelican.run()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import copy
|
||||||
import locale
|
import locale
|
||||||
import logging
|
import logging
|
||||||
import functools
|
import functools
|
||||||
|
|
@ -10,7 +11,7 @@ from sys import platform, stdin
|
||||||
|
|
||||||
from pelican.settings import _DEFAULT_CONFIG
|
from pelican.settings import _DEFAULT_CONFIG
|
||||||
from pelican.utils import slugify, truncate_html_words
|
from pelican.utils import slugify, truncate_html_words
|
||||||
|
from pelican import signals
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
@ -21,6 +22,7 @@ class Page(object):
|
||||||
:param content: the string to parse, containing the original content.
|
:param content: the string to parse, containing the original content.
|
||||||
"""
|
"""
|
||||||
mandatory_properties = ('title',)
|
mandatory_properties = ('title',)
|
||||||
|
default_template = 'page'
|
||||||
|
|
||||||
def __init__(self, content, metadata=None, settings=None,
|
def __init__(self, content, metadata=None, settings=None,
|
||||||
filename=None):
|
filename=None):
|
||||||
|
|
@ -28,7 +30,7 @@ class Page(object):
|
||||||
if not metadata:
|
if not metadata:
|
||||||
metadata = {}
|
metadata = {}
|
||||||
if not settings:
|
if not settings:
|
||||||
settings = _DEFAULT_CONFIG
|
settings = copy.deepcopy(_DEFAULT_CONFIG)
|
||||||
|
|
||||||
self.settings = settings
|
self.settings = settings
|
||||||
self._content = content
|
self._content = content
|
||||||
|
|
@ -44,6 +46,9 @@ class Page(object):
|
||||||
# also keep track of the metadata attributes available
|
# also keep track of the metadata attributes available
|
||||||
self.metadata = local_metadata
|
self.metadata = local_metadata
|
||||||
|
|
||||||
|
#default template if it's not defined in page
|
||||||
|
self.template = self._get_template()
|
||||||
|
|
||||||
# default author to the one in settings if not defined
|
# default author to the one in settings if not defined
|
||||||
if not hasattr(self, 'author'):
|
if not hasattr(self, 'author'):
|
||||||
if 'AUTHOR' in settings:
|
if 'AUTHOR' in settings:
|
||||||
|
|
@ -101,6 +106,8 @@ class Page(object):
|
||||||
if 'summary' in metadata:
|
if 'summary' in metadata:
|
||||||
self._summary = metadata['summary']
|
self._summary = metadata['summary']
|
||||||
|
|
||||||
|
signals.content_object_init.send(self.__class__, instance=self)
|
||||||
|
|
||||||
def check_properties(self):
|
def check_properties(self):
|
||||||
"""test that each mandatory property is set."""
|
"""test that each mandatory property is set."""
|
||||||
for prop in self.mandatory_properties:
|
for prop in self.mandatory_properties:
|
||||||
|
|
@ -153,9 +160,16 @@ class Page(object):
|
||||||
url = property(functools.partial(get_url_setting, key='url'))
|
url = property(functools.partial(get_url_setting, key='url'))
|
||||||
save_as = property(functools.partial(get_url_setting, key='save_as'))
|
save_as = property(functools.partial(get_url_setting, key='save_as'))
|
||||||
|
|
||||||
|
def _get_template(self):
|
||||||
|
if hasattr(self, 'template') and self.template is not None:
|
||||||
|
return self.template
|
||||||
|
else:
|
||||||
|
return self.default_template
|
||||||
|
|
||||||
|
|
||||||
class Article(Page):
|
class Article(Page):
|
||||||
mandatory_properties = ('title', 'date', 'category')
|
mandatory_properties = ('title', 'date', 'category')
|
||||||
|
default_template = 'article'
|
||||||
|
|
||||||
|
|
||||||
class Quote(Page):
|
class Quote(Page):
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import logging
|
||||||
import datetime
|
import datetime
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
from codecs import open
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
@ -16,7 +17,7 @@ from jinja2.exceptions import TemplateNotFound
|
||||||
|
|
||||||
from pelican.contents import Article, Page, Category, is_valid_content
|
from pelican.contents import Article, Page, Category, is_valid_content
|
||||||
from pelican.readers import read_file
|
from pelican.readers import read_file
|
||||||
from pelican.utils import copy, process_translations, open
|
from pelican.utils import copy, process_translations
|
||||||
from pelican import signals
|
from pelican import signals
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -36,8 +37,11 @@ class Generator(object):
|
||||||
|
|
||||||
# templates cache
|
# templates cache
|
||||||
self._templates = {}
|
self._templates = {}
|
||||||
self._templates_path = os.path.expanduser(
|
self._templates_path = []
|
||||||
os.path.join(self.theme, 'templates'))
|
self._templates_path.append(os.path.expanduser(
|
||||||
|
os.path.join(self.theme, 'templates')))
|
||||||
|
self._templates_path += self.settings.get('EXTRA_TEMPLATES_PATHS', [])
|
||||||
|
|
||||||
|
|
||||||
theme_path = os.path.dirname(os.path.abspath(__file__))
|
theme_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
|
@ -116,6 +120,7 @@ class ArticlesGenerator(Generator):
|
||||||
self.dates = {}
|
self.dates = {}
|
||||||
self.tags = defaultdict(list)
|
self.tags = defaultdict(list)
|
||||||
self.categories = defaultdict(list)
|
self.categories = defaultdict(list)
|
||||||
|
self.related_posts = []
|
||||||
self.authors = defaultdict(list)
|
self.authors = defaultdict(list)
|
||||||
super(ArticlesGenerator, self).__init__(*args, **kwargs)
|
super(ArticlesGenerator, self).__init__(*args, **kwargs)
|
||||||
self.drafts = []
|
self.drafts = []
|
||||||
|
|
@ -123,10 +128,17 @@ class ArticlesGenerator(Generator):
|
||||||
|
|
||||||
def generate_feeds(self, writer):
|
def generate_feeds(self, writer):
|
||||||
"""Generate the feeds from the current context, and output files."""
|
"""Generate the feeds from the current context, and output files."""
|
||||||
|
if self.settings.get('FEED_ATOM') is None \
|
||||||
|
and self.settings.get('FEED_RSS') is None:
|
||||||
|
return
|
||||||
|
elif self.settings.get('SITEURL') is '':
|
||||||
|
logger.warning(
|
||||||
|
'Feeds generated without SITEURL set properly may not be valid'
|
||||||
|
)
|
||||||
|
|
||||||
if self.settings.get('FEED'):
|
if self.settings.get('FEED_ATOM'):
|
||||||
writer.write_feed(self.articles, self.context,
|
writer.write_feed(self.articles, self.context,
|
||||||
self.settings['FEED'])
|
self.settings['FEED_ATOM'])
|
||||||
|
|
||||||
if self.settings.get('FEED_RSS'):
|
if self.settings.get('FEED_RSS'):
|
||||||
writer.write_feed(self.articles, self.context,
|
writer.write_feed(self.articles, self.context,
|
||||||
|
|
@ -134,44 +146,49 @@ class ArticlesGenerator(Generator):
|
||||||
|
|
||||||
for cat, arts in self.categories:
|
for cat, arts in self.categories:
|
||||||
arts.sort(key=attrgetter('date'), reverse=True)
|
arts.sort(key=attrgetter('date'), reverse=True)
|
||||||
if self.settings.get('CATEGORY_FEED'):
|
if self.settings.get('CATEGORY_FEED_ATOM'):
|
||||||
writer.write_feed(arts, self.context,
|
writer.write_feed(arts, self.context,
|
||||||
self.settings['CATEGORY_FEED'] % cat)
|
self.settings['CATEGORY_FEED_ATOM'] % cat)
|
||||||
|
|
||||||
if self.settings.get('CATEGORY_FEED_RSS'):
|
if self.settings.get('CATEGORY_FEED_RSS'):
|
||||||
writer.write_feed(arts, self.context,
|
writer.write_feed(arts, self.context,
|
||||||
self.settings['CATEGORY_FEED_RSS'] % cat,
|
self.settings['CATEGORY_FEED_RSS'] % cat,
|
||||||
feed_type='rss')
|
feed_type='rss')
|
||||||
|
|
||||||
if self.settings.get('TAG_FEED') or self.settings.get('TAG_FEED_RSS'):
|
if self.settings.get('TAG_FEED_ATOM') \
|
||||||
|
or self.settings.get('TAG_FEED_RSS'):
|
||||||
for tag, arts in self.tags.items():
|
for tag, arts in self.tags.items():
|
||||||
arts.sort(key=attrgetter('date'), reverse=True)
|
arts.sort(key=attrgetter('date'), reverse=True)
|
||||||
if self.settings.get('TAG_FEED'):
|
if self.settings.get('TAG_FEED_ATOM'):
|
||||||
writer.write_feed(arts, self.context,
|
writer.write_feed(arts, self.context,
|
||||||
self.settings['TAG_FEED'] % tag)
|
self.settings['TAG_FEED_ATOM'] % tag)
|
||||||
|
|
||||||
if self.settings.get('TAG_FEED_RSS'):
|
if self.settings.get('TAG_FEED_RSS'):
|
||||||
writer.write_feed(arts, self.context,
|
writer.write_feed(arts, self.context,
|
||||||
self.settings['TAG_FEED_RSS'] % tag,
|
self.settings['TAG_FEED_RSS'] % tag,
|
||||||
feed_type='rss')
|
feed_type='rss')
|
||||||
|
|
||||||
if self.settings.get('TRANSLATION_FEED'):
|
if self.settings.get('TRANSLATION_FEED_ATOM') or \
|
||||||
|
self.settings.get('TRANSLATION_FEED_RSS'):
|
||||||
translations_feeds = defaultdict(list)
|
translations_feeds = defaultdict(list)
|
||||||
for article in chain(self.articles, self.translations):
|
for article in chain(self.articles, self.translations):
|
||||||
translations_feeds[article.lang].append(article)
|
translations_feeds[article.lang].append(article)
|
||||||
|
|
||||||
for lang, items in translations_feeds.items():
|
for lang, items in translations_feeds.items():
|
||||||
items.sort(key=attrgetter('date'), reverse=True)
|
items.sort(key=attrgetter('date'), reverse=True)
|
||||||
writer.write_feed(items, self.context,
|
if self.settings.get('TRANSLATION_FEED_ATOM'):
|
||||||
self.settings['TRANSLATION_FEED'] % lang)
|
writer.write_feed(items, self.context,
|
||||||
|
self.settings['TRANSLATION_FEED_ATOM'] % lang)
|
||||||
|
if self.settings.get('TRANSLATION_FEED_RSS'):
|
||||||
|
writer.write_feed(items, self.context,
|
||||||
|
self.settings['TRANSLATION_FEED_RSS'] % lang,
|
||||||
|
feed_type='rss')
|
||||||
|
|
||||||
def generate_articles(self, write):
|
def generate_articles(self, write):
|
||||||
"""Generate the articles."""
|
"""Generate the articles."""
|
||||||
article_template = self.get_template('article')
|
|
||||||
for article in chain(self.translations, self.articles):
|
for article in chain(self.translations, self.articles):
|
||||||
write(article.save_as,
|
write(article.save_as, self.get_template(article.template),
|
||||||
article_template, self.context, article=article,
|
self.context, article=article, category=article.category)
|
||||||
category=article.category)
|
|
||||||
|
|
||||||
def generate_direct_templates(self, write):
|
def generate_direct_templates(self, write):
|
||||||
"""Generate direct templates pages"""
|
"""Generate direct templates pages"""
|
||||||
|
|
@ -183,7 +200,7 @@ class ArticlesGenerator(Generator):
|
||||||
save_as = self.settings.get("%s_SAVE_AS" % template.upper(),
|
save_as = self.settings.get("%s_SAVE_AS" % template.upper(),
|
||||||
'%s.html' % template)
|
'%s.html' % template)
|
||||||
if not save_as:
|
if not save_as:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
write(save_as, self.get_template(template),
|
write(save_as, self.get_template(template),
|
||||||
self.context, blog=True, paginated=paginated,
|
self.context, blog=True, paginated=paginated,
|
||||||
|
|
@ -222,10 +239,10 @@ class ArticlesGenerator(Generator):
|
||||||
|
|
||||||
def generate_drafts(self, write):
|
def generate_drafts(self, write):
|
||||||
"""Generate drafts pages."""
|
"""Generate drafts pages."""
|
||||||
article_template = self.get_template('article')
|
|
||||||
for article in self.drafts:
|
for article in self.drafts:
|
||||||
write('drafts/%s.html' % article.slug, article_template,
|
write('drafts/%s.html' % article.slug,
|
||||||
self.context, article=article, category=article.category)
|
self.get_template(article.template), self.context,
|
||||||
|
article=article, category=article.category)
|
||||||
|
|
||||||
def generate_pages(self, writer):
|
def generate_pages(self, writer):
|
||||||
"""Generate the pages on the disk"""
|
"""Generate the pages on the disk"""
|
||||||
|
|
@ -264,7 +281,7 @@ class ArticlesGenerator(Generator):
|
||||||
if 'category' not in metadata:
|
if 'category' not in metadata:
|
||||||
|
|
||||||
if os.path.dirname(f) == article_path: # if the article is not in a subdirectory
|
if os.path.dirname(f) == article_path: # if the article is not in a subdirectory
|
||||||
category = self.settings['DEFAULT_CATEGORY']
|
category = self.settings['DEFAULT_CATEGORY']
|
||||||
else:
|
else:
|
||||||
category = os.path.basename(os.path.dirname(f))\
|
category = os.path.basename(os.path.dirname(f))\
|
||||||
.decode('utf-8')
|
.decode('utf-8')
|
||||||
|
|
@ -272,9 +289,13 @@ class ArticlesGenerator(Generator):
|
||||||
if category != '':
|
if category != '':
|
||||||
metadata['category'] = Category(category, self.settings)
|
metadata['category'] = Category(category, self.settings)
|
||||||
|
|
||||||
if 'date' not in metadata and self.settings['FALLBACK_ON_FS_DATE']:
|
if 'date' not in metadata and self.settings['DEFAULT_DATE']:
|
||||||
|
if self.settings['DEFAULT_DATE'] == 'fs':
|
||||||
metadata['date'] = datetime.datetime.fromtimestamp(
|
metadata['date'] = datetime.datetime.fromtimestamp(
|
||||||
os.stat(f).st_ctime)
|
os.stat(f).st_ctime)
|
||||||
|
else:
|
||||||
|
metadata['date'] = datetime.datetime(
|
||||||
|
*self.settings['DEFAULT_DATE'])
|
||||||
|
|
||||||
signals.article_generate_context.send(self, metadata=metadata)
|
signals.article_generate_context.send(self, metadata=metadata)
|
||||||
article = Article(content, metadata, settings=self.settings,
|
article = Article(content, metadata, settings=self.settings,
|
||||||
|
|
@ -305,7 +326,7 @@ class ArticlesGenerator(Generator):
|
||||||
self.articles.sort(key=attrgetter('date'), reverse=True)
|
self.articles.sort(key=attrgetter('date'), reverse=True)
|
||||||
self.dates = list(self.articles)
|
self.dates = list(self.articles)
|
||||||
self.dates.sort(key=attrgetter('date'),
|
self.dates.sort(key=attrgetter('date'),
|
||||||
reverse=self.context['REVERSE_ARCHIVE_ORDER'])
|
reverse=self.context['NEWEST_FIRST_ARCHIVES'])
|
||||||
|
|
||||||
# create tag cloud
|
# create tag cloud
|
||||||
tag_cloud = defaultdict(int)
|
tag_cloud = defaultdict(int)
|
||||||
|
|
@ -345,7 +366,9 @@ class ArticlesGenerator(Generator):
|
||||||
self.authors.sort(key=lambda item: item[0].name)
|
self.authors.sort(key=lambda item: item[0].name)
|
||||||
|
|
||||||
self._update_context(('articles', 'dates', 'tags', 'categories',
|
self._update_context(('articles', 'dates', 'tags', 'categories',
|
||||||
'tag_cloud', 'authors'))
|
'tag_cloud', 'authors', 'related_posts'))
|
||||||
|
|
||||||
|
signals.article_generator_finalized.send(self)
|
||||||
|
|
||||||
def generate_output(self, writer):
|
def generate_output(self, writer):
|
||||||
self.generate_feeds(writer)
|
self.generate_feeds(writer)
|
||||||
|
|
@ -357,32 +380,46 @@ class PagesGenerator(Generator):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.pages = []
|
self.pages = []
|
||||||
|
self.hidden_pages = []
|
||||||
|
self.hidden_translations = []
|
||||||
super(PagesGenerator, self).__init__(*args, **kwargs)
|
super(PagesGenerator, self).__init__(*args, **kwargs)
|
||||||
|
signals.pages_generator_init.send(self)
|
||||||
|
|
||||||
def generate_context(self):
|
def generate_context(self):
|
||||||
all_pages = []
|
all_pages = []
|
||||||
|
hidden_pages = []
|
||||||
for f in self.get_files(
|
for f in self.get_files(
|
||||||
os.path.join(self.path, self.settings['PAGE_DIR']),
|
os.path.join(self.path, self.settings['PAGE_DIR']),
|
||||||
exclude=self.settings['PAGE_EXCLUDES']):
|
exclude=self.settings['PAGE_EXCLUDES']):
|
||||||
try:
|
try:
|
||||||
content, metadata = read_file(f)
|
content, metadata = read_file(f, settings=self.settings)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(u'Could not process %s\n%s' % (f, str(e)))
|
logger.warning(u'Could not process %s\n%s' % (f, str(e)))
|
||||||
continue
|
continue
|
||||||
|
signals.pages_generate_context.send(self, metadata=metadata )
|
||||||
page = Page(content, metadata, settings=self.settings,
|
page = Page(content, metadata, settings=self.settings,
|
||||||
filename=f)
|
filename=f)
|
||||||
if not is_valid_content(page, f):
|
if not is_valid_content(page, f):
|
||||||
continue
|
continue
|
||||||
all_pages.append(page)
|
if page.status == "published":
|
||||||
|
all_pages.append(page)
|
||||||
|
elif page.status == "hidden":
|
||||||
|
hidden_pages.append(page)
|
||||||
|
else:
|
||||||
|
logger.warning(u"Unknown status %s for file %s, skipping it." %
|
||||||
|
(repr(unicode.encode(page.status, 'utf-8')),
|
||||||
|
repr(f)))
|
||||||
|
|
||||||
self.pages, self.translations = process_translations(all_pages)
|
self.pages, self.translations = process_translations(all_pages)
|
||||||
|
self.hidden_pages, self.hidden_translations = process_translations(hidden_pages)
|
||||||
|
|
||||||
self._update_context(('pages', ))
|
self._update_context(('pages', ))
|
||||||
self.context['PAGES'] = self.pages
|
self.context['PAGES'] = self.pages
|
||||||
|
|
||||||
def generate_output(self, writer):
|
def generate_output(self, writer):
|
||||||
for page in chain(self.translations, self.pages):
|
for page in chain(self.translations, self.pages,
|
||||||
writer.write_file(page.save_as, self.get_template('page'),
|
self.hidden_translations, self.hidden_pages):
|
||||||
|
writer.write_file(page.save_as, self.get_template(page.template),
|
||||||
self.context, page=page,
|
self.context, page=page,
|
||||||
relative_urls=self.settings.get('RELATIVE_URLS'))
|
relative_urls=self.settings.get('RELATIVE_URLS'))
|
||||||
|
|
||||||
|
|
@ -406,7 +443,23 @@ class StaticGenerator(Generator):
|
||||||
# Define the assets environment that will be passed to the
|
# Define the assets environment that will be passed to the
|
||||||
# generators. The StaticGenerator must then be run first to have
|
# generators. The StaticGenerator must then be run first to have
|
||||||
# the assets in the output_path before generating the templates.
|
# the assets in the output_path before generating the templates.
|
||||||
assets_url = self.settings['SITEURL'] + '/theme/'
|
|
||||||
|
# Let ASSET_URL honor Pelican's RELATIVE_URLS setting.
|
||||||
|
# Hint for templates:
|
||||||
|
# Current version of webassets seem to remove any relative
|
||||||
|
# paths at the beginning of the URL. So, if RELATIVE_URLS
|
||||||
|
# is on, ASSET_URL will start with 'theme/', regardless if we
|
||||||
|
# set assets_url here to './theme/' or to 'theme/'.
|
||||||
|
# XXX However, this breaks the ASSET_URL if user navigates to
|
||||||
|
# a sub-URL, e.g. if he clicks on a category. To workaround this
|
||||||
|
# issue, I use
|
||||||
|
# <link rel="stylesheet" href="{{ SITEURL }}/{{ ASSET_URL }}">
|
||||||
|
# instead of
|
||||||
|
# <link rel="stylesheet" href="{{ ASSET_URL }}">
|
||||||
|
if self.settings.get('RELATIVE_URLS'):
|
||||||
|
assets_url = './theme/'
|
||||||
|
else:
|
||||||
|
assets_url = self.settings['SITEURL'] + '/theme/'
|
||||||
assets_src = os.path.join(self.output_path, 'theme')
|
assets_src = os.path.join(self.output_path, 'theme')
|
||||||
self.assets_env = AssetsEnvironment(assets_src, assets_url)
|
self.assets_env = AssetsEnvironment(assets_src, assets_url)
|
||||||
|
|
||||||
|
|
@ -430,13 +483,20 @@ class PdfGenerator(Generator):
|
||||||
"""Generate PDFs on the output dir, for all articles and pages coming from
|
"""Generate PDFs on the output dir, for all articles and pages coming from
|
||||||
rst"""
|
rst"""
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(PdfGenerator, self).__init__(*args, **kwargs)
|
||||||
try:
|
try:
|
||||||
from rst2pdf.createpdf import RstToPdf
|
from rst2pdf.createpdf import RstToPdf
|
||||||
|
pdf_style_path = os.path.join(self.settings['PDF_STYLE_PATH']) \
|
||||||
|
if 'PDF_STYLE_PATH' in self.settings.keys() \
|
||||||
|
else ''
|
||||||
|
pdf_style = self.settings['PDF_STYLE'] if 'PDF_STYLE' \
|
||||||
|
in self.settings.keys() \
|
||||||
|
else 'twelvepoint'
|
||||||
self.pdfcreator = RstToPdf(breakside=0,
|
self.pdfcreator = RstToPdf(breakside=0,
|
||||||
stylesheets=['twelvepoint'])
|
stylesheets=[pdf_style],
|
||||||
|
style_path=[pdf_style_path])
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise Exception("unable to find rst2pdf")
|
raise Exception("unable to find rst2pdf")
|
||||||
super(PdfGenerator, self).__init__(*args, **kwargs)
|
|
||||||
|
|
||||||
def _create_pdf(self, obj, output_path):
|
def _create_pdf(self, obj, output_path):
|
||||||
if obj.filename.endswith(".rst"):
|
if obj.filename.endswith(".rst"):
|
||||||
|
|
@ -444,7 +504,7 @@ class PdfGenerator(Generator):
|
||||||
output_pdf = os.path.join(output_path, filename)
|
output_pdf = os.path.join(output_path, filename)
|
||||||
# print "Generating pdf for", obj.filename, " in ", output_pdf
|
# print "Generating pdf for", obj.filename, " in ", output_pdf
|
||||||
with open(obj.filename) as f:
|
with open(obj.filename) as f:
|
||||||
self.pdfcreator.createPdf(text=f, output=output_pdf)
|
self.pdfcreator.createPdf(text=f.read(), output=output_pdf)
|
||||||
logger.info(u' [ok] writing %s' % output_pdf)
|
logger.info(u' [ok] writing %s' % output_pdf)
|
||||||
|
|
||||||
def generate_context(self):
|
def generate_context(self):
|
||||||
|
|
@ -468,6 +528,19 @@ class PdfGenerator(Generator):
|
||||||
for page in self.context['pages']:
|
for page in self.context['pages']:
|
||||||
self._create_pdf(page, pdf_path)
|
self._create_pdf(page, pdf_path)
|
||||||
|
|
||||||
|
class SourceFileGenerator(Generator):
|
||||||
|
def generate_context(self):
|
||||||
|
self.output_extension = self.settings['OUTPUT_SOURCES_EXTENSION']
|
||||||
|
|
||||||
|
def _create_source(self, obj, output_path):
|
||||||
|
filename = os.path.splitext(obj.save_as)[0]
|
||||||
|
dest = os.path.join(output_path, filename + self.output_extension)
|
||||||
|
copy('', obj.filename, dest)
|
||||||
|
|
||||||
|
def generate_output(self, writer=None):
|
||||||
|
logger.info(u' Generating source files...')
|
||||||
|
for object in chain(self.context['articles'], self.context['pages']):
|
||||||
|
self._create_source(object, self.output_path)
|
||||||
|
|
||||||
class LessCSSGenerator(Generator):
|
class LessCSSGenerator(Generator):
|
||||||
"""Compile less css files."""
|
"""Compile less css files."""
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,14 @@ from pelican import signals
|
||||||
License plugin for Pelican
|
License plugin for Pelican
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
Simply add license variable in article's context, which contain
|
This plugin allows you to define a LICENSE setting and adds the contents of that
|
||||||
the license text.
|
license variable to the article's context, making that variable available to use
|
||||||
|
from within your theme's templates.
|
||||||
|
|
||||||
Settings:
|
Settings:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Add LICENSE to your settings file to define default license.
|
Define LICENSE in your settings file with the contents of your default license.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,20 +5,22 @@ from pelican import signals
|
||||||
Gravatar plugin for Pelican
|
Gravatar plugin for Pelican
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
Simply add author_gravatar variable in article's context, which contains
|
This plugin assigns the ``author_gravatar`` variable to the Gravatar URL and
|
||||||
the gravatar url.
|
makes the variable available within the article's context.
|
||||||
|
|
||||||
Settings:
|
Settings:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Add AUTHOR_EMAIL to your settings file to define default author email.
|
Add AUTHOR_EMAIL to your settings file to define the default author's email
|
||||||
|
address. Obviously, that email address must be associated with a Gravatar
|
||||||
|
account.
|
||||||
|
|
||||||
Article metadata:
|
Article metadata:
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
:email: article's author email
|
:email: article's author email
|
||||||
|
|
||||||
If one of them are defined, the author_gravatar variable is added to
|
If one of them are defined, the author_gravatar variable is added to the
|
||||||
article's context.
|
article's context.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
59
pelican/plugins/multi_part.py
Normal file
59
pelican/plugins/multi_part.py
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Copyright (c) FELD Boris <lothiraldan@gmail.com>
|
||||||
|
|
||||||
|
Multiple part support
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Create a navigation menu for multi-part related_posts
|
||||||
|
|
||||||
|
Article metadata:
|
||||||
|
------------------
|
||||||
|
|
||||||
|
:parts: a unique identifier for multi-part posts, must be the same in each
|
||||||
|
post part.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
{% if article.metadata.parts_articles %}
|
||||||
|
<ol>
|
||||||
|
{% for part_article in article.metadata.parts_articles %}
|
||||||
|
{% if part_article == article %}
|
||||||
|
<li>
|
||||||
|
<a href='{{ SITEURL }}/{{ part_article.url }}'><b>{{ part_article.title }}</b>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% else %}
|
||||||
|
<li>
|
||||||
|
<a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ol>
|
||||||
|
{% endif %}
|
||||||
|
"""
|
||||||
|
from collections import defaultdict
|
||||||
|
|
||||||
|
from pelican import signals
|
||||||
|
|
||||||
|
|
||||||
|
def aggregate_multi_part(generator):
|
||||||
|
multi_part = defaultdict(list)
|
||||||
|
|
||||||
|
for article in generator.articles:
|
||||||
|
if 'parts' in article.metadata:
|
||||||
|
multi_part[article.metadata['parts']].append(article)
|
||||||
|
|
||||||
|
for part_id in multi_part:
|
||||||
|
parts = multi_part[part_id]
|
||||||
|
|
||||||
|
# Sort by date
|
||||||
|
parts.sort(key=lambda x: x.metadata['date'])
|
||||||
|
|
||||||
|
for article in parts:
|
||||||
|
article.metadata['parts_articles'] = parts
|
||||||
|
|
||||||
|
|
||||||
|
def register():
|
||||||
|
signals.article_generator_finalized.connect(aggregate_multi_part)
|
||||||
52
pelican/plugins/related_posts.py
Normal file
52
pelican/plugins/related_posts.py
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
from pelican import signals
|
||||||
|
|
||||||
|
"""
|
||||||
|
Related posts plugin for Pelican
|
||||||
|
================================
|
||||||
|
|
||||||
|
Adds related_posts variable to article's context
|
||||||
|
|
||||||
|
Settings
|
||||||
|
--------
|
||||||
|
To enable, add
|
||||||
|
|
||||||
|
from pelican.plugins import related_posts
|
||||||
|
PLUGINS = [related_posts]
|
||||||
|
|
||||||
|
to your settings.py.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
{% if article.related_posts %}
|
||||||
|
<ul>
|
||||||
|
{% for related_post in article.related_posts %}
|
||||||
|
<li>{{ related_post }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
related_posts = []
|
||||||
|
|
||||||
|
|
||||||
|
def add_related_posts(generator, metadata):
|
||||||
|
if 'tags' in metadata:
|
||||||
|
for tag in metadata['tags']:
|
||||||
|
#print tag
|
||||||
|
for related_article in generator.tags[tag]:
|
||||||
|
related_posts.append(related_article)
|
||||||
|
|
||||||
|
if len(related_posts) < 1:
|
||||||
|
return
|
||||||
|
|
||||||
|
relation_score = dict(zip(set(related_posts), map(related_posts.count,
|
||||||
|
set(related_posts))))
|
||||||
|
ranked_related = sorted(relation_score, key=relation_score.get)
|
||||||
|
|
||||||
|
metadata["related_posts"] = ranked_related[:5]
|
||||||
|
|
||||||
|
|
||||||
|
def register():
|
||||||
|
signals.article_generate_context.connect(add_related_posts)
|
||||||
190
pelican/plugins/sitemap.py
Normal file
190
pelican/plugins/sitemap.py
Normal file
|
|
@ -0,0 +1,190 @@
|
||||||
|
import collections
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
|
from logging import warning, info
|
||||||
|
from codecs import open
|
||||||
|
|
||||||
|
from pelican import signals, contents
|
||||||
|
|
||||||
|
TXT_HEADER = u"""{0}/index.html
|
||||||
|
{0}/archives.html
|
||||||
|
{0}/tags.html
|
||||||
|
{0}/categories.html
|
||||||
|
"""
|
||||||
|
|
||||||
|
XML_HEADER = u"""<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
|
||||||
|
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
"""
|
||||||
|
|
||||||
|
XML_URL = u"""
|
||||||
|
<url>
|
||||||
|
<loc>{0}/{1}</loc>
|
||||||
|
<lastmod>{2}</lastmod>
|
||||||
|
<changefreq>{3}</changefreq>
|
||||||
|
<priority>{4}</priority>
|
||||||
|
</url>
|
||||||
|
"""
|
||||||
|
|
||||||
|
XML_FOOTER = u"""
|
||||||
|
</urlset>
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def format_date(date):
|
||||||
|
if date.tzinfo:
|
||||||
|
tz = date.strftime('%s')
|
||||||
|
tz = tz[:-2] + ':' + tz[-2:]
|
||||||
|
else:
|
||||||
|
tz = "-00:00"
|
||||||
|
return date.strftime("%Y-%m-%dT%H:%M:%S") + tz
|
||||||
|
|
||||||
|
|
||||||
|
class SitemapGenerator(object):
|
||||||
|
|
||||||
|
def __init__(self, context, settings, path, theme, output_path, *null):
|
||||||
|
|
||||||
|
self.output_path = output_path
|
||||||
|
self.context = context
|
||||||
|
self.now = datetime.now()
|
||||||
|
self.siteurl = settings.get('SITEURL')
|
||||||
|
|
||||||
|
self.format = 'xml'
|
||||||
|
|
||||||
|
self.changefreqs = {
|
||||||
|
'articles': 'monthly',
|
||||||
|
'indexes': 'daily',
|
||||||
|
'pages': 'monthly'
|
||||||
|
}
|
||||||
|
|
||||||
|
self.priorities = {
|
||||||
|
'articles': 0.5,
|
||||||
|
'indexes': 0.5,
|
||||||
|
'pages': 0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
config = settings.get('SITEMAP', {})
|
||||||
|
|
||||||
|
if not isinstance(config, dict):
|
||||||
|
warning("sitemap plugin: the SITEMAP setting must be a dict")
|
||||||
|
else:
|
||||||
|
fmt = config.get('format')
|
||||||
|
pris = config.get('priorities')
|
||||||
|
chfreqs = config.get('changefreqs')
|
||||||
|
|
||||||
|
if fmt not in ('xml', 'txt'):
|
||||||
|
warning("sitemap plugin: SITEMAP['format'] must be `txt' or `xml'")
|
||||||
|
warning("sitemap plugin: Setting SITEMAP['format'] on `xml'")
|
||||||
|
elif fmt == 'txt':
|
||||||
|
self.format = fmt
|
||||||
|
return
|
||||||
|
|
||||||
|
valid_keys = ('articles', 'indexes', 'pages')
|
||||||
|
valid_chfreqs = ('always', 'hourly', 'daily', 'weekly', 'monthly',
|
||||||
|
'yearly', 'never')
|
||||||
|
|
||||||
|
if isinstance(pris, dict):
|
||||||
|
for k, v in pris.iteritems():
|
||||||
|
if k in valid_keys and not isinstance(v, (int, float)):
|
||||||
|
default = self.priorities[k]
|
||||||
|
warning("sitemap plugin: priorities must be numbers")
|
||||||
|
warning("sitemap plugin: setting SITEMAP['priorities']"
|
||||||
|
"['{0}'] on {1}".format(k, default))
|
||||||
|
pris[k] = default
|
||||||
|
self.priorities.update(pris)
|
||||||
|
elif pris is not None:
|
||||||
|
warning("sitemap plugin: SITEMAP['priorities'] must be a dict")
|
||||||
|
warning("sitemap plugin: using the default values")
|
||||||
|
|
||||||
|
if isinstance(chfreqs, dict):
|
||||||
|
for k, v in chfreqs.iteritems():
|
||||||
|
if k in valid_keys and v not in valid_chfreqs:
|
||||||
|
default = self.changefreqs[k]
|
||||||
|
warning("sitemap plugin: invalid changefreq `{0}'".format(v))
|
||||||
|
warning("sitemap plugin: setting SITEMAP['changefreqs']"
|
||||||
|
"['{0}'] on '{1}'".format(k, default))
|
||||||
|
chfreqs[k] = default
|
||||||
|
self.changefreqs.update(chfreqs)
|
||||||
|
elif chfreqs is not None:
|
||||||
|
warning("sitemap plugin: SITEMAP['changefreqs'] must be a dict")
|
||||||
|
warning("sitemap plugin: using the default values")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def write_url(self, page, fd):
|
||||||
|
|
||||||
|
if getattr(page, 'status', 'published') != 'published':
|
||||||
|
return
|
||||||
|
|
||||||
|
page_path = os.path.join(self.output_path, page.url)
|
||||||
|
if not os.path.exists(page_path):
|
||||||
|
return
|
||||||
|
|
||||||
|
lastmod = format_date(getattr(page, 'date', self.now))
|
||||||
|
|
||||||
|
if isinstance(page, contents.Article):
|
||||||
|
pri = self.priorities['articles']
|
||||||
|
chfreq = self.changefreqs['articles']
|
||||||
|
elif isinstance(page, contents.Page):
|
||||||
|
pri = self.priorities['pages']
|
||||||
|
chfreq = self.changefreqs['pages']
|
||||||
|
else:
|
||||||
|
pri = self.priorities['indexes']
|
||||||
|
chfreq = self.changefreqs['indexes']
|
||||||
|
|
||||||
|
|
||||||
|
if self.format == 'xml':
|
||||||
|
fd.write(XML_URL.format(self.siteurl, page.url, lastmod, chfreq, pri))
|
||||||
|
else:
|
||||||
|
fd.write(self.siteurl + '/' + loc + '\n')
|
||||||
|
|
||||||
|
|
||||||
|
def generate_output(self, writer):
|
||||||
|
path = os.path.join(self.output_path, 'sitemap.{0}'.format(self.format))
|
||||||
|
|
||||||
|
pages = self.context['pages'] + self.context['articles'] \
|
||||||
|
+ [ c for (c, a) in self.context['categories']] \
|
||||||
|
+ [ t for (t, a) in self.context['tags']] \
|
||||||
|
+ [ a for (a, b) in self.context['authors']]
|
||||||
|
|
||||||
|
for article in self.context['articles']:
|
||||||
|
pages += article.translations
|
||||||
|
|
||||||
|
info('writing {0}'.format(path))
|
||||||
|
|
||||||
|
with open(path, 'w', encoding='utf-8') as fd:
|
||||||
|
|
||||||
|
if self.format == 'xml':
|
||||||
|
fd.write(XML_HEADER)
|
||||||
|
else:
|
||||||
|
fd.write(TXT_HEADER.format(self.siteurl))
|
||||||
|
|
||||||
|
FakePage = collections.namedtuple('FakePage',
|
||||||
|
['status',
|
||||||
|
'date',
|
||||||
|
'url'])
|
||||||
|
|
||||||
|
for standard_page_url in ['index.html',
|
||||||
|
'archives.html',
|
||||||
|
'tags.html',
|
||||||
|
'categories.html']:
|
||||||
|
fake = FakePage(status='published',
|
||||||
|
date=self.now,
|
||||||
|
url=standard_page_url)
|
||||||
|
self.write_url(fake, fd)
|
||||||
|
|
||||||
|
for page in pages:
|
||||||
|
self.write_url(page, fd)
|
||||||
|
|
||||||
|
if self.format == 'xml':
|
||||||
|
fd.write(XML_FOOTER)
|
||||||
|
|
||||||
|
|
||||||
|
def get_generators(generators):
|
||||||
|
return SitemapGenerator
|
||||||
|
|
||||||
|
|
||||||
|
def register():
|
||||||
|
signals.get_generators.connect(get_generators)
|
||||||
|
|
@ -16,7 +16,7 @@ except ImportError:
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from pelican.contents import Category, Tag, Author
|
from pelican.contents import Category, Tag, Author
|
||||||
from pelican.utils import get_date, open
|
from pelican.utils import get_date, pelican_open
|
||||||
|
|
||||||
|
|
||||||
_METADATA_PROCESSORS = {
|
_METADATA_PROCESSORS = {
|
||||||
|
|
@ -63,6 +63,18 @@ def render_node_to_html(document, node):
|
||||||
return visitor.astext()
|
return visitor.astext()
|
||||||
|
|
||||||
|
|
||||||
|
class PelicanHTMLTranslator(HTMLTranslator):
|
||||||
|
|
||||||
|
def visit_abbreviation(self, node):
|
||||||
|
attrs = {}
|
||||||
|
if node.hasattr('explanation'):
|
||||||
|
attrs['title'] = node['explanation']
|
||||||
|
self.body.append(self.starttag(node, 'abbr', '', **attrs))
|
||||||
|
|
||||||
|
def depart_abbreviation(self, node):
|
||||||
|
self.body.append('</abbr>')
|
||||||
|
|
||||||
|
|
||||||
class RstReader(Reader):
|
class RstReader(Reader):
|
||||||
enabled = bool(docutils)
|
enabled = bool(docutils)
|
||||||
file_extensions = ['rst']
|
file_extensions = ['rst']
|
||||||
|
|
@ -90,8 +102,9 @@ class RstReader(Reader):
|
||||||
def _get_publisher(self, filename):
|
def _get_publisher(self, filename):
|
||||||
extra_params = {'initial_header_level': '2'}
|
extra_params = {'initial_header_level': '2'}
|
||||||
pub = docutils.core.Publisher(
|
pub = docutils.core.Publisher(
|
||||||
destination_class=docutils.io.StringOutput)
|
destination_class=docutils.io.StringOutput)
|
||||||
pub.set_components('standalone', 'restructuredtext', 'html')
|
pub.set_components('standalone', 'restructuredtext', 'html')
|
||||||
|
pub.writer.translator_class = PelicanHTMLTranslator
|
||||||
pub.process_programmatic_settings(None, extra_params, None)
|
pub.process_programmatic_settings(None, extra_params, None)
|
||||||
pub.set_source(source_path=filename)
|
pub.set_source(source_path=filename)
|
||||||
pub.publish()
|
pub.publish()
|
||||||
|
|
@ -116,8 +129,13 @@ class MarkdownReader(Reader):
|
||||||
|
|
||||||
def read(self, filename):
|
def read(self, filename):
|
||||||
"""Parse content and metadata of markdown files"""
|
"""Parse content and metadata of markdown files"""
|
||||||
text = open(filename)
|
markdown_extensions = self.settings.get('MARKDOWN_EXTENSIONS', [])
|
||||||
md = Markdown(extensions=set(self.extensions + ['meta']))
|
if isinstance(markdown_extensions, (str, unicode)):
|
||||||
|
markdown_extensions = [m.strip() for m in
|
||||||
|
markdown_extensions.split(',')]
|
||||||
|
text = pelican_open(filename)
|
||||||
|
md = Markdown(extensions=set(
|
||||||
|
self.extensions + markdown_extensions + ['meta']))
|
||||||
content = md.convert(text)
|
content = md.convert(text)
|
||||||
|
|
||||||
metadata = {}
|
metadata = {}
|
||||||
|
|
@ -133,7 +151,7 @@ class HtmlReader(Reader):
|
||||||
|
|
||||||
def read(self, filename):
|
def read(self, filename):
|
||||||
"""Parse content and metadata of (x)HTML files"""
|
"""Parse content and metadata of (x)HTML files"""
|
||||||
with open(filename) as content:
|
with pelican_open(filename) as content:
|
||||||
metadata = {'title': 'unnamed'}
|
metadata = {'title': 'unnamed'}
|
||||||
for i in self._re.findall(content):
|
for i in self._re.findall(content):
|
||||||
key = i.split(':')[0][5:].strip()
|
key = i.split(':')[0][5:].strip()
|
||||||
|
|
@ -172,8 +190,8 @@ def read_file(filename, fmt=None, settings=None):
|
||||||
|
|
||||||
# eventually filter the content with typogrify if asked so
|
# eventually filter the content with typogrify if asked so
|
||||||
if settings and settings['TYPOGRIFY']:
|
if settings and settings['TYPOGRIFY']:
|
||||||
from typogrify import Typogrify
|
from typogrify.filters import typogrify
|
||||||
content = Typogrify.typogrify(content)
|
content = typogrify(content)
|
||||||
metadata['title'] = Typogrify.typogrify(metadata['title'])
|
metadata['title'] = typogrify(metadata['title'])
|
||||||
|
|
||||||
return content, metadata
|
return content, metadata
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from docutils import nodes
|
from docutils import nodes, utils
|
||||||
from docutils.parsers.rst import directives, Directive
|
from docutils.parsers.rst import directives, roles, Directive
|
||||||
from pygments.formatters import HtmlFormatter
|
from pygments.formatters import HtmlFormatter
|
||||||
from pygments import highlight
|
from pygments import highlight
|
||||||
from pygments.lexers import get_lexer_by_name, TextLexer
|
from pygments.lexers import get_lexer_by_name, TextLexer
|
||||||
|
import re
|
||||||
|
|
||||||
INLINESTYLES = False
|
INLINESTYLES = False
|
||||||
DEFAULT = HtmlFormatter(noclasses=INLINESTYLES)
|
DEFAULT = HtmlFormatter(noclasses=INLINESTYLES)
|
||||||
|
|
@ -94,3 +95,18 @@ class YouTube(Directive):
|
||||||
nodes.raw('', '</div>', format='html')]
|
nodes.raw('', '</div>', format='html')]
|
||||||
|
|
||||||
directives.register_directive('youtube', YouTube)
|
directives.register_directive('youtube', YouTube)
|
||||||
|
|
||||||
|
_abbr_re = re.compile('\((.*)\)$')
|
||||||
|
|
||||||
|
class abbreviation(nodes.Inline, nodes.TextElement): pass
|
||||||
|
|
||||||
|
def abbr_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||||
|
text = utils.unescape(text)
|
||||||
|
m = _abbr_re.search(text)
|
||||||
|
if m is None:
|
||||||
|
return [abbreviation(text, text)], []
|
||||||
|
abbr = text[:m.start()].strip()
|
||||||
|
expl = m.group(1)
|
||||||
|
return [abbreviation(abbr, abbr, explanation=expl)], []
|
||||||
|
|
||||||
|
roles.register_local_role('abbr', abbr_role)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import copy
|
||||||
|
import imp
|
||||||
|
import inspect
|
||||||
import os
|
import os
|
||||||
import locale
|
import locale
|
||||||
import logging
|
import logging
|
||||||
|
|
@ -21,18 +24,21 @@ _DEFAULT_CONFIG = {'PATH': '.',
|
||||||
'MARKUP': ('rst', 'md'),
|
'MARKUP': ('rst', 'md'),
|
||||||
'STATIC_PATHS': ['images', ],
|
'STATIC_PATHS': ['images', ],
|
||||||
'THEME_STATIC_PATHS': ['static', ],
|
'THEME_STATIC_PATHS': ['static', ],
|
||||||
'FEED': 'feeds/all.atom.xml',
|
'FEED_ATOM': 'feeds/all.atom.xml',
|
||||||
'CATEGORY_FEED': 'feeds/%s.atom.xml',
|
'CATEGORY_FEED_ATOM': 'feeds/%s.atom.xml',
|
||||||
'TRANSLATION_FEED': 'feeds/all-%s.atom.xml',
|
'TRANSLATION_FEED_ATOM': 'feeds/all-%s.atom.xml',
|
||||||
'FEED_MAX_ITEMS': '',
|
'FEED_MAX_ITEMS': '',
|
||||||
|
'SITEURL': '',
|
||||||
'SITENAME': 'A Pelican Blog',
|
'SITENAME': 'A Pelican Blog',
|
||||||
'DISPLAY_PAGES_ON_MENU': True,
|
'DISPLAY_PAGES_ON_MENU': True,
|
||||||
'PDF_GENERATOR': False,
|
'PDF_GENERATOR': False,
|
||||||
|
'OUTPUT_SOURCES': False,
|
||||||
|
'OUTPUT_SOURCES_EXTENSION': '.text',
|
||||||
'DEFAULT_CATEGORY': 'misc',
|
'DEFAULT_CATEGORY': 'misc',
|
||||||
'FALLBACK_ON_FS_DATE': True,
|
'DEFAULT_DATE': 'fs',
|
||||||
'WITH_FUTURE_DATES': True,
|
'WITH_FUTURE_DATES': True,
|
||||||
'CSS_FILE': 'main.css',
|
'CSS_FILE': 'main.css',
|
||||||
'REVERSE_ARCHIVE_ORDER': False,
|
'NEWEST_FIRST_ARCHIVES': True,
|
||||||
'REVERSE_CATEGORY_ORDER': False,
|
'REVERSE_CATEGORY_ORDER': False,
|
||||||
'DELETE_OUTPUT_DIRECTORY': False,
|
'DELETE_OUTPUT_DIRECTORY': False,
|
||||||
'ARTICLE_URL': '{slug}.html',
|
'ARTICLE_URL': '{slug}.html',
|
||||||
|
|
@ -54,6 +60,7 @@ _DEFAULT_CONFIG = {'PATH': '.',
|
||||||
'TAG_CLOUD_STEPS': 4,
|
'TAG_CLOUD_STEPS': 4,
|
||||||
'TAG_CLOUD_MAX_ITEMS': 100,
|
'TAG_CLOUD_MAX_ITEMS': 100,
|
||||||
'DIRECT_TEMPLATES': ('index', 'tags', 'categories', 'archives'),
|
'DIRECT_TEMPLATES': ('index', 'tags', 'categories', 'archives'),
|
||||||
|
'EXTRA_TEMPLATES_PATHS' : [],
|
||||||
'PAGINATED_DIRECT_TEMPLATES': ('index', ),
|
'PAGINATED_DIRECT_TEMPLATES': ('index', ),
|
||||||
'PELICAN_CLASS': 'pelican.Pelican',
|
'PELICAN_CLASS': 'pelican.Pelican',
|
||||||
'DEFAULT_DATE_FORMAT': '%a %d %B %Y',
|
'DEFAULT_DATE_FORMAT': '%a %d %B %Y',
|
||||||
|
|
@ -71,46 +78,70 @@ _DEFAULT_CONFIG = {'PATH': '.',
|
||||||
'SUMMARY_MAX_LENGTH': 50,
|
'SUMMARY_MAX_LENGTH': 50,
|
||||||
'WEBASSETS': False,
|
'WEBASSETS': False,
|
||||||
'PLUGINS': [],
|
'PLUGINS': [],
|
||||||
|
'MARKDOWN_EXTENSIONS': ['toc', ],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def read_settings(filename=None):
|
def read_settings(filename=None, override=None):
|
||||||
if filename:
|
if filename:
|
||||||
local_settings = get_settings_from_file(filename)
|
local_settings = get_settings_from_file(filename)
|
||||||
|
# Make the paths relative to the settings file
|
||||||
|
for p in ['PATH', 'OUTPUT_PATH', 'THEME']:
|
||||||
|
if p in local_settings and local_settings[p] is not None \
|
||||||
|
and not isabs(local_settings[p]):
|
||||||
|
absp = os.path.abspath(os.path.normpath(os.path.join(
|
||||||
|
os.path.dirname(filename), local_settings[p])))
|
||||||
|
if p != 'THEME' or os.path.exists(p):
|
||||||
|
local_settings[p] = absp
|
||||||
else:
|
else:
|
||||||
local_settings = _DEFAULT_CONFIG
|
local_settings = copy.deepcopy(_DEFAULT_CONFIG)
|
||||||
configured_settings = configure_settings(local_settings, None, filename)
|
|
||||||
return configured_settings
|
if override:
|
||||||
|
local_settings.update(override)
|
||||||
|
|
||||||
|
return configure_settings(local_settings)
|
||||||
|
|
||||||
|
|
||||||
def get_settings_from_file(filename, default_settings=None):
|
def get_settings_from_module(module=None, default_settings=_DEFAULT_CONFIG):
|
||||||
"""Load a Python file into a dictionary.
|
|
||||||
"""
|
"""
|
||||||
if default_settings == None:
|
Load settings from a module, returning a dict.
|
||||||
default_settings = _DEFAULT_CONFIG
|
"""
|
||||||
context = default_settings.copy()
|
|
||||||
if filename:
|
context = copy.deepcopy(default_settings)
|
||||||
tempdict = {}
|
if module is not None:
|
||||||
execfile(filename, tempdict)
|
context.update(
|
||||||
for key in tempdict:
|
(k, v) for k, v in inspect.getmembers(module) if k.isupper())
|
||||||
if key.isupper():
|
|
||||||
context[key] = tempdict[key]
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
def configure_settings(settings, default_settings=None, filename=None):
|
def get_settings_from_file(filename, default_settings=_DEFAULT_CONFIG):
|
||||||
"""Provide optimizations, error checking, and warnings for loaded settings"""
|
"""
|
||||||
if default_settings is None:
|
Load settings from a file path, returning a dict.
|
||||||
default_settings = _DEFAULT_CONFIG
|
|
||||||
|
|
||||||
# Make the paths relative to the settings file
|
"""
|
||||||
if filename:
|
|
||||||
for path in ['PATH', 'OUTPUT_PATH']:
|
name = os.path.basename(filename).rpartition(".")[0]
|
||||||
if path in settings:
|
module = imp.load_source(name, filename)
|
||||||
if settings[path] is not None and not isabs(settings[path]):
|
return get_settings_from_module(module, default_settings=default_settings)
|
||||||
settings[path] = os.path.abspath(os.path.normpath(
|
|
||||||
os.path.join(os.path.dirname(filename), settings[path]))
|
|
||||||
)
|
def configure_settings(settings):
|
||||||
|
"""
|
||||||
|
Provide optimizations, error checking, and warnings for loaded settings
|
||||||
|
"""
|
||||||
|
if not 'PATH' in settings or not os.path.isdir(settings['PATH']):
|
||||||
|
raise Exception('You need to specify a path containing the content'
|
||||||
|
' (see pelican --help for more information)')
|
||||||
|
|
||||||
|
# find the theme in pelican.theme if the given one does not exists
|
||||||
|
if not os.path.isdir(settings['THEME']):
|
||||||
|
theme_path = os.sep.join([os.path.dirname(
|
||||||
|
os.path.abspath(__file__)), "themes/%s" % settings['THEME']])
|
||||||
|
if os.path.exists(theme_path):
|
||||||
|
settings['THEME'] = theme_path
|
||||||
|
else:
|
||||||
|
raise Exception("Impossible to find the theme %s"
|
||||||
|
% settings['THEME'])
|
||||||
|
|
||||||
# if locales is not a list, make it one
|
# if locales is not a list, make it one
|
||||||
locales = settings['LOCALE']
|
locales = settings['LOCALE']
|
||||||
|
|
@ -125,7 +156,7 @@ def configure_settings(settings, default_settings=None, filename=None):
|
||||||
for locale_ in locales:
|
for locale_ in locales:
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, locale_)
|
locale.setlocale(locale.LC_ALL, locale_)
|
||||||
break # break if it is successfull
|
break # break if it is successful
|
||||||
except locale.Error:
|
except locale.Error:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
@ -142,7 +173,7 @@ def configure_settings(settings, default_settings=None, filename=None):
|
||||||
settings['FEED_DOMAIN'] = settings['SITEURL']
|
settings['FEED_DOMAIN'] = settings['SITEURL']
|
||||||
|
|
||||||
# Warn if feeds are generated with both SITEURL & FEED_DOMAIN undefined
|
# Warn if feeds are generated with both SITEURL & FEED_DOMAIN undefined
|
||||||
if (('FEED' in settings) or ('FEED_RSS' in settings)) and (not 'FEED_DOMAIN' in settings):
|
if (('FEED_ATOM' in settings) or ('FEED_RSS' in settings)) and (not 'FEED_DOMAIN' in settings):
|
||||||
logger.warn("Since feed URLs should always be absolute, you should specify "
|
logger.warn("Since feed URLs should always be absolute, you should specify "
|
||||||
"FEED_DOMAIN in your settings. (e.g., 'FEED_DOMAIN = "
|
"FEED_DOMAIN in your settings. (e.g., 'FEED_DOMAIN = "
|
||||||
"http://www.example.com')")
|
"http://www.example.com')")
|
||||||
|
|
@ -161,4 +192,11 @@ def configure_settings(settings, default_settings=None, filename=None):
|
||||||
logger.warn("You must install the webassets module to use WEBASSETS.")
|
logger.warn("You must install the webassets module to use WEBASSETS.")
|
||||||
settings['WEBASSETS'] = False
|
settings['WEBASSETS'] = False
|
||||||
|
|
||||||
|
if 'OUTPUT_SOURCES_EXTENSION' in settings:
|
||||||
|
if not isinstance(settings['OUTPUT_SOURCES_EXTENSION'], str):
|
||||||
|
settings['OUTPUT_SOURCES_EXTENSION'] = _DEFAULT_CONFIG['OUTPUT_SOURCES_EXTENSION']
|
||||||
|
logger.warn("Detected misconfiguration with OUTPUT_SOURCES_EXTENSION."
|
||||||
|
" falling back to the default extension " +
|
||||||
|
_DEFAULT_CONFIG['OUTPUT_SOURCES_EXTENSION'])
|
||||||
|
|
||||||
return settings
|
return settings
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
from blinker import signal
|
from blinker import signal
|
||||||
|
|
||||||
initialized = signal('pelican_initialized')
|
initialized = signal('pelican_initialized')
|
||||||
|
finalized = signal('pelican_finalized')
|
||||||
article_generate_context = signal('article_generate_context')
|
article_generate_context = signal('article_generate_context')
|
||||||
article_generator_init = signal('article_generator_init')
|
article_generator_init = signal('article_generator_init')
|
||||||
|
article_generator_finalized = signal('article_generate_finalized')
|
||||||
|
get_generators = signal('get_generators')
|
||||||
|
pages_generate_context = signal('pages_generate_context')
|
||||||
|
pages_generator_init = signal('pages_generator_init')
|
||||||
|
content_object_init = signal('content_object_init')
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@ p {margin-bottom: 1.143em;}
|
||||||
strong, b {font-weight: bold;}
|
strong, b {font-weight: bold;}
|
||||||
em, i {font-style: italic;}
|
em, i {font-style: italic;}
|
||||||
|
|
||||||
::-moz-selection {background: #F6CF74; color: #fff;}
|
|
||||||
::selection {background: #F6CF74; color: #fff;}
|
|
||||||
|
|
||||||
/* Lists */
|
/* Lists */
|
||||||
ul {
|
ul {
|
||||||
list-style: outside disc;
|
list-style: outside disc;
|
||||||
|
|
@ -100,7 +97,7 @@ dl {margin: 0 0 1.5em 0;}
|
||||||
dt {font-weight: bold;}
|
dt {font-weight: bold;}
|
||||||
dd {margin-left: 1.5em;}
|
dd {margin-left: 1.5em;}
|
||||||
|
|
||||||
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;}
|
pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
|
||||||
|
|
||||||
/* Quotes */
|
/* Quotes */
|
||||||
blockquote {
|
blockquote {
|
||||||
|
|
@ -144,8 +141,8 @@ aside, nav, article, figure {
|
||||||
|
|
||||||
/***** Layout *****/
|
/***** Layout *****/
|
||||||
.body {clear: both; margin: 0 auto; width: 800px;}
|
.body {clear: both; margin: 0 auto; width: 800px;}
|
||||||
img.right figure.right {float: right; margin: 0 0 2em 2em;}
|
img.right, figure.right {float: right; margin: 0 0 2em 2em;}
|
||||||
img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
img.left, figure.left {float: left; margin: 0 2em 2em 0;}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Header
|
Header
|
||||||
|
|
@ -163,7 +160,6 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0 0 .6em .2em;
|
margin: 0 0 .6em .2em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
width: 427px;
|
|
||||||
}
|
}
|
||||||
#banner h1 a:hover, #banner h1 a:active {
|
#banner h1 a:hover, #banner h1 a:active {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
@ -312,7 +308,8 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||||
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
|
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
|
||||||
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
|
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
|
||||||
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
|
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
|
||||||
.social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.org');}
|
.social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.png');}
|
||||||
|
.social a[href*='gittip.com'] {background-image: url('../images/icons/gittip.png');}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
About
|
About
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
.hll {
|
.hll {
|
||||||
background-color:#FFFFCC;
|
background-color:#eee;
|
||||||
}
|
}
|
||||||
.c {
|
.c {
|
||||||
color:#408090;
|
color:#408090;
|
||||||
|
|
|
||||||
BIN
pelican/themes/notmyidea/static/images/icons/gittip.png
Normal file
BIN
pelican/themes/notmyidea/static/images/icons/gittip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 671 B |
|
|
@ -1,11 +1,12 @@
|
||||||
{% if GOOGLE_ANALYTICS %}
|
{% if GOOGLE_ANALYTICS %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
var _gaq = _gaq || [];
|
||||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
_gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS}}']);
|
||||||
|
_gaq.push(['_trackPageview']);
|
||||||
|
(function() {
|
||||||
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
|
||||||
try {
|
|
||||||
var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
|
|
||||||
pageTracker._trackPageview();
|
|
||||||
} catch(err) {}</script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -4,7 +4,9 @@
|
||||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
|
||||||
<link href="{{ FEED_DOMAIN }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
|
{% if FEED_ATOM %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
|
||||||
|
{% endif %}
|
||||||
{% if FEED_RSS %}
|
{% if FEED_RSS %}
|
||||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -56,7 +58,7 @@
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<h2>social</h2>
|
<h2>social</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ FEED_DOMAIN }}/{{ FEED }}" type="application/atom+xml" rel="alternate">atom feed</a></li>
|
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate">atom feed</a></li>
|
||||||
{% if FEED_RSS %}
|
{% if FEED_RSS %}
|
||||||
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate">rss feed</a></li>
|
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate">rss feed</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -71,7 +73,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,24 @@
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
|
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
{% if FEED_ATOM %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
|
||||||
|
{% endif %}
|
||||||
|
{% if FEED_RSS %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||||
|
{% endif %}
|
||||||
|
{% if CATEGORY_FEED_ATOM %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
|
||||||
|
{% endif %}
|
||||||
|
{% if CATEGORY_FEED_RSS %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
|
||||||
|
{% endif %}
|
||||||
|
{% if TAG_FEED_ATOM %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
|
||||||
|
{% endif %}
|
||||||
|
{% if TAG_FEED_RSS %}
|
||||||
|
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
|
||||||
|
{% endif %}
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -29,7 +47,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>,
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
|
||||||
which takes great advantage of <a href="http://python.org">Python</a>.
|
which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
</footer><!-- /#contentinfo -->
|
</footer><!-- /#contentinfo -->
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,8 @@ def build_header(title, date, author, categories, tags):
|
||||||
header = '%s\n%s\n' % (title, '#' * len(title))
|
header = '%s\n%s\n' % (title, '#' * len(title))
|
||||||
if date:
|
if date:
|
||||||
header += ':date: %s\n' % date
|
header += ':date: %s\n' % date
|
||||||
|
if author:
|
||||||
|
header += ':author: %s\n' % author
|
||||||
if categories:
|
if categories:
|
||||||
header += ':category: %s\n' % ', '.join(categories)
|
header += ':category: %s\n' % ', '.join(categories)
|
||||||
if tags:
|
if tags:
|
||||||
|
|
@ -196,6 +198,8 @@ def build_markdown_header(title, date, author, categories, tags):
|
||||||
header = 'Title: %s\n' % title
|
header = 'Title: %s\n' % title
|
||||||
if date:
|
if date:
|
||||||
header += 'Date: %s\n' % date
|
header += 'Date: %s\n' % date
|
||||||
|
if author:
|
||||||
|
header += 'Author: %s\n' % author
|
||||||
if categories:
|
if categories:
|
||||||
header += 'Category: %s\n' % ', '.join(categories)
|
header += 'Category: %s\n' % ', '.join(categories)
|
||||||
if tags:
|
if tags:
|
||||||
|
|
@ -216,7 +220,7 @@ def fields2pelican(fields, out_markup, output_path, dircat=False, strip_raw=Fals
|
||||||
filename = os.path.basename(filename)
|
filename = os.path.basename(filename)
|
||||||
|
|
||||||
# option to put files in directories with categories names
|
# option to put files in directories with categories names
|
||||||
if dircat and (len(categories) == 1):
|
if dircat and (len(categories) > 0):
|
||||||
catname = slugify(categories[0])
|
catname = slugify(categories[0])
|
||||||
out_filename = os.path.join(output_path, catname, filename+ext)
|
out_filename = os.path.join(output_path, catname, filename+ext)
|
||||||
if not os.path.isdir(os.path.join(output_path, catname)):
|
if not os.path.isdir(os.path.join(output_path, catname)):
|
||||||
|
|
@ -233,7 +237,7 @@ def fields2pelican(fields, out_markup, output_path, dircat=False, strip_raw=Fals
|
||||||
# Replace newlines with paragraphs wrapped with <p> so
|
# Replace newlines with paragraphs wrapped with <p> so
|
||||||
# HTML is valid before conversion
|
# HTML is valid before conversion
|
||||||
paragraphs = content.split('\n\n')
|
paragraphs = content.split('\n\n')
|
||||||
paragraphs = [u'<p>{}</p>'.format(p) for p in paragraphs]
|
paragraphs = [u'<p>{0}</p>'.format(p) for p in paragraphs]
|
||||||
new_content = ''.join(paragraphs)
|
new_content = ''.join(paragraphs)
|
||||||
|
|
||||||
fp.write(new_content)
|
fp.write(new_content)
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,13 @@ CONF = {
|
||||||
'ftp_host': 'localhost',
|
'ftp_host': 'localhost',
|
||||||
'ftp_user': 'anonymous',
|
'ftp_user': 'anonymous',
|
||||||
'ftp_target_dir': '/',
|
'ftp_target_dir': '/',
|
||||||
'ssh_host': 'locahost',
|
'ssh_host': 'localhost',
|
||||||
|
'ssh_port': 22,
|
||||||
'ssh_user': 'root',
|
'ssh_user': 'root',
|
||||||
'ssh_target_dir': '/var/www',
|
'ssh_target_dir': '/var/www',
|
||||||
'dropbox_dir' : '~/Dropbox/Public/',
|
'dropbox_dir' : '~/Dropbox/Public/',
|
||||||
'default_pagination' : 10,
|
'default_pagination' : 10,
|
||||||
|
'siteurl': '',
|
||||||
'lang': 'en'
|
'lang': 'en'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,7 +90,7 @@ def ask(question, answer=str, default=None, l=None):
|
||||||
r = default
|
r = default
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print("You must answer `yes' or `no'")
|
print("You must answer 'yes' or 'no'")
|
||||||
return r
|
return r
|
||||||
elif answer == int:
|
elif answer == int:
|
||||||
r = None
|
r = None
|
||||||
|
|
@ -111,12 +113,12 @@ def ask(question, answer=str, default=None, l=None):
|
||||||
print('You must enter an integer')
|
print('You must enter an integer')
|
||||||
return r
|
return r
|
||||||
else:
|
else:
|
||||||
raise NotImplemented('Arguent `answer` must be str, bool or integer')
|
raise NotImplemented('Argument `answer` must be str, bool, or integer')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="A kickstarter for pelican",
|
description="A kickstarter for Pelican",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
parser.add_argument('-p', '--path', default=".",
|
parser.add_argument('-p', '--path', default=".",
|
||||||
help="The path to generate the blog into")
|
help="The path to generate the blog into")
|
||||||
|
|
@ -125,7 +127,7 @@ def main():
|
||||||
parser.add_argument('-a', '--author', metavar="author",
|
parser.add_argument('-a', '--author', metavar="author",
|
||||||
help='Set the author name of the website')
|
help='Set the author name of the website')
|
||||||
parser.add_argument('-l', '--lang', metavar="lang",
|
parser.add_argument('-l', '--lang', metavar="lang",
|
||||||
help='Set the default lang of the website')
|
help='Set the default web site language')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
@ -137,36 +139,45 @@ Please answer the following questions so this script can generate the files need
|
||||||
|
|
||||||
'''.format(v=__version__))
|
'''.format(v=__version__))
|
||||||
|
|
||||||
CONF['basedir'] = os.path.abspath(ask('Where do you want to create your new Web site ?', answer=str, default=args.path))
|
project = os.path.join(os.environ.get('VIRTUAL_ENV', '.'), '.project')
|
||||||
CONF['sitename'] = ask('What will be the title of this Web site ?', answer=str, default=args.title)
|
if os.path.isfile(project):
|
||||||
CONF['author'] = ask('Who will be the author of this Web site ?', answer=str, default=args.author)
|
CONF['basedir'] = open(project, 'r').read().rstrip("\n")
|
||||||
CONF['lang'] = ask('What will be the default language of this Web site ?', str, args.lang or CONF['lang'], 2)
|
print('Using project associated with current virtual environment. Will save to:\n%s\n' % CONF['basedir'])
|
||||||
|
else:
|
||||||
|
CONF['basedir'] = os.path.abspath(ask('Where do you want to create your new web site?', answer=str, default=args.path))
|
||||||
|
|
||||||
CONF['with_pagination'] = ask('Do you want to enable article pagination ?', bool, bool(CONF['default_pagination']))
|
CONF['sitename'] = ask('What will be the title of this web site?', answer=str, default=args.title)
|
||||||
|
CONF['author'] = ask('Who will be the author of this web site?', answer=str, default=args.author)
|
||||||
|
CONF['lang'] = ask('What will be the default language of this web site?', str, args.lang or CONF['lang'], 2)
|
||||||
|
|
||||||
|
if ask('Do you want to specify a URL prefix? e.g., http://example.com ', answer=bool, default=True):
|
||||||
|
CONF['siteurl'] = ask('What is your URL prefix? (see above example; no trailing slash)', str, CONF['siteurl'])
|
||||||
|
|
||||||
|
CONF['with_pagination'] = ask('Do you want to enable article pagination?', bool, bool(CONF['default_pagination']))
|
||||||
|
|
||||||
if CONF['with_pagination']:
|
if CONF['with_pagination']:
|
||||||
CONF['default_pagination'] = ask('So how many articles per page do you want ?', int, CONF['default_pagination'])
|
CONF['default_pagination'] = ask('How many articles per page do you want?', int, CONF['default_pagination'])
|
||||||
else:
|
else:
|
||||||
CONF['default_pagination'] = False
|
CONF['default_pagination'] = False
|
||||||
|
|
||||||
mkfile = ask('Do you want to generate a Makefile to easily manage your website ?', bool, True)
|
mkfile = ask('Do you want to generate a Makefile to easily manage your website?', bool, True)
|
||||||
|
develop = ask('Do you want an auto-reload & simpleHTTP script to assist with theme and site development?', bool, True)
|
||||||
|
|
||||||
if mkfile:
|
if mkfile:
|
||||||
if ask('Do you want to upload your website using FTP ?', answer=bool, default=False):
|
if ask('Do you want to upload your website using FTP?', answer=bool, default=False):
|
||||||
CONF['ftp_host'] = ask('What is the hostname of your FTP server ?', str, CONF['ftp_host'])
|
CONF['ftp_host'] = ask('What is the hostname of your FTP server?', str, CONF['ftp_host'])
|
||||||
CONF['ftp_user'] = ask('What is your username on this server ?', str, CONF['ftp_user'])
|
CONF['ftp_user'] = ask('What is your username on that server?', str, CONF['ftp_user'])
|
||||||
CONF['ftp_target_dir'] = ask('Where do you want to put your website on this server ?', str, CONF['ftp_target_dir'])
|
CONF['ftp_target_dir'] = ask('Where do you want to put your web site on that server?', str, CONF['ftp_target_dir'])
|
||||||
|
if ask('Do you want to upload your website using SSH?', answer=bool, default=False):
|
||||||
if ask('Do you want to upload your website using SSH ?', answer=bool, default=False):
|
CONF['ssh_host'] = ask('What is the hostname of your SSH server?', str, CONF['ssh_host'])
|
||||||
CONF['ssh_host'] = ask('What is the hostname of your SSH server ?', str, CONF['ssh_host'])
|
CONF['ssh_port'] = ask('What is the port of your SSH server?', int, CONF['ssh_port'])
|
||||||
CONF['ssh_user'] = ask('What is your username on this server ?', str, CONF['ssh_user'])
|
CONF['ssh_user'] = ask('What is your username on that server?', str, CONF['ssh_user'])
|
||||||
CONF['ssh_target_dir'] = ask('Where do you want to put your website on this server ?', str, CONF['ssh_target_dir'])
|
CONF['ssh_target_dir'] = ask('Where do you want to put your web site on that server?', str, CONF['ssh_target_dir'])
|
||||||
|
if ask('Do you want to upload your website using Dropbox?', answer=bool, default=False):
|
||||||
if ask('Do you want to upload your website using Dropbox ?', answer=bool, default=False):
|
CONF['dropbox_dir'] = ask('Where is your Dropbox directory?', str, CONF['dropbox_dir'])
|
||||||
CONF['dropbox_dir'] = ask('Where is your Dropbox directory ?', str, CONF['dropbox_dir'])
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.makedirs(os.path.join(CONF['basedir'], 'src'))
|
os.makedirs(os.path.join(CONF['basedir'], 'content'))
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
print('Error: {0}'.format(e))
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
|
|
@ -176,8 +187,20 @@ Please answer the following questions so this script can generate the files need
|
||||||
print('Error: {0}'.format(e))
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(CONF['basedir'], 'pelican.conf.py'), 'w') as fd:
|
with open(os.path.join(CONF['basedir'], 'pelicanconf.py'), 'w') as fd:
|
||||||
for line in get_template('pelican.conf.py'):
|
conf_python = dict()
|
||||||
|
for key, value in CONF.iteritems():
|
||||||
|
conf_python[key] = repr(value)
|
||||||
|
for line in get_template('pelicanconf.py'):
|
||||||
|
template = string.Template(line)
|
||||||
|
fd.write(template.safe_substitute(conf_python))
|
||||||
|
fd.close()
|
||||||
|
except OSError, e:
|
||||||
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open(os.path.join(CONF['basedir'], 'publishconf.py'), 'w') as fd:
|
||||||
|
for line in get_template('publishconf.py'):
|
||||||
template = string.Template(line)
|
template = string.Template(line)
|
||||||
fd.write(template.safe_substitute(CONF))
|
fd.write(template.safe_substitute(CONF))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
@ -185,7 +208,6 @@ Please answer the following questions so this script can generate the files need
|
||||||
print('Error: {0}'.format(e))
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
if mkfile:
|
if mkfile:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(CONF['basedir'], 'Makefile'), 'w') as fd:
|
with open(os.path.join(CONF['basedir'], 'Makefile'), 'w') as fd:
|
||||||
for line in get_template('Makefile'):
|
for line in get_template('Makefile'):
|
||||||
|
|
@ -195,4 +217,20 @@ Please answer the following questions so this script can generate the files need
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
print('Error: {0}'.format(e))
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
|
if develop:
|
||||||
|
conf_shell = dict()
|
||||||
|
for key, value in CONF.iteritems():
|
||||||
|
if isinstance(value, basestring) and ' ' in value:
|
||||||
|
value = '"' + value.replace('"', '\\"') + '"'
|
||||||
|
conf_shell[key] = value
|
||||||
|
try:
|
||||||
|
with open(os.path.join(CONF['basedir'], 'develop_server.sh'), 'w') as fd:
|
||||||
|
for line in get_template('develop_server.sh'):
|
||||||
|
template = string.Template(line)
|
||||||
|
fd.write(template.safe_substitute(conf_shell))
|
||||||
|
fd.close()
|
||||||
|
os.chmod((os.path.join(CONF['basedir'], 'develop_server.sh')), 0755)
|
||||||
|
except OSError, e:
|
||||||
|
print('Error: {0}'.format(e))
|
||||||
|
|
||||||
print('Done. Your new project is available at %s' % CONF['basedir'])
|
print('Done. Your new project is available at %s' % CONF['basedir'])
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,11 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
parser.add_argument('-i', '--install', dest='to_install', nargs='+', metavar="theme path",
|
parser.add_argument('-i', '--install', dest='to_install', nargs='+', metavar="theme path",
|
||||||
help='The themes to install ')
|
help='The themes to install')
|
||||||
parser.add_argument('-r', '--remove', dest='to_remove', nargs='+', metavar="theme name",
|
parser.add_argument('-r', '--remove', dest='to_remove', nargs='+', metavar="theme name",
|
||||||
help='The themes to remove')
|
help='The themes to remove')
|
||||||
|
parser.add_argument('-U', '--upgrade', dest='to_upgrade', nargs='+',
|
||||||
|
metavar="theme path", help='The themes to upgrade')
|
||||||
parser.add_argument('-s', '--symlink', dest='to_symlink', nargs='+', metavar="theme path",
|
parser.add_argument('-s', '--symlink', dest='to_symlink', nargs='+', metavar="theme path",
|
||||||
help="Same as `--install', but create a symbolic link instead of copying the theme. Useful for theme development")
|
help="Same as `--install', but create a symbolic link instead of copying the theme. Useful for theme development")
|
||||||
parser.add_argument('-c', '--clean', dest='clean', action="store_true",
|
parser.add_argument('-c', '--clean', dest='clean', action="store_true",
|
||||||
|
|
@ -62,6 +64,9 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
to_install = args.to_install or args.to_upgrade
|
||||||
|
to_sym = args.to_symlink or args.clean
|
||||||
|
|
||||||
|
|
||||||
if args.action:
|
if args.action:
|
||||||
|
|
@ -69,8 +74,7 @@ def main():
|
||||||
list_themes(args.verbose)
|
list_themes(args.verbose)
|
||||||
elif args.action is 'path':
|
elif args.action is 'path':
|
||||||
print(_THEMES_PATH)
|
print(_THEMES_PATH)
|
||||||
elif args.to_install or args.to_remove or args.to_symlink or args.clean:
|
elif to_install or args.to_remove or to_sym:
|
||||||
|
|
||||||
if args.to_remove:
|
if args.to_remove:
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
print('Removing themes...')
|
print('Removing themes...')
|
||||||
|
|
@ -85,6 +89,13 @@ def main():
|
||||||
for i in args.to_install:
|
for i in args.to_install:
|
||||||
install(i, v=args.verbose)
|
install(i, v=args.verbose)
|
||||||
|
|
||||||
|
if args.to_upgrade:
|
||||||
|
if args.verbose:
|
||||||
|
print('Upgrading themes...')
|
||||||
|
|
||||||
|
for i in args.to_upgrade:
|
||||||
|
install(i, v=args.verbose, u=True)
|
||||||
|
|
||||||
if args.to_symlink:
|
if args.to_symlink:
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
print('Linking themes...')
|
print('Linking themes...')
|
||||||
|
|
@ -149,22 +160,38 @@ def remove(theme_name, v=False):
|
||||||
err(target + ' : no such file or directory')
|
err(target + ' : no such file or directory')
|
||||||
|
|
||||||
|
|
||||||
def install(path, v=False):
|
def install(path, v=False, u=False):
|
||||||
"""Installs a theme"""
|
"""Installs a theme"""
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
err(path + ' : no such file or directory')
|
err(path + ' : no such file or directory')
|
||||||
elif not os.path.isdir(path):
|
elif not os.path.isdir(path):
|
||||||
err(path + ' : no a directory')
|
err(path + ' : not a directory')
|
||||||
else:
|
else:
|
||||||
theme_name = os.path.basename(os.path.normpath(path))
|
theme_name = os.path.basename(os.path.normpath(path))
|
||||||
theme_path = os.path.join(_THEMES_PATH, theme_name)
|
theme_path = os.path.join(_THEMES_PATH, theme_name)
|
||||||
if os.path.exists(theme_path):
|
exists = os.path.exists(theme_path)
|
||||||
|
if exists and not u:
|
||||||
err(path + ' : already exists')
|
err(path + ' : already exists')
|
||||||
|
elif exists and u:
|
||||||
|
remove(theme_name, v)
|
||||||
|
install(path, v)
|
||||||
else:
|
else:
|
||||||
if v:
|
if v:
|
||||||
print("Copying `{p}' to `{t}' ...".format(p=path, t=theme_path))
|
print("Copying `{p}' to `{t}' ...".format(p=path, t=theme_path))
|
||||||
try:
|
try:
|
||||||
shutil.copytree(path, theme_path)
|
shutil.copytree(path, theme_path)
|
||||||
|
|
||||||
|
try:
|
||||||
|
if os.name == 'posix':
|
||||||
|
for root, dirs, files in os.walk(theme_path):
|
||||||
|
for d in dirs:
|
||||||
|
dname = os.path.join(root, d)
|
||||||
|
os.chmod(dname, 0755)
|
||||||
|
for f in files:
|
||||||
|
fname = os.path.join(root, f)
|
||||||
|
os.chmod(fname, 0644)
|
||||||
|
except OSError, e:
|
||||||
|
err("Cannot change permissions of files or directory in `{r}':\n{e}".format(r=theme_path, e=str(e)), die=False)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
err("Cannot copy `{p}' to `{t}':\n{e}".format(p=path, t=theme_path, e=str(e)))
|
err("Cannot copy `{p}' to `{t}':\n{e}".format(p=path, t=theme_path, e=str(e)))
|
||||||
|
|
||||||
|
|
@ -174,7 +201,7 @@ def symlink(path, v=False):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
err(path + ' : no such file or directory')
|
err(path + ' : no such file or directory')
|
||||||
elif not os.path.isdir(path):
|
elif not os.path.isdir(path):
|
||||||
err(path + ' : no a directory')
|
err(path + ' : not a directory')
|
||||||
else:
|
else:
|
||||||
theme_name = os.path.basename(os.path.normpath(path))
|
theme_name = os.path.basename(os.path.normpath(path))
|
||||||
theme_path = os.path.join(_THEMES_PATH, theme_name)
|
theme_path = os.path.join(_THEMES_PATH, theme_name)
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,18 @@
|
||||||
PELICAN=$pelican
|
PELICAN=$pelican
|
||||||
PELICANOPTS=$pelicanopts
|
PELICANOPTS=$pelicanopts
|
||||||
|
|
||||||
BASEDIR=$$(PWD)
|
BASEDIR=$$(CURDIR)
|
||||||
INPUTDIR=$$(BASEDIR)/src
|
INPUTDIR=$$(BASEDIR)/content
|
||||||
OUTPUTDIR=$$(BASEDIR)/output
|
OUTPUTDIR=$$(BASEDIR)/output
|
||||||
CONFFILE=$$(BASEDIR)/pelican.conf.py
|
CONFFILE=$$(BASEDIR)/pelicanconf.py
|
||||||
|
PUBLISHCONF=$$(BASEDIR)/publishconf.py
|
||||||
|
|
||||||
FTP_HOST=$ftp_host
|
FTP_HOST=$ftp_host
|
||||||
FTP_USER=$ftp_user
|
FTP_USER=$ftp_user
|
||||||
FTP_TARGET_DIR=$ftp_target_dir
|
FTP_TARGET_DIR=$ftp_target_dir
|
||||||
|
|
||||||
SSH_HOST=$ssh_host
|
SSH_HOST=$ssh_host
|
||||||
|
SSH_PORT=$ssh_port
|
||||||
SSH_USER=$ssh_user
|
SSH_USER=$ssh_user
|
||||||
SSH_TARGET_DIR=$ssh_target_dir
|
SSH_TARGET_DIR=$ssh_target_dir
|
||||||
|
|
||||||
|
|
@ -22,10 +24,15 @@ help:
|
||||||
@echo 'Usage: '
|
@echo 'Usage: '
|
||||||
@echo ' make html (re)generate the web site '
|
@echo ' make html (re)generate the web site '
|
||||||
@echo ' make clean remove the generated files '
|
@echo ' make clean remove the generated files '
|
||||||
@echo ' ftp_upload upload the web site using FTP '
|
@echo ' make regenerate regenerate files upon modification '
|
||||||
@echo ' ssh_upload upload the web site using SSH '
|
@echo ' make publish generate using production settings '
|
||||||
@echo ' dropbox_upload upload the web site using Dropbox '
|
@echo ' make serve serve site at http://localhost:8000'
|
||||||
@echo ' rsync_upload upload the web site using rsync/ssh'
|
@echo ' make devserver start/restart develop_server.sh '
|
||||||
|
@echo ' ssh_upload upload the web site via SSH '
|
||||||
|
@echo ' rsync_upload upload the web site via rsync+ssh '
|
||||||
|
@echo ' dropbox_upload upload the web site via Dropbox '
|
||||||
|
@echo ' ftp_upload upload the web site via FTP '
|
||||||
|
@echo ' github upload the web site via gh-pages '
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -36,23 +43,34 @@ $$(OUTPUTDIR)/%.html:
|
||||||
$$(PELICAN) $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(CONFFILE) $$(PELICANOPTS)
|
$$(PELICAN) $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(CONFFILE) $$(PELICANOPTS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr $$(OUTPUTDIR)
|
find $$(OUTPUTDIR) -mindepth 1 -delete
|
||||||
mkdir $$(OUTPUTDIR)
|
|
||||||
|
|
||||||
dropbox_upload: $$(OUTPUTDIR)/index.html
|
regenerate: clean
|
||||||
|
$$(PELICAN) -r $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(CONFFILE) $$(PELICANOPTS)
|
||||||
|
|
||||||
|
serve:
|
||||||
|
cd $$(OUTPUTDIR) && python -m SimpleHTTPServer
|
||||||
|
|
||||||
|
devserver:
|
||||||
|
$$(BASEDIR)/develop_server.sh restart
|
||||||
|
|
||||||
|
publish:
|
||||||
|
$$(PELICAN) $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(PUBLISHCONF) $$(PELICANOPTS)
|
||||||
|
|
||||||
|
ssh_upload: publish
|
||||||
|
scp -P $$(SSH_PORT) -r $$(OUTPUTDIR)/* $$(SSH_USER)@$$(SSH_HOST):$$(SSH_TARGET_DIR)
|
||||||
|
|
||||||
|
rsync_upload: publish
|
||||||
|
rsync -e "ssh -p $(SSH_PORT)" -P -rvz --delete $(OUTPUTDIR) $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
||||||
|
|
||||||
|
dropbox_upload: publish
|
||||||
cp -r $$(OUTPUTDIR)/* $$(DROPBOX_DIR)
|
cp -r $$(OUTPUTDIR)/* $$(DROPBOX_DIR)
|
||||||
|
|
||||||
ssh_upload: $$(OUTPUTDIR)/index.html
|
ftp_upload: publish
|
||||||
scp -r $$(OUTPUTDIR)/* $$(SSH_USER)@$$(SSH_HOST):$$(SSH_TARGET_DIR)
|
|
||||||
|
|
||||||
rsync_upload: $$(OUTPUTDIR)/index.html
|
|
||||||
rsync -e ssh -P -rvz --delete $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
|
||||||
|
|
||||||
ftp_upload: $$(OUTPUTDIR)/index.html
|
|
||||||
lftp ftp://$$(FTP_USER)@$$(FTP_HOST) -e "mirror -R $$(OUTPUTDIR) $$(FTP_TARGET_DIR) ; quit"
|
lftp ftp://$$(FTP_USER)@$$(FTP_HOST) -e "mirror -R $$(OUTPUTDIR) $$(FTP_TARGET_DIR) ; quit"
|
||||||
|
|
||||||
github: $$(OUTPUTDIR)/index.html
|
github: publish
|
||||||
ghp-import $$(OUTPUTDIR)
|
ghp-import $$(OUTPUTDIR)
|
||||||
git push origin gh-pages
|
git push origin gh-pages
|
||||||
|
|
||||||
.PHONY: html help clean ftp_upload ssh_upload rsync_upload dropbox_upload github
|
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload github
|
||||||
|
|
|
||||||
84
pelican/tools/templates/develop_server.sh.in
Executable file
84
pelican/tools/templates/develop_server.sh.in
Executable file
|
|
@ -0,0 +1,84 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
##
|
||||||
|
# This section should match your Makefile
|
||||||
|
##
|
||||||
|
PELICAN=$pelican
|
||||||
|
PELICANOPTS=$pelicanopts
|
||||||
|
|
||||||
|
BASEDIR=$$(pwd)
|
||||||
|
INPUTDIR=$$BASEDIR/content
|
||||||
|
OUTPUTDIR=$$BASEDIR/output
|
||||||
|
CONFFILE=$$BASEDIR/pelicanconf.py
|
||||||
|
|
||||||
|
###
|
||||||
|
# Don't change stuff below here unless you are sure
|
||||||
|
###
|
||||||
|
|
||||||
|
SRV_PID=$$BASEDIR/srv.pid
|
||||||
|
PELICAN_PID=$$BASEDIR/pelican.pid
|
||||||
|
|
||||||
|
function usage(){
|
||||||
|
echo "usage: $$0 (stop) (start) (restart)"
|
||||||
|
echo "This starts pelican in debug and reload mode and then launches"
|
||||||
|
echo "A SimpleHTTP server to help site development. It doesn't read"
|
||||||
|
echo "your pelican options so you edit any paths in your Makefile"
|
||||||
|
echo "you will need to edit it as well"
|
||||||
|
exit 3
|
||||||
|
}
|
||||||
|
|
||||||
|
function shut_down(){
|
||||||
|
if [[ -f $$SRV_PID ]]; then
|
||||||
|
PID=$$(cat $$SRV_PID)
|
||||||
|
PROCESS=$$(ps -p $$PID | tail -n 1 | awk '{print $$4}')
|
||||||
|
if [[ $$PROCESS == python ]]; then
|
||||||
|
echo "Killing SimpleHTTPServer"
|
||||||
|
kill $$PID
|
||||||
|
else
|
||||||
|
echo "Stale PID, deleting"
|
||||||
|
fi
|
||||||
|
rm $$SRV_PID
|
||||||
|
else
|
||||||
|
echo "SimpleHTTPServer PIDFile not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f $$PELICAN_PID ]]; then
|
||||||
|
PID=$$(cat $$PELICAN_PID)
|
||||||
|
PROCESS=$$(ps -p $$PID | tail -n 1 | awk '{print $$4}')
|
||||||
|
if [[ $$PROCESS != "" ]]; then
|
||||||
|
echo "Killing Pelican"
|
||||||
|
kill $$PID
|
||||||
|
else
|
||||||
|
echo "Stale PID, deleting"
|
||||||
|
fi
|
||||||
|
rm $$PELICAN_PID
|
||||||
|
else
|
||||||
|
echo "Pelican PIDFile not found"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function start_up(){
|
||||||
|
echo "Starting up Pelican and SimpleHTTPServer"
|
||||||
|
shift
|
||||||
|
$$PELICAN --debug --autoreload -r $$INPUTDIR -o $$OUTPUTDIR -s $$CONFFILE $$PELICANOPTS &
|
||||||
|
echo $$! > $$PELICAN_PID
|
||||||
|
cd $$OUTPUTDIR
|
||||||
|
python -m SimpleHTTPServer &
|
||||||
|
echo $$! > $$SRV_PID
|
||||||
|
cd $$BASEDIR
|
||||||
|
sleep 1 && echo 'Pelican and SimpleHTTPServer processes now running in background.'
|
||||||
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
# MAIN
|
||||||
|
###
|
||||||
|
[[ $$# -ne 1 ]] && usage
|
||||||
|
if [[ $$1 == "stop" ]]; then
|
||||||
|
shut_down
|
||||||
|
elif [[ $$1 == "restart" ]]; then
|
||||||
|
shut_down
|
||||||
|
start_up
|
||||||
|
elif [[ $$1 == "start" ]]; then
|
||||||
|
start_up
|
||||||
|
else
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*- #
|
|
||||||
|
|
||||||
AUTHOR = u"$author"
|
|
||||||
SITENAME = u"$sitename"
|
|
||||||
SITEURL = '/'
|
|
||||||
|
|
||||||
TIMEZONE = 'Europe/Paris'
|
|
||||||
|
|
||||||
DEFAULT_LANG='$lang'
|
|
||||||
|
|
||||||
# Blogroll
|
|
||||||
LINKS = (
|
|
||||||
('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
|
|
||||||
('Python.org', 'http://python.org'),
|
|
||||||
('Jinja2', 'http://jinja.pocoo.org'),
|
|
||||||
('You can modify those links in your config file', '#')
|
|
||||||
)
|
|
||||||
|
|
||||||
# Social widget
|
|
||||||
SOCIAL = (
|
|
||||||
('You can add links in your config file', '#'),
|
|
||||||
)
|
|
||||||
|
|
||||||
DEFAULT_PAGINATION = $default_pagination
|
|
||||||
22
pelican/tools/templates/pelicanconf.py.in
Normal file
22
pelican/tools/templates/pelicanconf.py.in
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*- #
|
||||||
|
|
||||||
|
AUTHOR = $author
|
||||||
|
SITENAME = $sitename
|
||||||
|
SITEURL = ''
|
||||||
|
|
||||||
|
TIMEZONE = 'Europe/Paris'
|
||||||
|
|
||||||
|
DEFAULT_LANG = $lang
|
||||||
|
|
||||||
|
# Blogroll
|
||||||
|
LINKS = (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
|
||||||
|
('Python.org', 'http://python.org'),
|
||||||
|
('Jinja2', 'http://jinja.pocoo.org'),
|
||||||
|
('You can modify those links in your config file', '#'),)
|
||||||
|
|
||||||
|
# Social widget
|
||||||
|
SOCIAL = (('You can add links in your config file', '#'),
|
||||||
|
('Another social link', '#'),)
|
||||||
|
|
||||||
|
DEFAULT_PAGINATION = $default_pagination
|
||||||
18
pelican/tools/templates/publishconf.py.in
Normal file
18
pelican/tools/templates/publishconf.py.in
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*- #
|
||||||
|
|
||||||
|
import sys
|
||||||
|
sys.path.append('.')
|
||||||
|
from pelicanconf import *
|
||||||
|
|
||||||
|
SITEURL = '$siteurl'
|
||||||
|
|
||||||
|
DELETE_OUTPUT_DIRECTORY = True
|
||||||
|
|
||||||
|
# Following items are often useful when publishing
|
||||||
|
|
||||||
|
# Uncomment following line for absolute URLs in production:
|
||||||
|
#RELATIVE_URLS = False
|
||||||
|
|
||||||
|
#DISQUS_SITENAME = ""
|
||||||
|
#GOOGLE_ANALYTICS = ""
|
||||||
|
|
@ -6,7 +6,7 @@ import shutil
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from codecs import open as _open
|
from codecs import open
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
from jinja2 import Markup
|
from jinja2 import Markup
|
||||||
|
|
@ -15,6 +15,10 @@ from operator import attrgetter
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class NoFilesError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_date(string):
|
def get_date(string):
|
||||||
"""Return a datetime object from a string.
|
"""Return a datetime object from a string.
|
||||||
|
|
||||||
|
|
@ -34,9 +38,9 @@ def get_date(string):
|
||||||
raise ValueError("'%s' is not a valid date" % string)
|
raise ValueError("'%s' is not a valid date" % string)
|
||||||
|
|
||||||
|
|
||||||
def open(filename):
|
def pelican_open(filename):
|
||||||
"""Open a file and return it's content"""
|
"""Open a file and return it's content"""
|
||||||
return _open(filename, encoding='utf-8').read()
|
return open(filename, encoding='utf-8').read()
|
||||||
|
|
||||||
|
|
||||||
def slugify(value):
|
def slugify(value):
|
||||||
|
|
@ -49,6 +53,8 @@ def slugify(value):
|
||||||
value = Markup(value).striptags()
|
value = Markup(value).striptags()
|
||||||
if type(value) == unicode:
|
if type(value) == unicode:
|
||||||
import unicodedata
|
import unicodedata
|
||||||
|
from unidecode import unidecode
|
||||||
|
value = unicode(unidecode(value))
|
||||||
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
|
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
|
||||||
value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
|
value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
|
||||||
return re.sub('[-\s]+', '-', value)
|
return re.sub('[-\s]+', '-', value)
|
||||||
|
|
@ -86,16 +92,40 @@ def copy(path, source, destination, destination_path=None, overwrite=False):
|
||||||
elif os.path.isfile(source_):
|
elif os.path.isfile(source_):
|
||||||
shutil.copy(source_, destination_)
|
shutil.copy(source_, destination_)
|
||||||
logger.info('copying %s to %s' % (source_, destination_))
|
logger.info('copying %s to %s' % (source_, destination_))
|
||||||
|
else:
|
||||||
|
logger.warning('skipped copy %s to %s' % (source_, destination_))
|
||||||
|
|
||||||
def clean_output_dir(path):
|
def clean_output_dir(path):
|
||||||
"""Remove all the files from the output directory"""
|
"""Remove all the files from the output directory"""
|
||||||
|
|
||||||
|
if not os.path.exists(path):
|
||||||
|
logger.debug("Directory already removed: %s" % path)
|
||||||
|
return
|
||||||
|
|
||||||
|
if not os.path.isdir(path):
|
||||||
|
try:
|
||||||
|
os.remove(path)
|
||||||
|
except Exception, e:
|
||||||
|
logger.error("Unable to delete file %s; %e" % path, e)
|
||||||
|
return
|
||||||
|
|
||||||
# remove all the existing content from the output folder
|
# remove all the existing content from the output folder
|
||||||
try:
|
for filename in os.listdir(path):
|
||||||
shutil.rmtree(path)
|
file = os.path.join(path, filename)
|
||||||
except Exception:
|
if os.path.isdir(file):
|
||||||
pass
|
try:
|
||||||
|
shutil.rmtree(file)
|
||||||
|
logger.debug("Deleted directory %s" % file)
|
||||||
|
except Exception, e:
|
||||||
|
logger.error("Unable to delete directory %s; %e" % file, e)
|
||||||
|
elif os.path.isfile(file) or os.path.islink(file):
|
||||||
|
try:
|
||||||
|
os.remove(file)
|
||||||
|
logger.debug("Deleted file/link %s" % file)
|
||||||
|
except Exception, e:
|
||||||
|
logger.error("Unable to delete file %s; %e" % file, e)
|
||||||
|
else:
|
||||||
|
logger.error("Unable to delete %s, file type unknown" % file)
|
||||||
|
|
||||||
|
|
||||||
def get_relative_path(filename):
|
def get_relative_path(filename):
|
||||||
|
|
@ -227,10 +257,13 @@ def files_changed(path, extensions):
|
||||||
yield os.stat(os.path.join(root, f)).st_mtime
|
yield os.stat(os.path.join(root, f)).st_mtime
|
||||||
|
|
||||||
global LAST_MTIME
|
global LAST_MTIME
|
||||||
mtime = max(file_times(path))
|
try:
|
||||||
if mtime > LAST_MTIME:
|
mtime = max(file_times(path))
|
||||||
LAST_MTIME = mtime
|
if mtime > LAST_MTIME:
|
||||||
return True
|
LAST_MTIME = mtime
|
||||||
|
return True
|
||||||
|
except ValueError:
|
||||||
|
raise NoFilesError("No files with the given extension(s) found.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -148,9 +148,9 @@ class Writer(object):
|
||||||
paginators[key] = Paginator(object_list, len(object_list))
|
paginators[key] = Paginator(object_list, len(object_list))
|
||||||
|
|
||||||
# generated pages, and write
|
# generated pages, and write
|
||||||
|
name_root, ext = os.path.splitext(name)
|
||||||
for page_num in range(paginators.values()[0].num_pages):
|
for page_num in range(paginators.values()[0].num_pages):
|
||||||
paginated_localcontext = localcontext.copy()
|
paginated_localcontext = localcontext.copy()
|
||||||
paginated_name = name
|
|
||||||
for key in paginators.iterkeys():
|
for key in paginators.iterkeys():
|
||||||
paginator = paginators[key]
|
paginator = paginators[key]
|
||||||
page = paginator.page(page_num + 1)
|
page = paginator.page(page_num + 1)
|
||||||
|
|
@ -158,9 +158,10 @@ class Writer(object):
|
||||||
{'%s_paginator' % key: paginator,
|
{'%s_paginator' % key: paginator,
|
||||||
'%s_page' % key: page})
|
'%s_page' % key: page})
|
||||||
if page_num > 0:
|
if page_num > 0:
|
||||||
ext = '.' + paginated_name.rsplit('.')[-1]
|
paginated_name = '%s%s%s' % (
|
||||||
paginated_name = paginated_name.replace(ext,
|
name_root, page_num + 1, ext)
|
||||||
'%s%s' % (page_num + 1, ext))
|
else:
|
||||||
|
paginated_name = name
|
||||||
|
|
||||||
_write_file(template, paginated_localcontext, self.output_path,
|
_write_file(template, paginated_localcontext, self.output_path,
|
||||||
paginated_name)
|
paginated_name)
|
||||||
|
|
|
||||||
9
samples/content/pages/hidden_page.rst
Normal file
9
samples/content/pages/hidden_page.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
This is a test hidden page
|
||||||
|
##########################
|
||||||
|
|
||||||
|
:category: test
|
||||||
|
:status: hidden
|
||||||
|
|
||||||
|
This is great for things like error(404) pages
|
||||||
|
Anyone can see this page but it's not linked to anywhere!
|
||||||
|
|
||||||
|
|
@ -8,8 +8,9 @@ GITHUB_URL = 'http://github.com/ametaireau/'
|
||||||
DISQUS_SITENAME = "blog-notmyidea"
|
DISQUS_SITENAME = "blog-notmyidea"
|
||||||
PDF_GENERATOR = False
|
PDF_GENERATOR = False
|
||||||
REVERSE_CATEGORY_ORDER = True
|
REVERSE_CATEGORY_ORDER = True
|
||||||
LOCALE = ""
|
LOCALE = "C"
|
||||||
DEFAULT_PAGINATION = 4
|
DEFAULT_PAGINATION = 4
|
||||||
|
DEFAULT_DATE = (2012, 03, 02, 14, 01, 01)
|
||||||
|
|
||||||
FEED_RSS = 'feeds/all.rss.xml'
|
FEED_RSS = 'feeds/all.rss.xml'
|
||||||
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
|
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
|
||||||
|
|
|
||||||
46
setup.py
46
setup.py
|
|
@ -1,10 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
requires = ['feedgenerator', 'jinja2', 'pygments', 'docutils', 'pytz', 'blinker']
|
requires = ['feedgenerator', 'jinja2 >= 2.4', 'pygments', 'docutils', 'pytz',
|
||||||
|
'blinker', 'unidecode']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import argparse
|
import argparse # NOQA
|
||||||
except ImportError:
|
except ImportError:
|
||||||
requires.append('argparse')
|
requires.append('argparse')
|
||||||
|
|
||||||
|
|
@ -18,24 +19,27 @@ entry_points = {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "pelican",
|
name="pelican",
|
||||||
version = "3.0",
|
version="3.1",
|
||||||
url = 'http://pelican.notmyidea.org/',
|
url='http://getpelican.com/',
|
||||||
author = 'Alexis Metaireau',
|
author='Alexis Metaireau',
|
||||||
author_email = 'alexis@notmyidea.org',
|
author_email='alexis@notmyidea.org',
|
||||||
description = "A tool to generate a static blog from reStructuredText or Markdown input files.",
|
description="A tool to generate a static blog from reStructuredText or "\
|
||||||
|
"Markdown input files.",
|
||||||
long_description=open('README.rst').read(),
|
long_description=open('README.rst').read(),
|
||||||
packages = ['pelican', 'pelican.tools', 'pelican.plugins'],
|
packages=['pelican', 'pelican.tools', 'pelican.plugins'],
|
||||||
include_package_data = True,
|
include_package_data=True,
|
||||||
install_requires = requires,
|
install_requires=requires,
|
||||||
entry_points = entry_points,
|
entry_points=entry_points,
|
||||||
classifiers = ['Development Status :: 5 - Production/Stable',
|
classifiers=[
|
||||||
'Environment :: Console',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
'Environment :: Console',
|
||||||
'Operating System :: OS Independent',
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||||
'Programming Language :: Python :: 2.6',
|
'Operating System :: OS Independent',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.6',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
],
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
|
],
|
||||||
|
test_suite='tests',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
8
tests/TestPages/bad_page.rst
Normal file
8
tests/TestPages/bad_page.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
This is a test bad page
|
||||||
|
#######################
|
||||||
|
|
||||||
|
:status: invalid
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
|
|
||||||
|
The status here is invalid, the page should not render.
|
||||||
8
tests/TestPages/hidden_page.rst
Normal file
8
tests/TestPages/hidden_page.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
This is a test hidden page
|
||||||
|
##########################
|
||||||
|
|
||||||
|
:status: hidden
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
|
|
||||||
|
This page is hidden
|
||||||
12
tests/TestPages/hidden_page_markdown.md
Normal file
12
tests/TestPages/hidden_page_markdown.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
title: This is a markdown test hidden page
|
||||||
|
status: hidden
|
||||||
|
|
||||||
|
Test Markdown File Header
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Used for pelican test
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
|
|
||||||
|
This page is hidden
|
||||||
11
tests/TestPages/hidden_page_with_template.rst
Normal file
11
tests/TestPages/hidden_page_with_template.rst
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
This is a test hidden page with a custom template
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
:status: hidden
|
||||||
|
:template: custom
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
|
|
||||||
|
This page is hidden
|
||||||
|
|
||||||
|
This page has a custom template to be called when rendered
|
||||||
4
tests/TestPages/page.rst
Normal file
4
tests/TestPages/page.rst
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
This is a test page
|
||||||
|
###################
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
9
tests/TestPages/page_markdown.md
Normal file
9
tests/TestPages/page_markdown.md
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
title: This is a markdown test page
|
||||||
|
|
||||||
|
Test Markdown File Header
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Used for pelican test
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
8
tests/TestPages/page_with_template.rst
Normal file
8
tests/TestPages/page_with_template.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
This is a test page with a preset template
|
||||||
|
##########################################
|
||||||
|
|
||||||
|
:template: custom
|
||||||
|
|
||||||
|
The quick brown fox jumped over the lazy dog's back.
|
||||||
|
|
||||||
|
This article has a custom template to be called when rendered
|
||||||
|
|
@ -2,3 +2,5 @@ Article title
|
||||||
#############
|
#############
|
||||||
|
|
||||||
This is some content. With some stuff to "typogrify".
|
This is some content. With some stuff to "typogrify".
|
||||||
|
|
||||||
|
Now with added support for :abbr:`TLA (three letter acronym)`.
|
||||||
|
|
|
||||||
8
tests/content/article_with_markdown_markup_extensions.md
Normal file
8
tests/content/article_with_markdown_markup_extensions.md
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
Title: Test Markdown extensions
|
||||||
|
|
||||||
|
[TOC]
|
||||||
|
|
||||||
|
## Level1
|
||||||
|
|
||||||
|
### Level2
|
||||||
|
|
||||||
8
tests/content/article_with_template.rst
Normal file
8
tests/content/article_with_template.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
Article with template
|
||||||
|
#####################
|
||||||
|
|
||||||
|
:template: custom
|
||||||
|
|
||||||
|
This article has a custom template to be called when rendered
|
||||||
|
|
||||||
|
This is some content. With some stuff to "typogrify".
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A markdown powered article</title>
|
<title>A markdown powered article</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,30 +33,35 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to A markdown powered article">A markdown powered article</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="a-markdown-powered-article.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to A markdown powered article">A markdown powered article</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2011-04-20T00:00:00">
|
<abbr class="published" title="2011-04-20T00:00:00">
|
||||||
Wed 20 April 2011
|
Wed 20 April 2011
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -62,11 +69,11 @@
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>You're mutually oblivious.</p>
|
<p>You're mutually oblivious.</p>
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -76,7 +83,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog</title>
|
<title>A Pelican Blog</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -47,29 +49,29 @@
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
|
|
||||||
<dt>Fri 15 October 2010</dt>
|
<dt>Wed 29 February 2012</dt>
|
||||||
<dd><a href="unbelievable.html">Unbelievable !</a></dd>
|
<dd><a href="./second-article.html">Second article</a></dd>
|
||||||
|
|
||||||
<dt>Wed 20 October 2010</dt>
|
|
||||||
<dd><a href="oh-yeah.html">Oh yeah !</a></dd>
|
|
||||||
|
|
||||||
<dt>Thu 02 December 2010</dt>
|
|
||||||
<dd><a href="this-is-a-super-article.html">This is a super article !</a></dd>
|
|
||||||
|
|
||||||
<dt>Thu 17 February 2011</dt>
|
|
||||||
<dd><a href="article-1.html">Article 1</a></dd>
|
|
||||||
|
|
||||||
<dt>Thu 17 February 2011</dt>
|
|
||||||
<dd><a href="article-2.html">Article 2</a></dd>
|
|
||||||
|
|
||||||
<dt>Thu 17 February 2011</dt>
|
|
||||||
<dd><a href="article-3.html">Article 3</a></dd>
|
|
||||||
|
|
||||||
<dt>Wed 20 April 2011</dt>
|
<dt>Wed 20 April 2011</dt>
|
||||||
<dd><a href="a-markdown-powered-article.html">A markdown powered article</a></dd>
|
<dd><a href="./a-markdown-powered-article.html">A markdown powered article</a></dd>
|
||||||
|
|
||||||
<dt>Wed 29 February 2012</dt>
|
<dt>Thu 17 February 2011</dt>
|
||||||
<dd><a href="second-article.html">Second article</a></dd>
|
<dd><a href="./article-1.html">Article 1</a></dd>
|
||||||
|
|
||||||
|
<dt>Thu 17 February 2011</dt>
|
||||||
|
<dd><a href="./article-2.html">Article 2</a></dd>
|
||||||
|
|
||||||
|
<dt>Thu 17 February 2011</dt>
|
||||||
|
<dd><a href="./article-3.html">Article 3</a></dd>
|
||||||
|
|
||||||
|
<dt>Thu 02 December 2010</dt>
|
||||||
|
<dd><a href="./this-is-a-super-article.html">This is a super article !</a></dd>
|
||||||
|
|
||||||
|
<dt>Wed 20 October 2010</dt>
|
||||||
|
<dd><a href="./oh-yeah.html">Oh yeah !</a></dd>
|
||||||
|
|
||||||
|
<dt>Fri 15 October 2010</dt>
|
||||||
|
<dd><a href="./unbelievable.html">Unbelievable !</a></dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -81,7 +83,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Article 1</title>
|
<title>Article 1</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,30 +33,35 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Article 1">Article 1</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="article-1.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Article 1">Article 1</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2011-02-17T00:00:00">
|
<abbr class="published" title="2011-02-17T00:00:00">
|
||||||
Thu 17 February 2011
|
Thu 17 February 2011
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -62,12 +69,12 @@
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>Article 1</p>
|
<p>Article 1</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -77,7 +84,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Article 2</title>
|
<title>Article 2</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,30 +33,35 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Article 2">Article 2</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="article-2.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Article 2">Article 2</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2011-02-17T00:00:00">
|
<abbr class="published" title="2011-02-17T00:00:00">
|
||||||
Thu 17 February 2011
|
Thu 17 February 2011
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -62,12 +69,12 @@
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>Article 2</p>
|
<p>Article 2</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -77,7 +84,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Article 3</title>
|
<title>Article 3</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,30 +33,35 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
<li class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Article 3">Article 3</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="article-3.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Article 3">Article 3</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2011-02-17T00:00:00">
|
<abbr class="published" title="2011-02-17T00:00:00">
|
||||||
Thu 17 February 2011
|
Thu 17 February 2011
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -62,12 +69,12 @@
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>Article 3</p>
|
<p>Article 3</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -77,7 +84,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - Alexis Métaireau</title>
|
<title>A Pelican Blog - Alexis Métaireau</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -88,7 +90,6 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -96,7 +97,8 @@ YEAH !</p>
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././this-is-a-super-article.html" rel="bookmark" title="Permalink to This is a super article !">This is a super article !</a></h1>
|
<h1><a href=".././this-is-a-super-article.html" rel="bookmark"
|
||||||
|
title="Permalink to This is a super article !">This is a super article !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -115,18 +117,19 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
Multi-line metadata should be supported
|
<p class="first last">Multi-line metadata should be supported
|
||||||
as well as <strong>inline markup</strong>.
|
as well as <strong>inline markup</strong>.</p>
|
||||||
|
|
||||||
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -139,7 +142,7 @@ as well as <strong>inline markup</strong>.
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>A Pelican Blog - bruno</title>
|
<title>A Pelican Blog - Dummy Author</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,7 +59,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -77,7 +79,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -85,7 +86,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-1.html" rel="bookmark" title="Permalink to Article 1">Article 1</a></h1>
|
<h1><a href=".././article-1.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 1">Article 1</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -96,7 +98,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -112,7 +114,6 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -120,7 +121,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-2.html" rel="bookmark" title="Permalink to Article 2">Article 2</a></h1>
|
<h1><a href=".././article-2.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 2">Article 2</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -131,7 +133,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -147,7 +149,6 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -155,7 +156,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-3.html" rel="bookmark" title="Permalink to Article 3">Article 3</a></h1>
|
<h1><a href=".././article-3.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 3">Article 3</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -166,7 +168,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -182,7 +184,6 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -190,7 +191,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././second-article.html" rel="bookmark" title="Permalink to Second article">Second article</a></h1>
|
<h1><a href=".././second-article.html" rel="bookmark"
|
||||||
|
title="Permalink to Second article">Second article</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -201,10 +203,10 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -222,7 +224,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -230,7 +231,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././unbelievable.html" rel="bookmark" title="Permalink to Unbelievable !">Unbelievable !</a></h1>
|
<h1><a href=".././unbelievable.html" rel="bookmark"
|
||||||
|
title="Permalink to Unbelievable !">Unbelievable !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -241,10 +243,10 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -257,10 +259,10 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -273,7 +275,7 @@ Translations:
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog</title>
|
<title>A Pelican Blog</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -44,13 +46,13 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><a href="category/content.html">content</a></li>
|
<li><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li><a href="category/cat1.html">cat1</a></li>
|
<li><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li><a href="category/bar.html">bar</a></li>
|
<li><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li><a href="category/yeah.html">yeah</a></li>
|
<li><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
@ -61,7 +63,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - bar</title>
|
<title>A Pelican Blog - bar</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li class="active"><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li class="active"><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -85,8 +87,8 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -99,7 +101,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - cat1</title>
|
<title>A Pelican Blog - cat1</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li class="active"><a href=".././category/cat1.html">cat1</a></li>
|
<li class="active"><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,7 +59,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -77,7 +79,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -85,7 +86,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-1.html" rel="bookmark" title="Permalink to Article 1">Article 1</a></h1>
|
<h1><a href=".././article-1.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 1">Article 1</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -96,7 +98,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -112,7 +114,6 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -120,7 +121,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-2.html" rel="bookmark" title="Permalink to Article 2">Article 2</a></h1>
|
<h1><a href=".././article-2.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 2">Article 2</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -131,7 +133,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -147,7 +149,6 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -155,7 +156,8 @@
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././article-3.html" rel="bookmark" title="Permalink to Article 3">Article 3</a></h1>
|
<h1><a href=".././article-3.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 3">Article 3</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -166,7 +168,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
<p>In <a href=".././category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -182,10 +184,10 @@
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -198,7 +200,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="active"><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li class="active"><a href=".././category/content.html">content</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/content.html">content</a>. </p>
|
||||||
|
|
@ -102,7 +102,7 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/content.html">content</a>. </p>
|
||||||
|
|
|
||||||
149
tests/output/basic/category/misc.html
Normal file
149
tests/output/basic/category/misc.html
Normal file
|
|
@ -0,0 +1,149 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>A Pelican Blog - misc</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--[if IE]>
|
||||||
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
||||||
|
<!--[if lte IE 7]>
|
||||||
|
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||||
|
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="index" class="home">
|
||||||
|
|
||||||
|
<header id="banner" class="body">
|
||||||
|
<h1><a href="../.">A Pelican Blog </a></h1>
|
||||||
|
<nav><ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href=".././pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
|
<li class="active"><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
</ul></nav>
|
||||||
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<aside id="featured" class="body">
|
||||||
|
<article>
|
||||||
|
<h1 class="entry-title"><a href=".././second-article.html">Second article</a></h1>
|
||||||
|
<footer class="post-info">
|
||||||
|
<abbr class="published" title="2012-02-29T00:00:00">
|
||||||
|
Wed 29 February 2012
|
||||||
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
|
<address class="vcard author">
|
||||||
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
|
</address>
|
||||||
|
|
||||||
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
Translations:
|
||||||
|
|
||||||
|
<a href=".././second-article-fr.html">fr</a>
|
||||||
|
|
||||||
|
|
||||||
|
</footer><!-- /.post-info --><p>This is some article, in english</p>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</aside><!-- /#featured -->
|
||||||
|
|
||||||
|
<section id="content" class="body">
|
||||||
|
<h1>Other articles</h1>
|
||||||
|
<hr />
|
||||||
|
<ol id="posts-list" class="hfeed">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li><article class="hentry">
|
||||||
|
<header>
|
||||||
|
<h1><a href=".././unbelievable.html" rel="bookmark"
|
||||||
|
title="Permalink to Unbelievable !">Unbelievable !</a></h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
|
<abbr class="published" title="2010-10-15T20:30:00">
|
||||||
|
Fri 15 October 2010
|
||||||
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
|
<address class="vcard author">
|
||||||
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
|
</address>
|
||||||
|
|
||||||
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</footer><!-- /.post-info -->
|
||||||
|
<p>Or completely awesome. Depends the needs.</p>
|
||||||
|
|
||||||
|
<a class="readmore" href=".././unbelievable.html">read more</a>
|
||||||
|
|
||||||
|
</div><!-- /.entry-content -->
|
||||||
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section id="extras" class="body">
|
||||||
|
|
||||||
|
|
||||||
|
</section><!-- /#extras -->
|
||||||
|
|
||||||
|
<footer id="contentinfo" class="body">
|
||||||
|
<address id="about" class="vcard body">
|
||||||
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
|
</address><!-- /#about -->
|
||||||
|
|
||||||
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
</footer><!-- /#contentinfo -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - yeah</title>
|
<title>A Pelican Blog - yeah</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li class="active"><a href=".././category/yeah.html">yeah</a></li>
|
<li class="active"><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -86,8 +88,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -100,7 +102,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A draft article</title>
|
<title>A draft article</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,44 +33,49 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="active"><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li class="active"><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to A draft article">A draft article</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="a-draft-article.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to A draft article">A draft article</a></h1>
|
||||||
<abbr class="published" title="2012-03-02T14:01:01">
|
|
||||||
Fri 02 March 2012
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
|
<abbr class="published" title="2012-09-17T15:02:39.591671">
|
||||||
|
Mon 17 September 2012
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>This is a draft article, it should live under the /drafts/ folder and not be
|
<p>This is a draft article, it should live under the /drafts/ folder and not be
|
||||||
listed anywhere else.</p>
|
listed anywhere else.</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -78,7 +85,7 @@ listed anywhere else.</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/all-en.atom.xml" rel="self"></link><id>../.</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href=".././second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>bruno</name></author><id>.././second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/all-en.atom.xml" rel="self"></link><id>/</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href="/second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2012-02-29:second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>A markdown powered article</title><link href=".././a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>bruno</name></author><id>.././a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href=".././article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-1.html</id><summary type="html"><p>Article 1</p>
|
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>A markdown powered article</title><link href="/a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-04-20:a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href="/article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-1.html</id><summary type="html"><p>Article 1</p>
|
||||||
</summary></entry><entry><title>Article 2</title><link href=".././article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-2.html</id><summary type="html"><p>Article 2</p>
|
</summary></entry><entry><title>Article 2</title><link href="/article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-2.html</id><summary type="html"><p>Article 2</p>
|
||||||
</summary></entry><entry><title>Article 3</title><link href=".././article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-3.html</id><summary type="html"><p>Article 3</p>
|
</summary></entry><entry><title>Article 3</title><link href="/article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-3.html</id><summary type="html"><p>Article 3</p>
|
||||||
</summary></entry><entry><title>This is a super article !</title><link href=".././this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
</summary></entry><entry><title>This is a super article !</title><link href="/this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-12-02:this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
||||||
<div class="section" id="this-is-a-simple-title">
|
<div class="section" id="this-is-a-simple-title">
|
||||||
<h2>This is a simple title</h2>
|
<h2>This is a simple title</h2>
|
||||||
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
||||||
|
|
@ -15,11 +15,11 @@
|
||||||
</pre>
|
</pre>
|
||||||
<p>→ And now try with some utf8 hell: ééé</p>
|
<p>→ And now try with some utf8 hell: ééé</p>
|
||||||
</div>
|
</div>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="foobar"></category></entry><entry><title>Oh yeah !</title><link href=".././oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
</summary><category term="foo"></category><category term="bar"></category><category term="foobar"></category></entry><entry><title>Oh yeah !</title><link href="/oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-10-20:oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
||||||
<h2>Why not ?</h2>
|
<h2>Why not ?</h2>
|
||||||
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||||
YEAH !</p>
|
YEAH !</p>
|
||||||
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
||||||
</div>
|
</div>
|
||||||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href=".././unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>bruno</name></author><id>.././unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
||||||
</summary></entry></feed>
|
</summary></entry></feed>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/all-fr.atom.xml" rel="self"></link><id>../.</id><updated>2012-03-02T14:01:01Z</updated><entry><title>Trop bien !</title><link href=".././oh-yeah-fr.html" rel="alternate"></link><updated>2012-03-02T14:01:01Z</updated><author><name>bruno</name></author><id>.././oh-yeah-fr.html</id><summary type="html"><p>Et voila du contenu en français</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/all-fr.atom.xml" rel="self"></link><id>/</id><updated>2012-09-17T15:02:39Z</updated><entry><title>Trop bien !</title><link href="/oh-yeah-fr.html" rel="alternate"></link><updated>2012-09-17T15:02:39Z</updated><author><name>Dummy Author</name></author><id>tag:,2012-09-17:oh-yeah-fr.html</id><summary type="html"><p>Et voila du contenu en français</p>
|
||||||
</summary></entry><entry><title>Deuxième article</title><link href=".././second-article-fr.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>bruno</name></author><id>.././second-article-fr.html</id><summary type="html"><p>Ceci est un article, en français.</p>
|
</summary></entry><entry><title>Deuxième article</title><link href="/second-article-fr.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2012-02-29:second-article-fr.html</id><summary type="html"><p>Ceci est un article, en français.</p>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry></feed>
|
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry></feed>
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/all.atom.xml" rel="self"></link><id>../.</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href=".././second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>bruno</name></author><id>.././second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/all.atom.xml" rel="self"></link><id>/</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href="/second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2012-02-29:second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>A markdown powered article</title><link href=".././a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>bruno</name></author><id>.././a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href=".././article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-1.html</id><summary type="html"><p>Article 1</p>
|
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>A markdown powered article</title><link href="/a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-04-20:a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href="/article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-1.html</id><summary type="html"><p>Article 1</p>
|
||||||
</summary></entry><entry><title>Article 2</title><link href=".././article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-2.html</id><summary type="html"><p>Article 2</p>
|
</summary></entry><entry><title>Article 2</title><link href="/article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-2.html</id><summary type="html"><p>Article 2</p>
|
||||||
</summary></entry><entry><title>Article 3</title><link href=".././article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-3.html</id><summary type="html"><p>Article 3</p>
|
</summary></entry><entry><title>Article 3</title><link href="/article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-3.html</id><summary type="html"><p>Article 3</p>
|
||||||
</summary></entry><entry><title>This is a super article !</title><link href=".././this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
</summary></entry><entry><title>This is a super article !</title><link href="/this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-12-02:this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
||||||
<div class="section" id="this-is-a-simple-title">
|
<div class="section" id="this-is-a-simple-title">
|
||||||
<h2>This is a simple title</h2>
|
<h2>This is a simple title</h2>
|
||||||
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
||||||
|
|
@ -15,11 +15,11 @@
|
||||||
</pre>
|
</pre>
|
||||||
<p>→ And now try with some utf8 hell: ééé</p>
|
<p>→ And now try with some utf8 hell: ééé</p>
|
||||||
</div>
|
</div>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="foobar"></category></entry><entry><title>Oh yeah !</title><link href=".././oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
</summary><category term="foo"></category><category term="bar"></category><category term="foobar"></category></entry><entry><title>Oh yeah !</title><link href="/oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-10-20:oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
||||||
<h2>Why not ?</h2>
|
<h2>Why not ?</h2>
|
||||||
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||||
YEAH !</p>
|
YEAH !</p>
|
||||||
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
||||||
</div>
|
</div>
|
||||||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href=".././unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>bruno</name></author><id>.././unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
||||||
</summary></entry></feed>
|
</summary></entry></feed>
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/bar.atom.xml" rel="self"></link><id>../.</id><updated>2010-10-20T10:14:00Z</updated><entry><title>Oh yeah !</title><link href=".././oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/bar.atom.xml" rel="self"></link><id>/</id><updated>2010-10-20T10:14:00Z</updated><entry><title>Oh yeah !</title><link href="/oh-yeah.html" rel="alternate"></link><updated>2010-10-20T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-10-20:oh-yeah.html</id><summary type="html"><div class="section" id="why-not">
|
||||||
<h2>Why not ?</h2>
|
<h2>Why not ?</h2>
|
||||||
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||||
YEAH !</p>
|
YEAH !</p>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/cat1.atom.xml" rel="self"></link><id>../.</id><updated>2011-04-20T00:00:00Z</updated><entry><title>A markdown powered article</title><link href=".././a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>bruno</name></author><id>.././a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href=".././article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-1.html</id><summary type="html"><p>Article 1</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/cat1.atom.xml" rel="self"></link><id>/</id><updated>2011-04-20T00:00:00Z</updated><entry><title>A markdown powered article</title><link href="/a-markdown-powered-article.html" rel="alternate"></link><updated>2011-04-20T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-04-20:a-markdown-powered-article.html</id><summary type="html"><p>You're mutually oblivious.</p></summary></entry><entry><title>Article 1</title><link href="/article-1.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-1.html</id><summary type="html"><p>Article 1</p>
|
||||||
</summary></entry><entry><title>Article 2</title><link href=".././article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-2.html</id><summary type="html"><p>Article 2</p>
|
</summary></entry><entry><title>Article 2</title><link href="/article-2.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-2.html</id><summary type="html"><p>Article 2</p>
|
||||||
</summary></entry><entry><title>Article 3</title><link href=".././article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>bruno</name></author><id>.././article-3.html</id><summary type="html"><p>Article 3</p>
|
</summary></entry><entry><title>Article 3</title><link href="/article-3.html" rel="alternate"></link><updated>2011-02-17T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2011-02-17:article-3.html</id><summary type="html"><p>Article 3</p>
|
||||||
</summary></entry></feed>
|
</summary></entry></feed>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/content.atom.xml" rel="self"></link><id>../.</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href=".././second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>bruno</name></author><id>.././second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href=".././" rel="alternate"></link><link href="None/feeds/content.atom.xml" rel="self"></link><id>.././</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href=".././second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:../.,2012-02-29:second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
||||||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>Unbelievable !</title><link href=".././unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>bruno</name></author><id>.././unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>Unbelievable !</title><link href=".././unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>Dummy Author</name></author><id>tag:../.,2010-10-15:unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
||||||
</summary></entry></feed>
|
</summary></entry></feed>
|
||||||
4
tests/output/basic/feeds/misc.atom.xml
Normal file
4
tests/output/basic/feeds/misc.atom.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/misc.atom.xml" rel="self"></link><id>/</id><updated>2012-02-29T00:00:00Z</updated><entry><title>Second article</title><link href="/second-article.html" rel="alternate"></link><updated>2012-02-29T00:00:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2012-02-29:second-article.html</id><summary type="html"><p>This is some article, in english</p>
|
||||||
|
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name>Dummy Author</name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="html"><p>Or completely awesome. Depends the needs.</p>
|
||||||
|
</summary></entry></feed>
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="../." rel="alternate"></link><link href=".././feeds/yeah.atom.xml" rel="self"></link><id>../.</id><updated>2010-12-02T10:14:00Z</updated><entry><title>This is a super article !</title><link href=".././this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>.././this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
<feed xmlns="http://www.w3.org/2005/Atom"><title>A Pelican Blog</title><link href="/" rel="alternate"></link><link href="/feeds/yeah.atom.xml" rel="self"></link><id>/</id><updated>2010-12-02T10:14:00Z</updated><entry><title>This is a super article !</title><link href="/this-is-a-super-article.html" rel="alternate"></link><updated>2010-12-02T10:14:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:,2010-12-02:this-is-a-super-article.html</id><summary type="html"><p>Some content here !</p>
|
||||||
<div class="section" id="this-is-a-simple-title">
|
<div class="section" id="this-is-a-simple-title">
|
||||||
<h2>This is a simple title</h2>
|
<h2>This is a simple title</h2>
|
||||||
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog</title>
|
<title>A Pelican Blog</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,10 +59,10 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/content.html">content</a>. </p>
|
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -83,7 +85,6 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -91,7 +92,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./a-markdown-powered-article.html" rel="bookmark" title="Permalink to A markdown powered article">A markdown powered article</a></h1>
|
<h1><a href="./a-markdown-powered-article.html" rel="bookmark"
|
||||||
|
title="Permalink to A markdown powered article">A markdown powered article</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -102,7 +104,7 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -117,7 +119,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -125,7 +126,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./article-1.html" rel="bookmark" title="Permalink to Article 1">Article 1</a></h1>
|
<h1><a href="./article-1.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 1">Article 1</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -136,7 +138,7 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -152,7 +154,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -160,7 +161,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./article-2.html" rel="bookmark" title="Permalink to Article 2">Article 2</a></h1>
|
<h1><a href="./article-2.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 2">Article 2</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -171,7 +173,7 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -187,7 +189,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -195,7 +196,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./article-3.html" rel="bookmark" title="Permalink to Article 3">Article 3</a></h1>
|
<h1><a href="./article-3.html" rel="bookmark"
|
||||||
|
title="Permalink to Article 3">Article 3</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -206,7 +208,7 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
<p>In <a href="./category/cat1.html">cat1</a>. </p>
|
||||||
|
|
@ -222,7 +224,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -230,7 +231,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./this-is-a-super-article.html" rel="bookmark" title="Permalink to This is a super article !">This is a super article !</a></h1>
|
<h1><a href="./this-is-a-super-article.html" rel="bookmark"
|
||||||
|
title="Permalink to This is a super article !">This is a super article !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -249,15 +251,15 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
Multi-line metadata should be supported
|
<p class="first last">Multi-line metadata should be supported
|
||||||
as well as <strong>inline markup</strong>.
|
as well as <strong>inline markup</strong>.</p>
|
||||||
|
|
||||||
<a class="readmore" href="./this-is-a-super-article.html">read more</a>
|
<a class="readmore" href="./this-is-a-super-article.html">read more</a>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -265,7 +267,8 @@ as well as <strong>inline markup</strong>.
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./oh-yeah.html" rel="bookmark" title="Permalink to Oh yeah !">Oh yeah !</a></h1>
|
<h1><a href="./oh-yeah.html" rel="bookmark"
|
||||||
|
title="Permalink to Oh yeah !">Oh yeah !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -302,7 +305,6 @@ YEAH !</p>
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -310,7 +312,8 @@ YEAH !</p>
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href="./unbelievable.html" rel="bookmark" title="Permalink to Unbelievable !">Unbelievable !</a></h1>
|
<h1><a href="./unbelievable.html" rel="bookmark"
|
||||||
|
title="Permalink to Unbelievable !">Unbelievable !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -321,10 +324,10 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/content.html">content</a>. </p>
|
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -337,10 +340,10 @@ YEAH !</p>
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -353,7 +356,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Trop bien !</title>
|
<title>Trop bien !</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,33 +33,38 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="active"><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li class="active"><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Trop bien !">Trop bien !</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="oh-yeah-fr.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Trop bien !">Trop bien !</a></h1>
|
||||||
<abbr class="published" title="2012-03-02T14:01:01">
|
|
||||||
Fri 02 March 2012
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
|
<abbr class="published" title="2012-09-17T15:02:39.591671">
|
||||||
|
Mon 17 September 2012
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/content.html">content</a>. </p>
|
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -67,12 +74,12 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>Et voila du contenu en français</p>
|
<p>Et voila du contenu en français</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -82,7 +89,7 @@ Translations:
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Oh yeah !</title>
|
<title>Oh yeah !</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,23 +33,28 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href="./category/content.html">content</a></li>
|
<li class="active"><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li class="active"><a href="./category/bar.html">bar</a></li>
|
<li ><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Oh yeah !">Oh yeah !</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="oh-yeah.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Oh yeah !">Oh yeah !</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2010-10-20T10:14:00">
|
<abbr class="published" title="2010-10-20T10:14:00">
|
||||||
Wed 20 October 2010
|
Wed 20 October 2010
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
@ -67,17 +74,17 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<div class="section" id="why-not">
|
<div class="section" id="why-not">
|
||||||
<h2>Why not ?</h2>
|
<h2>Why not ?</h2>
|
||||||
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
|
||||||
YEAH !</p>
|
YEAH !</p>
|
||||||
<img alt="alternate text" src="static/pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
<img alt="alternate text" src="static/pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -87,7 +94,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
72
tests/output/basic/pages/this-is-a-test-hidden-page.html
Normal file
72
tests/output/basic/pages/this-is-a-test-hidden-page.html
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>This is a test hidden page</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--[if IE]>
|
||||||
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
||||||
|
<!--[if lte IE 7]>
|
||||||
|
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||||
|
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="index" class="home">
|
||||||
|
|
||||||
|
<header id="banner" class="body">
|
||||||
|
<h1><a href="../.">A Pelican Blog </a></h1>
|
||||||
|
<nav><ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href=".././pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
</ul></nav>
|
||||||
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
|
<section id="content" class="body">
|
||||||
|
<h1 class="entry-title">This is a test hidden page</h1>
|
||||||
|
|
||||||
|
<p>This is great for things like error(404) pages
|
||||||
|
Anyone can see this page but it's not linked to anywhere!</p>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="extras" class="body">
|
||||||
|
|
||||||
|
|
||||||
|
</section><!-- /#extras -->
|
||||||
|
|
||||||
|
<footer id="contentinfo" class="body">
|
||||||
|
<address id="about" class="vcard body">
|
||||||
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
|
</address><!-- /#about -->
|
||||||
|
|
||||||
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
</footer><!-- /#contentinfo -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>This is a test page</title>
|
<title>This is a test page</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,7 +59,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Deuxième article</title>
|
<title>Deuxième article</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,33 +33,38 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="active"><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li class="active"><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Deuxième article">Deuxième article</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="second-article-fr.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Deuxième article">Deuxième article</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2012-02-29T00:00:00">
|
<abbr class="published" title="2012-02-29T00:00:00">
|
||||||
Wed 29 February 2012
|
Wed 29 February 2012
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/content.html">content</a>. </p>
|
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -67,12 +74,12 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>Ceci est un article, en français.</p>
|
<p>Ceci est un article, en français.</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -82,7 +89,7 @@ Translations:
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>Second article</title>
|
<title>Second article</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,33 +33,38 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="active"><a href="./category/content.html">content</a></li>
|
<li ><a href="./category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/bar.html">bar</a></li>
|
<li class="active"><a href="./category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href="./category/yeah.html">yeah</a></li>
|
<li ><a href="./category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
</ul></nav>
|
</ul></nav>
|
||||||
</header><!-- /#banner -->
|
</header><!-- /#banner -->
|
||||||
|
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h1 class="entry-title"><a href=""
|
<header>
|
||||||
rel="bookmark" title="Permalink to Second article">Second article</a></h1> </header>
|
<h1 class="entry-title">
|
||||||
<div class="entry-content">
|
<a href="second-article.html" rel="bookmark"
|
||||||
<footer class="post-info">
|
title="Permalink to Second article">Second article</a></h1>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<footer class="post-info">
|
||||||
<abbr class="published" title="2012-02-29T00:00:00">
|
<abbr class="published" title="2012-02-29T00:00:00">
|
||||||
Wed 29 February 2012
|
Wed 29 February 2012
|
||||||
</abbr>
|
</abbr>
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href="./author/bruno.html">bruno</a>
|
By <a class="url fn" href="./author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href="./category/content.html">content</a>. </p>
|
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
<p>tags: <a href="./tag/foo.html">foo</a><a href="./tag/bar.html">bar</a><a href="./tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -67,12 +74,12 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
<p>This is some article, in english</p>
|
<p>This is some article, in english</p>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="extras" class="body">
|
<section id="extras" class="body">
|
||||||
|
|
@ -82,7 +89,7 @@ Translations:
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - bar</title>
|
<title>A Pelican Blog - bar</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,10 +59,10 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -83,7 +85,6 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -91,7 +92,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././second-article.html" rel="bookmark" title="Permalink to Second article">Second article</a></h1>
|
<h1><a href=".././second-article.html" rel="bookmark"
|
||||||
|
title="Permalink to Second article">Second article</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -102,10 +104,10 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,7 +125,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -131,7 +132,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././this-is-a-super-article.html" rel="bookmark" title="Permalink to This is a super article !">This is a super article !</a></h1>
|
<h1><a href=".././this-is-a-super-article.html" rel="bookmark"
|
||||||
|
title="Permalink to This is a super article !">This is a super article !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -150,15 +152,15 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
Multi-line metadata should be supported
|
<p class="first last">Multi-line metadata should be supported
|
||||||
as well as <strong>inline markup</strong>.
|
as well as <strong>inline markup</strong>.</p>
|
||||||
|
|
||||||
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -166,7 +168,8 @@ as well as <strong>inline markup</strong>.
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././oh-yeah.html" rel="bookmark" title="Permalink to Oh yeah !">Oh yeah !</a></h1>
|
<h1><a href=".././oh-yeah.html" rel="bookmark"
|
||||||
|
title="Permalink to Oh yeah !">Oh yeah !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -203,10 +206,10 @@ YEAH !</p>
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -219,7 +222,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - baz</title>
|
<title>A Pelican Blog - baz</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,10 +59,10 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -83,7 +85,6 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -91,7 +92,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././second-article.html" rel="bookmark" title="Permalink to Second article">Second article</a></h1>
|
<h1><a href=".././second-article.html" rel="bookmark"
|
||||||
|
title="Permalink to Second article">Second article</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -102,10 +104,10 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,10 +125,10 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -139,7 +141,7 @@ Translations:
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - foo</title>
|
<title>A Pelican Blog - foo</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -57,10 +59,10 @@
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -83,7 +85,6 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -91,7 +92,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././second-article.html" rel="bookmark" title="Permalink to Second article">Second article</a></h1>
|
<h1><a href=".././second-article.html" rel="bookmark"
|
||||||
|
title="Permalink to Second article">Second article</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -102,10 +104,10 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
<address class="vcard author">
|
<address class="vcard author">
|
||||||
By <a class="url fn" href=".././author/bruno.html">bruno</a>
|
By <a class="url fn" href=".././author/dummy-author.html">Dummy Author</a>
|
||||||
</address>
|
</address>
|
||||||
|
|
||||||
<p>In <a href=".././category/content.html">content</a>. </p>
|
<p>In <a href=".././category/misc.html">misc</a>. </p>
|
||||||
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
<p>tags: <a href=".././tag/foo.html">foo</a><a href=".././tag/bar.html">bar</a><a href=".././tag/baz.html">baz</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,7 +125,6 @@ Translations:
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -131,7 +132,8 @@ Translations:
|
||||||
|
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h1><a href=".././this-is-a-super-article.html" rel="bookmark" title="Permalink to This is a super article !">This is a super article !</a></h1>
|
<h1><a href=".././this-is-a-super-article.html" rel="bookmark"
|
||||||
|
title="Permalink to This is a super article !">This is a super article !</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
@ -150,18 +152,19 @@ Translations:
|
||||||
|
|
||||||
|
|
||||||
</footer><!-- /.post-info -->
|
</footer><!-- /.post-info -->
|
||||||
Multi-line metadata should be supported
|
<p class="first last">Multi-line metadata should be supported
|
||||||
as well as <strong>inline markup</strong>.
|
as well as <strong>inline markup</strong>.</p>
|
||||||
|
|
||||||
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
<a class="readmore" href=".././this-is-a-super-article.html">read more</a>
|
||||||
|
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
</article></li>
|
</article></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -174,7 +177,7 @@ as well as <strong>inline markup</strong>.
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - foobar</title>
|
<title>A Pelican Blog - foobar</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -86,8 +88,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -100,7 +102,7 @@
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - oh</title>
|
<title>A Pelican Blog - oh</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -85,8 +87,8 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -99,7 +101,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<title>A Pelican Blog - yeah</title>
|
<title>A Pelican Blog - yeah</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||||
|
|
||||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||||
|
|
@ -31,11 +33,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li ><a href=".././category/content.html">content</a></li>
|
<li ><a href=".././category/bar.html">bar</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/cat1.html">cat1</a></li>
|
<li ><a href=".././category/cat1.html">cat1</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/bar.html">bar</a></li>
|
<li ><a href=".././category/misc.html">misc</a></li>
|
||||||
|
|
||||||
<li ><a href=".././category/yeah.html">yeah</a></li>
|
<li ><a href=".././category/yeah.html">yeah</a></li>
|
||||||
|
|
||||||
|
|
@ -85,8 +87,8 @@ YEAH !</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
|
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -99,7 +101,7 @@ YEAH !</p>
|
||||||
|
|
||||||
<footer id="contentinfo" class="body">
|
<footer id="contentinfo" class="body">
|
||||||
<address id="about" class="vcard body">
|
<address id="about" class="vcard body">
|
||||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||||
</address><!-- /#about -->
|
</address><!-- /#about -->
|
||||||
|
|
||||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@ p {margin-bottom: 1.143em;}
|
||||||
strong, b {font-weight: bold;}
|
strong, b {font-weight: bold;}
|
||||||
em, i {font-style: italic;}
|
em, i {font-style: italic;}
|
||||||
|
|
||||||
::-moz-selection {background: #F6CF74; color: #fff;}
|
|
||||||
::selection {background: #F6CF74; color: #fff;}
|
|
||||||
|
|
||||||
/* Lists */
|
/* Lists */
|
||||||
ul {
|
ul {
|
||||||
list-style: outside disc;
|
list-style: outside disc;
|
||||||
|
|
@ -100,7 +97,7 @@ dl {margin: 0 0 1.5em 0;}
|
||||||
dt {font-weight: bold;}
|
dt {font-weight: bold;}
|
||||||
dd {margin-left: 1.5em;}
|
dd {margin-left: 1.5em;}
|
||||||
|
|
||||||
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;}
|
pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
|
||||||
|
|
||||||
/* Quotes */
|
/* Quotes */
|
||||||
blockquote {
|
blockquote {
|
||||||
|
|
@ -111,6 +108,13 @@ cite {}
|
||||||
|
|
||||||
q {}
|
q {}
|
||||||
|
|
||||||
|
div.note {
|
||||||
|
float: right;
|
||||||
|
margin: 5px;
|
||||||
|
font-size: 85%;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tables */
|
/* Tables */
|
||||||
table {margin: .5em auto 1.5em auto; width: 98%;}
|
table {margin: .5em auto 1.5em auto; width: 98%;}
|
||||||
|
|
||||||
|
|
@ -137,8 +141,8 @@ aside, nav, article, figure {
|
||||||
|
|
||||||
/***** Layout *****/
|
/***** Layout *****/
|
||||||
.body {clear: both; margin: 0 auto; width: 800px;}
|
.body {clear: both; margin: 0 auto; width: 800px;}
|
||||||
img.right figure.right {float: right; margin: 0 0 2em 2em;}
|
img.right, figure.right {float: right; margin: 0 0 2em 2em;}
|
||||||
img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
img.left, figure.left {float: left; margin: 0 2em 2em 0;}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Header
|
Header
|
||||||
|
|
@ -156,7 +160,6 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0 0 .6em .2em;
|
margin: 0 0 .6em .2em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
width: 427px;
|
|
||||||
}
|
}
|
||||||
#banner h1 a:hover, #banner h1 a:active {
|
#banner h1 a:hover, #banner h1 a:active {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
@ -305,6 +308,8 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||||
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
|
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
|
||||||
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
|
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
|
||||||
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
|
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
|
||||||
|
.social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.png');}
|
||||||
|
.social a[href*='gittip.com'] {background-image: url('../images/icons/gittip.png');}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
About
|
About
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue