Separate the preparation part from the `build.rake`.
This commit is contained in:
parent
335757fb5c
commit
fc5d0a22c6
|
@ -18,8 +18,8 @@ def os
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Generate the HTML pages'
|
desc 'Preparation for Generating the HTML Pages'
|
||||||
task :build do
|
task :prep do
|
||||||
cd 'content/' do
|
cd 'content/' do
|
||||||
if os == :linux
|
if os == :linux
|
||||||
sh 'grep -l -r ecx.images-amazon.com | sort | uniq | xargs --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"'
|
sh 'grep -l -r ecx.images-amazon.com | sort | uniq | xargs --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"'
|
||||||
|
@ -37,6 +37,4 @@ task :build do
|
||||||
cd 'public' do
|
cd 'public' do
|
||||||
sh 'rm -rf *'
|
sh 'rm -rf *'
|
||||||
end
|
end
|
||||||
|
|
||||||
sh 'hugo -e staging -v'
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue