Static site generator that supports Markdown and reST syntax. Powered by Python.
  • Python 85.3%
  • CSS 8.7%
  • Jinja 6%
Find a file
Allen Zheng 59750b3a85 Normalize formatting of simple/notmyidea themes
I used the tool [htmlbeautify][1] like so

    htmlbeautifier -t 4 -b 1 pelican/themes/simple/templates/*.html
    htmlbeautifier -t 4 -b 1 pelican/themes/notmyidea/templates/*.html

and then manually adjusted the output. The final result follows the
following rules.

- 4-space indentation
- Multiline nested tags like

  <tag1><tag2>
      ... nested content ...
  </tag2></tag1>

  are broken up into

  <tag1>
      <tag2>
          ... nested content ...
      </tag2>
  </tag1>

  but if everything is on one like this

  <tag1><tag2>... nested content ...</tag2></tag1>

  it's OK.
- Treat new blocks like tags when indenting. E.g.

  {% if cond %}
      <p>hello</p>
  {% endif %}

  However, observe the following exceptions:

  - Don't indent inside a {% block %}, {% macro %}, or if the block
    takes up the entire file.
  - If a {% for ... %} block takes up the entire content of an HTML tag,
    don't indent it. E.g.

    <ul id="navigation">
    {% for item in navigation %}
        <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
    {% endfor %}
    </ul>

  I tried to follow the examples in the official Jinja documentation as
  closely as possible: <http://jinja.pocoo.org/docs/2.10/templates/>.

Used `git diff --check` to perform basic whitespace checks.

[1]: [https://github.com/threedaymonk/htmlbeautifier]
2018-11-13 21:10:12 -08:00
docs Prepare to release Pelican 4.0 2018-11-13 14:55:25 +01:00
pelican Normalize formatting of simple/notmyidea themes 2018-11-13 21:10:12 -08:00
requirements Pin Python-Markdown until fixed v3.1 is released 2018-10-25 09:28:42 +02:00
samples Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
.coveragerc [coveralls] Exclude tests from coverage 2014-06-24 22:29:36 +01:00
.gitattributes Add missing .gitattributes attributes. Refs #2069 2016-12-23 08:03:57 -08:00
.gitignore support ssl in pelican.server with --ssl, --cert & --key 2018-04-07 15:06:38 -07:00
.mailmap .mailmap: Add mappings to consolidate author names and emails 2013-04-12 10:51:48 -04:00
.travis.yml Add Python 3.7 support to Travis and Tox 2018-11-02 16:11:45 -06:00
bumpr.rc Match space with POSIX sed when bumping via bumpr 2015-06-14 10:12:52 -07:00
CONTRIBUTING.rst Replace Fabric by Invoke. 2018-07-08 21:33:10 +02:00
LICENSE Include the complete license rather than the short version. See #103 2011-04-26 13:46:02 +01:00
MANIFEST.in Remove *.in files from MANIFEST.in 2018-08-03 14:57:22 +02:00
README.rst Remove download statistics badge from README 2016-12-12 11:07:13 -08:00
setup.cfg Revert setup.py changes. Ensure universal wheels. 2014-07-01 14:33:04 -07:00
setup.py Prepare to release Pelican 4.0 2018-11-13 14:55:25 +01:00
THANKS Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
tox.ini Add Python 3.7 support to Travis and Tox 2018-11-02 16:11:45 -06:00

Pelican |build-status| |pypi-version|
=====================================

Pelican is a static site generator, written in Python_.

* Write content in reStructuredText_ or Markdown_ using your editor of choice
* Includes a simple command line tool to (re)generate site files
* Easy to interface with version control systems and web hooks
* Completely static output is simple to host anywhere


Features
--------

Pelican currently supports:

* Chronological content (e.g., articles, blog posts) as well as static pages
* Integration with external services (e.g., Google Analytics and Disqus)
* Site themes (created using Jinja2_ templates)
* Publication of articles in multiple languages
* Generation of Atom and RSS feeds
* Syntax highlighting via Pygments_
* Importing existing content from WordPress, Dotclear, and other services
* Fast rebuild times due to content caching and selective output writing

Check out `Pelican's documentation`_ for further information.


How to get help, contribute, or provide feedback
------------------------------------------------

See our `contribution submission and feedback guidelines <CONTRIBUTING.rst>`_.


Source code
-----------

Pelican's source code is `hosted on GitHub`_. If you feel like hacking,
take a look at `Pelican's internals`_.


Why the name "Pelican"?
-----------------------

"Pelican" is an anagram of *calepin*, which means "notebook" in French.


.. Links

.. _Python: http://www.python.org/
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _Markdown: http://daringfireball.net/projects/markdown/
.. _Jinja2: http://jinja.pocoo.org/
.. _Pygments: http://pygments.org/
.. _`Pelican's documentation`: http://docs.getpelican.com/
.. _`Pelican's internals`: http://docs.getpelican.com/en/latest/internals.html
.. _`hosted on GitHub`: https://github.com/getpelican/pelican

.. |build-status| image:: https://img.shields.io/travis/getpelican/pelican/master.svg
   :target: https://travis-ci.org/getpelican/pelican
   :alt: Travis CI: continuous integration status
.. |pypi-version| image:: https://img.shields.io/pypi/v/pelican.svg
   :target: https://pypi.python.org/pypi/pelican
   :alt: PyPI: the Python Package Index