From 020e8c5568039fc041e13a5bcf4ced286fb4cc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 27 Dec 2019 11:28:44 -0500 Subject: improve SEO --- index.php | 16 ++++++++++++++-- templates/index.tpl | 9 +++++++++ 2 files changed, 23 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); diff --git a/templates/index.tpl b/templates/index.tpl index 8e383b2..ed54ec4 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -6,6 +6,15 @@ {$titulo} + + + + + + + + + -- cgit v1.2.3