mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
Link to GitHub for Ruby Sass release notes
This commit is contained in:
parent
d6455f82cc
commit
7f886f13ee
@ -246,12 +246,15 @@ module SassHelpers
|
||||
|
||||
# Returns the URL tag for the latest release of the given implementation.
|
||||
def release_url(impl)
|
||||
if impl == :ruby
|
||||
return "https://github.com/sass/ruby-sass/blob/stable/doc-src/SASS_CHANGELOG.md"
|
||||
end
|
||||
|
||||
version = impl_version(impl)
|
||||
repo =
|
||||
case impl
|
||||
when :dart; "dart-sass"
|
||||
when :libsass; "libsass"
|
||||
when :ruby; "sass"
|
||||
end
|
||||
|
||||
if version
|
||||
|
@ -105,8 +105,7 @@
|
||||
= link_to 'Ruby Sass', '/ruby-sass'
|
||||
-# Force space between the two links.
|
||||
 
|
||||
= link_to impl_version(:ruby) || '???', |
|
||||
'/documentation/file.SASS_CHANGELOG.html' |
|
||||
= link_to impl_version(:ruby) || '???', release_url(:ruby)
|
||||
|
||||
%li.sl-l-grid__column.sl-l-large-grid__column--auto-size
|
||||
= link_to 'Implementation Guide', '/implementation'
|
||||
|
Loading…
Reference in New Issue
Block a user