Added robots.txt
This commit is contained in:
parent
8c33ea85b5
commit
af96bdf2ac
2 changed files with 17 additions and 1 deletions
11
app.py
11
app.py
|
|
@ -1,5 +1,5 @@
|
|||
from modules.cuchulublog import cuchulublog_app
|
||||
from flask import request, g, url_for
|
||||
from flask import request, g, url_for, make_response
|
||||
from settings import config
|
||||
from paramecio2.libraries.mtemplates import PTemplate, env_theme
|
||||
from paramecio2.libraries.i18n import I18n
|
||||
|
|
@ -165,6 +165,15 @@ def cuchulublog_about():
|
|||
|
||||
return t.load_template('about.phtml', title=I18n.lang('cuchulublog', 'about', 'About'))
|
||||
|
||||
@cuchulublog_app.route('/robots.txt')
|
||||
def cuchulu_robots():
|
||||
|
||||
resp=make_response("User-Agent: *\nAllow: /")
|
||||
|
||||
resp.headers['Content-Type']='text/plain'
|
||||
|
||||
return resp
|
||||
|
||||
if config.default_module=="cuchulublog":
|
||||
|
||||
home=cuchulublog_app.route("/")(cuchulublog_home)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@ base_url=config.application_root
|
|||
<%block name="metatags">
|
||||
</%block>
|
||||
<title>${title}</title>
|
||||
<meta name="title" content="${lang('cuchulublog', 'cuchulu_com_talking_about', 'Cuchulu.com. Hablando de ingeniería informática.')}">
|
||||
<meta name="description" content="${lang('cuchulublog', 'cuchulu_com_personal_project', 'Página personal de los proyectos relacionados con Paramecio Framework, Linux, Apache, NGINX, Email servers, selfcloud y más cosas...')}">
|
||||
<meta name="keywords" content="cloud, linux, apache, nginx, python, php, webserver, selfcloud, mi cloud, ahorrar dinero en servidor">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="language" content="Spanish">
|
||||
<meta name="author" content="Antonio De La Rosa">
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue