Search code examples
pythonpelican

Can't change pelican theme


I'm trying to change default pelican theme to this one. However changes do not appear when I use

python -m SimpleHTTPServer

I installed the theme using pelican-themes --install and I can say that installation went all right because when I run pelican-themes -l the theme is listed:

notmyidea
simple
blue-penguin

I added this to my pelicanconf.py:

THEME = "blue-penguin"

And it's not the browser cache because I also added this:

LOAD_CONTENT_CACHE = False

I tried running

 pelican content -s ../pelicanconf.py

but had no result.

Even using trying the default themes notmyidea and simple doesn't work.

Any idea of what is going on?

EDIT: adding my pelicanconf.py, as requested:

#!/usr/bin/env python
#-*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'My Name'
SITENAME = u'Programa\xe7\xe3o, estat\xedstica e mais'
SITEURL = ''
GITHUB_URL = 'http://github.com/EuPaulo'
LOCALE = 'pt_BR.utf8'
THEME = u"blue-penguin"
LOAD_CONTENT_CACHE = False

RELATIVE_URLS = True

PATH = 'content'

TIMEZONE = 'America/Sao_Paulo'

DEFAULT_LANG = u'pt'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
# LINKS = (('Pelican', 'http://getpelican.com/'),
 #        ('Python.org', 'http://python.org/'),
  #       ('Jinja2', 'http://jinja.pocoo.org/'),
   #      ('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('twitter', 'https://twitter.com/paulomiramor'),
          ('linkedin', 'http://www.linkedin.com/in/XXXXXXX'),
          ('github', 'https://github.com/EuPaulo'),)

DEFAULT_PAGINATION = 5

Solution

  • Are you running the SimpleHTTPServer into the output directory? If not the static url resolution will fail because the root directory for the website will not be the good one.

    If this is good, can you paste your pelicanconf.py somewhere please so that we can check if there is nothing wrong.