[ 
https://issues.apache.org/jira/browse/CB-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13706901#comment-13706901
 ] 

Carlos Santana commented on CB-3997:
------------------------------------

[~agrieve] Duh! I'm the one missing a few brain cells

That schools me to test before giving suggestions :-(

We use less and master.less so the one that needs to be edit is master.less 
lets try gain

Option 1 (relative path):
Edit www/css/_master.less
Find and replace "/images/" with "../images/"

Options 2 (use yml {{ site.baseurl }}):
Step 1 (remove from ignore list for jekyll)
Rename www/css/_master.less to www/css/master.less

Step 2 (yamlize master.less)
Edit www/css/master.less
Append this to the top
---
layout: nil
---
Find and replace "/images/" with "{{ site.baseurl }}/images"
{{ site.baseurl }}/images/grid.png
{{ site.baseurl }}/images/sprite.png
{{ site.baseurl }}/images/shadow.png

Step 3 (reverse order of lessc and jekyll build & use public/css/master.less):
Step 3A Edit bin/gen.rb
# Run via "rake build"

# Build Blog First using jekyll it blows up the public directory
system( "jekyll build" )
# LessCSS
system( "lessc public/css/master.less > public/css/master.css" )

Step 3B Edit bin/serve.rb
# Run via "rake serve"

# Run build firs to generate public/master.less with varibles replaced, and 
then run less compiler to generate public/css/master.css
puts "Building first to generate proper public/css/master.css"
system( "rake build" )

puts "Server running at http://localhost:4000/'"
system( "jekyll serve --watch" )



                
> Add a Blog section to cordova.apache.org
> ----------------------------------------
>
>                 Key: CB-3997
>                 URL: https://issues.apache.org/jira/browse/CB-3997
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Website
>            Reporter: Andrew Grieve
>            Assignee: Carlos Santana
>
> ML discussion: http://callback.markmail.org/thread/ubude5trywrzbi6g
> Set up Jekyll's blogging system at cordova.apache.org/blog

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to