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 | |
parent | 8811814800f1654249a88de1b77c4a59306166a6 (diff) | |
download | portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.lz portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.tar.xz portfolio-020e8c5568039fc041e13a5bcf4ced286fb4cc84.zip |
improve SEO
-rw-r--r-- | index.php | 16 | ||||
-rw-r--r-- | templates/index.tpl | 9 |
2 files changed, 23 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); 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 @@ <meta name="description" content="{$description}"> <meta content="index,follow" name="robots"/> <title>{$titulo}</title> + <!-- Meta Article --> + <meta name="author" content="{$nombre}"/> + <!-- OpenGraph --> + <meta property="og:title" content="{$titulo}"/> + <meta property="og:site_name" content="{$titulo}"> + <meta property="og:description" content="{$description}"/> + <meta property="og:url" content="{$siteurl}"/> + <meta property="og:image" content="{$templates.favicon}"/> + <link rel="icon" href="{$templates.favicon}" sizes="192x192" /> <link rel="stylesheet" type="text/css" href="{$templates.normalize}" /> <link rel="stylesheet" type="text/css" href="{$templates.estilos}" /> |