diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-27 11:28:44 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-27 11:28:44 -0500 |
commit | 020e8c5568039fc041e13a5bcf4ced286fb4cc84 (patch) | |
tree | a86a74f2579a5d45dc43d33b424b2071ee2b8bd0 /index.php | |
parent | 8811814800f1654249a88de1b77c4a59306166a6 (diff) | |
download | portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.lz portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.xz portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.zip |
improve SEO
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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); |