diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2016-06-28 12:51:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 12:51:22 +0200 |
commit | 0963ad0ba49c0f9b40ba53ff5c521f0b331c8061 (patch) | |
tree | a1ed6a9a2fbe057d99c8470d6072be0944cb471c /web/tutorials | |
parent | 6ac190a834f4882a449aeec70db50c5cdcd2acf3 (diff) | |
parent | fd7489434234414c32699bf6967a27a4f352d582 (diff) | |
download | hakyll-0963ad0ba49c0f9b40ba53ff5c521f0b331c8061.tar.gz |
Merge pull request #441 from Pratyush/rsync-fix
Fix rsync command in GH Pages tutorial
Diffstat (limited to 'web/tutorials')
-rw-r--r-- | web/tutorials/github-pages-tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/tutorials/github-pages-tutorial.md b/web/tutorials/github-pages-tutorial.md index 77d370f..67410bd 100644 --- a/web/tutorials/github-pages-tutorial.md +++ b/web/tutorials/github-pages-tutorial.md @@ -168,7 +168,7 @@ git stash pop Earlier it was mentioned a flaw is that deleted files will persist in the published site until deleted manually. This is easily overcome by using `rsync` instead of `cp`. ``` -rsync -a --filter='P _site/' --delete-excluded _site/ . +rsync -a --filter='P _site/' --filter='P _cache/' --filter='P .git/' --filter='P .gitignore' --delete-excluded _site/ . ``` The only drawback this approach has is the requirement that *every* file in your site "go through" Hakyll. Fortunately, in many cases this is not an issue. |