diff --git a/content/css/docs.css b/content/css/docs.css index 9f5da16d..88148654 100644 --- a/content/css/docs.css +++ b/content/css/docs.css @@ -400,14 +400,9 @@ footer { } .doc-content a.header-anchor { - padding-left: 15px; -} - -.doc-content a.header-anchor:after { - content: "\F0C1"; - font-family: FontAwesome; - font-weight: normal; font-size: .8em; + padding-left: 8px; + text-decoration: none; } .doc-content a.header-anchor:link, diff --git a/lib/filters/add_anchors.rb b/lib/filters/add_anchors.rb index 8487745e..26067df2 100644 --- a/lib/filters/add_anchors.rb +++ b/lib/filters/add_anchors.rb @@ -15,7 +15,7 @@ class AddAnchorsFilter < ::Nanoc::Filter next if h_node['id'].nil? node = Nokogiri::XML::DocumentFragment.parse("").at_css("a").tap do |a| a.content = '' - a['class'] = 'header-anchor' + a['class'] = 'header-anchor ti ti-link' # Replace sequences of non-word characters with single dashes. Remove # extra dashes at the beginning or end.