Merge pull request #1306 from rylim/feature/issue1153-add-robots-txt

This commit is contained in:
Doug Aitken 2021-10-27 22:37:40 +01:00 committed by GitHub
commit 47be42f793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -291,6 +291,11 @@ async function buildSite() {
writePage( '404.html', notFoundTemplate( {
notFoundStyles
} ) );
// Add empty robots.txt
console.log();
console.log( 'Writing empty robots.txt' );
writePage( 'robots.txt', '' );
console.log();
console.log( 'Site files are ready in "site/build/"' );

View file

@ -14,8 +14,8 @@
<!-- Stylesheet -->
{%- for stylesheet in notFoundStyles %}
<link rel="stylesheet" type="text/css" href="{{ stylesheet.url }}" />
{%- endfor %}
<link rel="stylesheet" type="text/css" href="{{ stylesheet.url }}" />
{%- endfor %}
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->