diff --git a/gulpfile.js b/gulpfile.js index ba0ad12..e8dd223 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)); }); diff --git a/site/themes/citra-bs-theme/layouts/robots.txt b/site/themes/citra-bs-theme/layouts/robots.txt deleted file mode 100644 index a4eb7ea..0000000 --- a/site/themes/citra-bs-theme/layouts/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -Sitemap: {{ .Site.BaseURL }}sitemap.xml - -User-agent: *