Closed MarcusRiemer closed 9 years ago
robots.txt
file to specify a layout and a permalink:---
title: The robots.txt file
permalink: '/robots.txt'
layout: bare-to-the-bone
---
User-agent: *
Disallow: /cgi-bin/
Disallow: /privatedir/
Disallow: /tutorials/blank.htm
Create the bare-to-the-bone.md
layout file in one of the layout locations:
{{{content}}}
That's it.
Ah, the combination of a permalink with a bare layout was too obvious for me, this would even work just fine for sitemaps. Thanks alot!
Amazing T-Shirt. I did a semester in the PTL. It's a small world ! :smile:
When I add a robots.txt file to the
_root
folder ruhoh applies the template as if it were a "normal" page. Is there any easy way around this?