citra-emu
/
citra-web
Archived
1
0
Fork 0

Moved robots.txt generation into the gulp file.

This commit is contained in:
chris062689 2017-02-26 21:24:32 -05:00
parent 87369e98fb
commit 8606f1de11
2 changed files with 1 additions and 3 deletions

View File

@ -92,5 +92,6 @@ gulp.task('html', ['hugo', 'css', 'images'], () => (
gulp.task('deploy', ['hugo', 'css', 'images', 'html'], () => {
require('fs').writeFileSync(`${distPath}/CNAME`, `${cname}`);
require('fs').writeFileSync(`${distPath}/robots.txt`, `Sitemap: https://${cname}/sitemap.xml\n\nUser-agent: *`);
return gulp.src(`${distPath}/**/*`).pipe(ghPages(deployOptions));
});

View File

@ -1,3 +0,0 @@
Sitemap: {{ .Site.BaseURL }}sitemap.xml
User-agent: *