aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-12-27 11:28:44 -0500
committerJesús <heckyel@hyperbola.info>2019-12-27 11:28:44 -0500
commit020e8c5568039fc041e13a5bcf4ced286fb4cc84 (patch)
treea86a74f2579a5d45dc43d33b424b2071ee2b8bd0 /index.php
parent8811814800f1654249a88de1b77c4a59306166a6 (diff)
downloadportfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.lz
portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.xz
portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.zip
improve SEO
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/index.php b/index.php
index 5d81399..6e7a04f 100644
--- a/index.php
+++ b/index.php
@@ -3,14 +3,26 @@ require_once('smarty/libs/Smarty.class.php');
$titulo="Sitio personal de Jesús";
$nombre="Jesús";
$profesion="Desarrollador";
-$descripcion="Este es el sitio web personal de Jesús, un desarrollador, colaborador y hacker de proyectos con software Libre en reemplazo a las tecnologías privativas.";
+$description="Este es el sitio web personal de Jesús, un desarrollador, colaborador y hacker de proyectos con software Libre en reemplazo a las tecnologías privativas.";
$enviado = "";
+/* ---- ---- Generated URL ---- ---- */
+if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) {
+ $pro = 'https';
+} else {
+ $pro = 'http';
+}
+
+$extract_url = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
+// URL
+$siteurl = preg_replace( '/index.php/', '', $extract_url );
+
/* ---- ---- Correo ---- ---- */
require_once('mail/mail.php');
/* ---- ---- Menu ---- ---- */
$html=new Smarty;
+$html->assign("siteurl", $siteurl);
$html->assign("titulo", $titulo);
$html->assign("nombre", $nombre);
@@ -18,7 +30,7 @@ $html->assign("nombre", $nombre);
$html->assign('yesterday', strtotime("now"));
/* ---- ---- Description and Author ---- ---- */
-$html->assign("description", $descripcion);
+$html->assign("description", $description);
/* ---- ---- EMAIL ---- ---- */
$html->assign("enviado", $enviado);