ruhoh / ruhoh.rb

http://ruhoh.com
616 stars 69 forks source link

Adding a robots.txt file? #295

Closed MarcusRiemer closed 9 years ago

MarcusRiemer commented 10 years ago

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?

ameuret commented 9 years ago
---
title: The robots.txt file
permalink: '/robots.txt'
layout: bare-to-the-bone
---

User-agent: *
Disallow: /cgi-bin/
Disallow: /privatedir/
Disallow: /tutorials/blank.htm

That's it.

MarcusRiemer commented 9 years ago

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!

ameuret commented 9 years ago

Amazing T-Shirt. I did a semester in the PTL. It's a small world ! :smile: