🦐 Address undone git edits sob

This commit is contained in:
tatianamac 2019-12-19 17:25:38 -08:00
parent eb5c3a1919
commit 569efcc4a7
3 changed files with 2 additions and 12 deletions

View File

@ -121,7 +121,7 @@ after_render do |content, path, locs|
content.gsub(%r{^<(h[0-6])(.*?)</\1>}m) do |header_text|
header = Nokogiri::HTML::DocumentFragment.parse(header_text).children.first
id = header.attr(:id)
header.children.before("<a class='anchor' href='##{id}'><span class='visuallyhidden'>#{header.text} permalink</a>") if id
header.children.before("<a class='anchor' href='##{id}'><span class='visuallyhidden'>#{header.text} permalink</span></a>") if id
header.to_html
end
end

View File

@ -36,4 +36,4 @@
border: 0;
}
}
}
}

View File

@ -47,16 +47,6 @@
= link_to 'upgrade your browser', 'https://browsehappy.com/'
to improve your experience and security.
.sl-c-alert.sl-c-alert--info
.sl-l-container
%p
%strong Sass just launched a brand new module system.
= succeed '!' do
= link_to '/blog/the-module-system-is-launched' do
Learn all about it on the Sass blog
.sl-c-pop-stripe
%header.sl-r-banner(itemtype='http://schema.org/WPHeader' itemscope='itemscope' role='banner')
.sl-c-alert.sl-c-alert--info
.sl-l-container