A partial fix was already included in the initial patch in #1746, but it was only applied to a subset of titles.
Unified · Split
| @@ -3,11 +3,11 @@ module Docs · 2 unmodified lines | |||
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | def get_name | 4 | def get_name |
| 5 | css('h1 .app-vsn').remove | 5 | css('h1 .app-vsn').remove |
| 6 | name = (at_css('h1 > span') or at_css('h1')).content.strip | ||
| 6 | 7 | ||
| 7 | if current_url.path.start_with?('/getting-started') | 8 | if current_url.path.start_with?('/getting-started') |
| 8 | (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/) | 9 | name.remove(/\.\z/) |
| 9 | else | 10 | else |
| 10 | name = at_css('h1').content.strip | ||
| 11 | name = name.split(' ').first unless name.start_with?('mix ') # ecto | 11 | name = name.split(' ').first unless name.start_with?('mix ') # ecto |
| 12 | name | 12 | name |
| 13 | end | 13 | end |