Browse Source

conf: fix BLOG_VERSION bytestring

The css file was getting `?v=b'abcd1234'` since the move to Python 3.
restyle-spring-2019
Annika Backstrom 1 year ago
parent
commit
4e704e1470
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pelicanconf.py

+ 1
- 1
pelicanconf.py View File

@@ -41,7 +41,7 @@ EXTRA_PATH_METADATA = { f: { 'path': basename(f) } for f in STATIC_PATHS }
41 41
 # extract full path into metadata
42 42
 PATH_METADATA = '(?P<content_path>.*)'
43 43
 
44
-BLOG_VERSION = check_output(['git', 'rev-parse', '--short', 'HEAD']).strip()
44
+BLOG_VERSION = check_output(['git', 'rev-parse', '--short', 'HEAD']).strip().decode('utf-8')
45 45
 
46 46
 TIMEZONE = 'America/New_York'
47 47
 DEFAULT_DATE_FORMAT = '%B %-d %Y'

Loading…
Cancel
Save