% var description, title, twitter_description, image %> <% if(page.canonical_path == 'index.html') { %> <% title = "James Peret Website" %> <% description = "Website of James Peret, a designer, programmer and filmmaker from São Paulo, Brazil." %> <% twitter_description = description %> <% } else if(page.canonical_path == 'projects/index.html') { %> <% title = "James Peret Portfolio" %> <% description = "Portfolio of James Peret. Checkout his games, videos and software." %> <% twitter_description = description %> <% } else if(page.canonical_path == 'blog/index.html') { %> <% title = "J1X Blog" %> <% description = "J1X Blog. Technical writings by James Peret." %> <% twitter_description = "Technical writings by James Peret." %> <% } else if(page.canonical_path == 'about/index.html') { %> <% title = "About James Peret." %> <% description = "Read more about James Peret." %> <% twitter_description = description %> <% } else if(page.layout == 'project') { %> <% title = page.title %> <% description = page.description %> <% twitter_description = description %> <% image = `http://jamesperet.com/projects/${page.folder}/${page.cover_image}` %> <% } else if(page.layout == 'post') { %> <% title = page.title %> <% description = page.excerpt %> <% twitter_description = description %> <% image = `http://jamesperet.com/blog/${page.slug}/${page.cover_image}` %> <% } %> <% if(image != undefined) { %> <% } %> <%- css('css/style') %>