Skip to content
This repository
Browse code

Added robots.txt to static.

  • Loading branch information...
commit 2473f0789cd335387011eeb11d14ab26e18b486e 1 parent 31b73a8
John MacFarlane authored
2  README.markdown
Source Rendered
@@ -216,6 +216,8 @@ So, you can throw anything you want to be served statically (for
216 216 example, a `robots.txt` file or `favicon.ico`) in the `static`
217 217 directory. You can override any of gitit's default css, javascript, or
218 218 image files by putting a file with the same relative path in `static`.
  219 +Note that gitit has a default `robots.txt` file that excludes all
  220 +URLs beginning with `/_`.
219 221
220 222 Note: if you set `static-dir` to be a subdirectory of `repository-path`,
221 223 and then add the files in the static directory to your repository, you
2  data/static/robots.txt
... ... @@ -0,0 +1,2 @@
  1 +User-agent: *
  2 +Disallow: /_
1  gitit.cabal
@@ -52,6 +52,7 @@ data-files: data/static/css/screen.css, data/static/css/print.css,
52 52 data/static/js/jquery.hotkeys-0.7.9.min.js,
53 53 data/static/js/preview.js, data/static/js/search.js,
54 54 data/static/js/MathMLinHTML.js,
  55 + data/static/robots.txt,
55 56 data/post-update, data/FrontPage.page, data/Help.page,
56 57 data/markup.Markdown, data/markup.RST,
57 58 data/markup.HTML, data/markup.LaTeX,

0 comments on commit 2473f07

Please sign in to comment.
Something went wrong with that request. Please try again.