added humans and robots
This commit is contained in:
parent
a32956b4a2
commit
71413283c8
28
skeleton/novaconium/App/controllers/humans.php
Normal file
28
skeleton/novaconium/App/controllers/humans.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
header('Content-Type: text/plain; charset=UTF-8');
|
||||
header('Cache-Control: public, max-age=604800');
|
||||
|
||||
echo <<<TXT
|
||||
/*
|
||||
* This humans.txt was generated by the framework.
|
||||
* You may edit or remove it without affecting your site.
|
||||
*/
|
||||
|
||||
/* FRAMEWORK */
|
||||
Built With: Novaconium PHP
|
||||
repo: https://git.4lt.ca/4lt/novaconium
|
||||
Human: Nick Yeoman
|
||||
url: https://www.nickyeoman.com/
|
||||
Occupation: Linux Systems Administrator / Software Framework Author
|
||||
Location: Canada
|
||||
|
||||
/* SITE */
|
||||
Built with: Novaconium PHP
|
||||
Runs on: CORXN Container
|
||||
Optimized for: Humans
|
||||
|
||||
/* META */
|
||||
There are four lights.
|
||||
TXT;
|
||||
18
skeleton/novaconium/App/controllers/robots.php
Normal file
18
skeleton/novaconium/App/controllers/robots.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
// Send proper headers
|
||||
header('Content-Type: text/plain; charset=UTF-8');
|
||||
header('Cache-Control: public, max-age=604800');
|
||||
|
||||
// Use $config['base_url'] as-is
|
||||
$baseUrl = $config['base_url'];
|
||||
|
||||
echo <<<TXT
|
||||
# robots.txt for sites powered by Novaconium framework
|
||||
|
||||
User-agent: *
|
||||
Disallow: /novaconium/
|
||||
|
||||
Sitemap: {$baseUrl}/sitemap.xml
|
||||
TXT;
|
||||
@ -2,5 +2,11 @@
|
||||
$routes = [
|
||||
'/' => [
|
||||
'get' => 'index'
|
||||
],
|
||||
'/robots.txt' => [
|
||||
'get' => 'robots'
|
||||
],
|
||||
'/humans.txt' => [
|
||||
'get' => 'humans'
|
||||
]
|
||||
];
|
||||
Loading…
x
Reference in New Issue
Block a user