fix
This commit is contained in:
parent
7a60552746
commit
ae335c72ee
|
@ -1,5 +1,4 @@
|
||||||
$:.push File.expand_path("../lib", __FILE__)
|
$:.push File.expand_path("../lib", __FILE__)
|
||||||
#require 'nokogiri'
|
|
||||||
# Maintain your gem's version:
|
# Maintain your gem's version:
|
||||||
require "patchfile/version"
|
require "patchfile/version"
|
||||||
app_path = File.expand_path(__dir__)
|
app_path = File.expand_path(__dir__)
|
||||||
|
@ -35,6 +34,7 @@ change_text = '<a title="{{site_title_1}}" class="navbar-brand" href="{{home_lin
|
||||||
all_template.each do |folder|
|
all_template.each do |folder|
|
||||||
if !folder.include?('mobile')
|
if !folder.include?('mobile')
|
||||||
begin
|
begin
|
||||||
|
require 'nokogiri'
|
||||||
puts "changing header.html.erb in #{folder}/home/header.html.erb"
|
puts "changing header.html.erb in #{folder}/home/header.html.erb"
|
||||||
if folder.split('/')[-1] != 'mobile'
|
if folder.split('/')[-1] != 'mobile'
|
||||||
filename = folder+'home/header.html.erb'
|
filename = folder+'home/header.html.erb'
|
||||||
|
|
Loading…
Reference in New Issue