Skip to content

Instantly share code, notes, and snippets.


Jesus Lizama hellojebus

Block or report user

Report or block hellojebus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hellojebus / index.html
Created Nov 22, 2019
Consistent Colors, no DB needed
View index.html
<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<body id="body">
View tmp
/* Colors */
/*** default font 15/22 **/
* {
margin: 0;
border: none;
padding: 0;
View check for 404's in blog
* This piece of code checks to see if the 404ing URL exists under blog
* if so, redirects to the page, if not render normal 404 page
* */
$tmpUrl = "https://".$_SERVER["SERVER_NAME"]."/blog". $_SERVER["REQUEST_URI"];
//check for trailing slash
if(substr($tmpUrl, -1) == '/') {
$tmpUrl = substr($tmpUrl, 0, -1);
You can’t perform that action at this time.