diff --git a/Makefile.env b/Makefile.env
index 32e66a1d850954eb6e9ac4df7c111632ffa7aeee..f41c74a7d8ef5e266a8dff623b5b67557a477a2e 100644
--- a/Makefile.env
+++ b/Makefile.env
@@ -18,8 +18,14 @@
 HTTP_BASE = www
 
 web: jhead mat
+	@#echo Applying workaround since exclude patterns are not working...
+	@find vendor -name '*.md' -exec rm {} \;
+
 	@ikiwiki --setup ikiwiki.yaml
 
+	@#echo Cleaning up...
+	git submodule foreach git restore .
+
 web_deploy:
 	@rsync -avz --delete www/ blog:/var/sites/blog/www/
 
diff --git a/ikiwiki.yaml b/ikiwiki.yaml
index 949c2cbe6ad65eb8f270219a3297a154e01b9f8a..0be37375f5f581fb4f59ea199869c685c74c889f 100644
--- a/ikiwiki.yaml
+++ b/ikiwiki.yaml
@@ -99,6 +99,7 @@ ENV: {}
 # regexp of normally excluded files to include
 include: ^\.htaccess$
 # regexp of files that should be skipped
+#exclude: (^(www|drafts|vendor).*)
 exclude: (?^i:(www|drafts|vendor))
 # specifies the characters that are allowed in source filenames
 wiki_file_chars: -[:alnum:]+/.:_