Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fixes variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
petele committed Sep 19, 2018
1 parent 408d89e commit 10fe814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devsiteParseYAML.py
Expand Up @@ -19,7 +19,7 @@ def parse(requestPath, fileLocation, rawYaml, lang='en'):
# Parse the Yaml
parsedYaml = yaml.load(rawYaml)
page = parsedYaml['landing_page']
if page['body_class']:
if 'body_class' in page:
context['bodyClass'] += ' ' + page['body_class']

# Get the project_path and read/parse the project file.
Expand Down

0 comments on commit 10fe814

Please sign in to comment.