GithubHelp home page GithubHelp logo

Comments (5)

justinmayer avatar justinmayer commented on April 28, 2024 1

Try the following and look through the output to see if it provides any relevant clues: pelican content -D -s pelicanconf.py -o output

from pelican-themes.

OE-Tester avatar OE-Tester commented on April 28, 2024 1

I have this same error, but only with "~" in path to THEMES - with full path it works.

from pelican-themes.

saimn avatar saimn commented on April 28, 2024

Maybe the ~ which is not expanded. Please try with the complete path.

from pelican-themes.

ibayer avatar ibayer commented on April 28, 2024

Thanks for the suggestions. I just got it working, the thing is that
the instructions in the 'getpelican/pelican-themes/README.rst' don't work for me

According to http://docs.getpelican.com/en/3.2/settings.html#themes

THEME = '~/pelican-themes/waterspill-en/'

and

THEME = 'home/user/pelican-themes/waterspill-en/'

should work but that's not the case for me.

I can only use '# Specify a customized theme, via path relative to the settings file'

THEME = '../../pelican-themes/waterspill-en/'

Can anyone reproduce this? Otherwise I'm going to close this issue.

from pelican-themes.

crazyyi avatar crazyyi commented on April 28, 2024

I checked the pelican source code and found that pelican is joining the pelican library path with "themes" and the path defined in THEME tag in pelicanconf.py.
So when I try to use bootstrap3 theme in pelican, I do the following steps:

  1. download the theme from github, rename it to pelican-bootstrap3
  2. in command line, type pelican-themes -vi your-path-to-theme, then the theme will be installed in pelican/lib/python/site-generateor/pelican/themes/pelican-bootstrap3
  3. based on the source code of settings.py, the path should be [PELICAN_PATH] + "themes" + [PATH IN THEME TAG]. So in pelicanconf.py we defined THEME = pelican-bootstrap3.

It should work by now.

from pelican-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.