Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

eleventy add robots.txt

<!---- Eleventy: Add robots.txt ---------------------------------------->
Create a file called robots.njk inside the src directory:

---
permalink: '/robots.txt'
eleventyExcludeFromCollections: true
---

User-agent: * 
Disallow: /
<!---------------------------------------- Eleventy: Add robots.txt ---->
Source by daily-dev-tips.com #
 
PREVIOUS NEXT
Tagged: #eleventy #add
ADD COMMENT
Topic
Name
7+4 =