dynamic titles

pull/14/head
Patricio Gonzalez Vivo 9 years ago
parent 09fa462de8
commit 9301b03b53

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": about this book";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": What is a shader?";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Hello world!";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": uniforms";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Running your shader";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": shaping functions";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": color";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Shapes";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": 2D Matrices";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Patterns";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Random";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,7 @@
<?php
$path = "..";
$subtitle = ": Noise";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -1,6 +1,9 @@
<?php
$path = "..";
if(!empty($_GET))
$subtitle = ": ".$_GET['search'];
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");

@ -6,9 +6,15 @@ echo '
<html>
<head>
<meta charset="utf-8">
<title>The Book of Shaders</title>
<meta name="keywords" content="shader,shaders,GLSL,book,pixel,fragment,uniform,texture,procedural,generative,matrix,random,noise" />
<meta name="description" content="This is a gentle step-by-step guide through the abstract and complex universe of Fragment Shaders." />
<title>The Book of Shaders'.$subtitle.'</title>
<meta name="keywords" content="shader,openGL,WebGL,GLSL,book,procedural,generative" />
<meta name="description" content="Gentle step-by-step guide through the abstract and complex universe of Fragment Shaders." />
<meta name="twitter:site" content="@bookofshaders">
<meta name="twitter:title" content="The Book Of Shaders">
<meta name="twitter:description" content="Gentle step-by-step guide through the abstract and complex universe of Fragment Shaders.">
<meta name="twitter:creator" content="@patriciogv">
<meta name="twitter:domain" content="thebookofshaders.edu">
<!-- CodeMirror -->
<link type="text/css" rel="stylesheet" href="'.$path.'/src/codemirror/css/codemirror.css">

Loading…
Cancel
Save