From f00db7a3411410ad5a2e5813b243637a25844a74 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Thu, 26 Mar 2020 19:24:16 +0800 Subject: [PATCH] fix --- patchfile.gemspec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/patchfile.gemspec b/patchfile.gemspec index 1d8a681..504d7fa 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -45,6 +45,11 @@ all_template.each do |folder| File.open(filename,'w') do |f| f.write new_texts 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 rescue => e