From 0b4eafc528a26f2a507922f317082316e6c88085 Mon Sep 17 00:00:00 2001 From: Philip Blyth Date: Tue, 9 Jun 2015 15:50:58 -0400 Subject: [PATCH] FIXES Broken "Source on Github" links in Code Reference --- compass-style.org/layouts/reference.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compass-style.org/layouts/reference.haml b/compass-style.org/layouts/reference.haml index 8dd4721629..38ff2f53d3 100644 --- a/compass-style.org/layouts/reference.haml +++ b/compass-style.org/layouts/reference.haml @@ -1,5 +1,6 @@ -- gh_url = "http://github.com/chriseppstein/compass/blob/stable/frameworks/" -- gh_url << "#{item[:framework]}/stylesheets/#{item[:stylesheet]}" +- gh_url = "http://github.com/chriseppstein/compass/blob/stable/" +- gh_url << (item[:framework] == 'compass' ? 'core/' : "frameworks/#{item[:framework]}/") +- gh_url << "stylesheets/#{item[:stylesheet]}" %a{:href => gh_url, :rel=>"github-source", :title=>"view source for this module on github"} Source on Github %h1= item[:title]