Skip to content

Commit

Permalink
Add absolute URL from BASEURL in robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmb committed Mar 4, 2025
1 parent 1304098 commit 4fdaf14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const {
} = require('./config/shortCodes');

const isFederalShutdownMode = false;
require('dotenv').config();


module.exports = function (config) {
if (isFederalShutdownMode) {
Expand Down
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASEURL='http://localhost:8080'
2 changes: 1 addition & 1 deletion pages/robots.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ permalink: /robots.txt
---
User-agent: *
Allow: /
Sitemap: {{ site.url }}/sitemap.xml
Sitemap: {{ helpers.baseUrl }}/sitemap.xml

0 comments on commit 4fdaf14

Please sign in to comment.