We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796663b commit ffc59c8Copy full SHA for ffc59c8
plugins/item_formatter.rb
@@ -18,7 +18,7 @@ def format_item_for_site!
18
19
FIRST_WORD_SENTENCE_STYLE_REPLACEMENTS = {
20
"Is" => "It's",
21
- "Which" => "It",
+ "Which" => "It"
22
}.freeze
23
24
def capitalize_description_first_letter!
@@ -50,12 +50,12 @@ def fetch_github_og_image!
50
og_image = nil
51
tries = 0
52
loop do
53
- repo_doc = Nokogiri::HTML(Net::HTTP.get(URI(item[:url])))
+ repo_doc = Nokogiri::HTML(Net::HTTP.get(URI(item[:url].delete_suffix(".git"))))
54
og_image = repo_doc
55
.css('meta[property="og:image"]')
56
.first
57
.attribute_nodes
58
- .find { _1.name == "content" }
+ .find { it.name == "content" }
59
.value
60
61
break if og_image || tries >= 5
0 commit comments