ulmic/tramway-dev

View on GitHub
tramway-landing/app/views/tramway/landing/blocks/block_types/_header.html.haml

Summary

Maintainability
Test Coverage
= javascript_include_tag 'tramway/landing/smooth-scroll'
= render 'tramway/landing/templates/full_page', block: OpenStruct.new(title: block_title(block), tagline: block_tagline(block), background: block.background), buttons: @links&.select { |link| !link.is_a? Hash }
%script
  var scroll = new SmoothScroll('a[href*="#"]');