Skip to content

Commit

Permalink
Merge pull request #50 from dpaleino/master
Browse files Browse the repository at this point in the history
Strip path components when looking for themes
  • Loading branch information
Kwpolska authored Oct 3, 2017
2 parents d34c720 + 221fcb2 commit cecb8c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coil/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ def configure_site():
_site.config['TRANSLATIONS'])

# Theme must inherit from bootstrap3, because we have hardcoded HTML.
bs3 = (('bootstrap3' in _site.THEMES) or
('bootstrap3-jinja' in _site.THEMES))
themes = [os.path.basename(x) for x in _site.THEMES]
bs3 = (('bootstrap3' in themes) or
('bootstrap3-jinja' in themes))
if not bs3:
app.logger.notice("THEME does not inherit from 'bootstrap3' or "
"'bootstrap3-jinja', using 'bootstrap3' instead.")
Expand Down

0 comments on commit cecb8c2

Please sign in to comment.