Merge pull request #6 from kazu634/delete-public-directory-before-generation

Delete public directory before generation
This commit is contained in:
Kazuhiro MUSASHI 2019-04-13 18:11:55 +07:00 committed by GitHub
commit 0752b8e267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -20,8 +20,6 @@ end
desc 'Generate the HTML pages'
task :build do
sh 'hugo'
cd 'content/post' do
if os == :linux
sh 'grep -l ecx.images-amazon.com *.md | sort | uniq | xargs --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"'
@ -33,4 +31,10 @@ task :build do
sh 'rm *.mde || true'
sh 'rm *.md-e || true'
end
cd 'public' do
sh 'rm -rf *'
end
sh 'hugo'
end