css - Pelican on S3: theme not rendering properly -


i've installed pelican in virtual environment following instructions in http://docs.getpelican.com/en/3.5.0/quickstart.html#installation . running make html , make serve produce expected result on localhost:8000: content , theme rendered expected. there warning local server however:

warning:root:unable find file /favicon.ico/index.html or variations.

i run make s3_upload , without --guess-mime-type option. in either case make sure css files in s3 bucket have right mime type (text/plain) css files must have text/css mime-type:

 done: processed 1 article(s), 0 draft(s) , 0 page(s) in 0.35 seconds.  s3cmd sync /home/theuser/virtualenvs/pelican/theblog/output/ s3://theuser.com --acl-public --delete-removed --guess-mime-type 

files upload s3 blog isn't rendered (apparently css directives aren't recognized). did not add inline css in test markdown document.

why isn't blog rendering s3? should looking error logs? thanks.

edit:

i ran blog through http://jigsaw.w3.org/css-validator/ , , got "congratulation, no error found" & "this document validates css level 3".

assuming blog's uri www.theuser.com, i've tried setting pelicanconf.py's siteurl as

 siteurl =  'http://s3.amazonaws.com/theuser.com'  siteurl =  'http://theuser.com' 

i'm not sure else broke fixing problem above, removing python-magic did trick.

apparently python-magic wasn't allowing right mime-types set s3cmd, particularly css files: mime type defaulted text/plain. css mime-type must set text/css on s3 or css files disregarded.

this link put me on right track: http://worklog.kevinclarke.info/2014/08/28/fixing-css-mime-type-for-s3-octopress/


Popular posts from this blog