fix robots
This commit is contained in:
parent
3bd03fc0f7
commit
a103edae48
3 changed files with 11 additions and 15 deletions
|
@ -22,7 +22,8 @@ module.exports = function (eleventyConfig) {
|
||||||
eleventyConfig.addWatchTarget('./tailwind.css')
|
eleventyConfig.addWatchTarget('./tailwind.css')
|
||||||
|
|
||||||
// passthrough
|
// passthrough
|
||||||
eleventyConfig.addPassthroughCopy("src/assets");
|
eleventyConfig.addPassthroughCopy('src/assets')
|
||||||
|
eleventyConfig.addPassthroughCopy('src/robots.txt')
|
||||||
|
|
||||||
// shortcodes
|
// shortcodes
|
||||||
eleventyConfig.addShortcode('version', () => now)
|
eleventyConfig.addShortcode('version', () => now)
|
||||||
|
@ -78,9 +79,9 @@ module.exports = function (eleventyConfig) {
|
||||||
eleventyConfig.setLibrary('md', md)
|
eleventyConfig.setLibrary('md', md)
|
||||||
|
|
||||||
// markdown filter
|
// markdown filter
|
||||||
eleventyConfig.addLiquidFilter("markdown", (content) => {
|
eleventyConfig.addLiquidFilter('markdown', (content) => {
|
||||||
return md.render(content);
|
return md.render(content)
|
||||||
});
|
})
|
||||||
|
|
||||||
// asset_img shortcode
|
// asset_img shortcode
|
||||||
eleventyConfig.addLiquidShortcode('asset_img', (filename, alt) => {
|
eleventyConfig.addLiquidShortcode('asset_img', (filename, alt) => {
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
permalink: /robots.txt
|
|
||||||
eleventyExcludeFromCollections: true
|
|
||||||
---
|
|
||||||
|
|
||||||
Sitemap: https://coryd.dev/sitemap.xml
|
|
||||||
|
|
||||||
User-agent: \*
|
|
||||||
Disallow:
|
|
4
src/robots.txt
Normal file
4
src/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Sitemap: https://coryd.dev/sitemap.xml
|
||||||
|
|
||||||
|
User-agent: \*
|
||||||
|
Disallow:
|
Reference in a new issue