Skip to content

Commit 28a0bb8

Browse files
authored
Create Robots.latte
1 parent a6e8e90 commit 28a0bb8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Robots.latte

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{*
2+
* This file is part of Nepttune (https://www.peldax.com)
3+
*
4+
* Copyright (c) 2018 Václav Pelíšek (info@peldax.com)
5+
*
6+
* This software consists of voluntary contributions made by many individuals
7+
* and is licensed under the MIT license. For more information, see
8+
* <https://www.peldax.com>.
9+
*}
10+
11+
Sitemap: {$baseUrl}/sitemap.xml
12+
13+
{foreach $robots as $robot}
14+
User-agent: {$robot['name']}
15+
{if is_array($robot['disallow'])}
16+
{foreach $robot['disallow'] as $rule}
17+
Disallow: {$rule}
18+
{/foreach}
19+
{else}
20+
Disallow:
21+
{/if}
22+
23+
{/foreach}

0 commit comments

Comments
 (0)