diff --git a/app/helpers/govuk_skip_link_helper.rb b/app/helpers/govuk_skip_link_helper.rb new file mode 100644 index 00000000..fb6f91e4 --- /dev/null +++ b/app/helpers/govuk_skip_link_helper.rb @@ -0,0 +1,6 @@ +module GovukSkipLinkHelper + def govuk_skip_link(text: 'Skip to main content', href: '#main-content') + link_to text, href, class: 'govuk-skip-link' + end +end +ActiveSupport.on_load(:action_view) { include GovukSkipLinkHelper } diff --git a/docs/index.html b/docs/index.html index eecfb327..b3486432 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ Dummy - +