fix
This commit is contained in:
parent
8a140a0a97
commit
f00db7a341
|
@ -45,6 +45,11 @@ all_template.each do |folder|
|
||||||
File.open(filename,'w') do |f|
|
File.open(filename,'w') do |f|
|
||||||
f.write new_texts
|
f.write new_texts
|
||||||
end
|
end
|
||||||
|
elsif texts_html.css('.site-title >a').length == 1 && texts_html.css('.navbar-brand').length == 0
|
||||||
|
new_texts = texts.gsub(texts_html.css('.site-title >a').to_s.gsub("%7B",'{').gsub('%7D','}'),change_text)
|
||||||
|
File.open(filename,'w') do |f|
|
||||||
|
f.write new_texts
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
|
|
Loading…
Reference in New Issue