| @@ -55,14 +55,14 @@ function showHomepage() |
| 55 | |
55 | |
| 56 | // Create a template |
56 | // Create a template |
| 57 | include_once('_classes/Template.php'); |
57 | include_once('_classes/Template.php'); |
| 58 | $template = new Template( |
58 | $template = new Template([ |
| 59 | $GLOBALS['fullDomain'], |
59 | 'Canonical_URL' => $GLOBALS['fullDomain'], |
| 60 | 'Explore the thoughts of...', |
60 | 'Page_Description' => 'Explore the thoughts of...', |
| 61 | 'Blog | YourName', |
61 | 'Page_Title' => 'Blog | YourName', |
| 62 | '', |
62 | 'Page_Extras' => '', |
| 63 | $contentCol, |
63 | 'Content_Column' => $contentCol, |
| 64 | '' |
64 | 'User_Comments' => '', |
| 65 | ); |
65 | ]); |
| 66 | |
66 | |
| 67 | // Echo the HTML to the user |
67 | // Echo the HTML to the user |
| 68 | $template->echoTemplate(); |
68 | $template->echoTemplate(); |
| @@ -102,14 +102,14 @@ function showPost($params) |
| 102 | |
102 | |
| 103 | // Create a template |
103 | // Create a template |
| 104 | include_once('_classes/Template.php'); |
104 | include_once('_classes/Template.php'); |
| 105 | $template = new Template( |
105 | $template = new Template([ |
| 106 | $GLOBALS['fullDomain'] . '/post/' . $query, |
106 | 'Canonical_URL' => $GLOBALS['fullDomain'] . '/post/' . $query, |
| 107 | $headerData->description . ' Read more at ' . $GLOBALS['fullDomain'] . '!', |
107 | 'Page_Description' => $headerData->description . ' Read more at ' . $GLOBALS['fullDomain'] . '!', |
| 108 | $headerData->title . ' | Blog', |
108 | 'Page_Title' => $headerData->title . ' | Blog', |
| 109 | '<link rel="stylesheet" href="/static/prism.css"><script src="/static/prism.js"></script>', |
109 | 'Page_Extras' => '<link rel="stylesheet" href="/static/prism.css"><script src="/static/prism.js"></script>', |
| 110 | $contentCol, |
110 | 'Content_Column' => $contentCol, |
| 111 | $commentSection |
111 | 'User_Comments' => $commentSection, |
| 112 | ); |
112 | ]); |
| 113 | |
113 | |
| 114 | // Echo the HTML to the user |
114 | // Echo the HTML to the user |
| 115 | $template->echoTemplate(); |
115 | $template->echoTemplate(); |
| @@ -132,14 +132,14 @@ function showComments() |
| 132 | |
132 | |
| 133 | // Create a template |
133 | // Create a template |
| 134 | include_once('_classes/Template.php'); |
134 | include_once('_classes/Template.php'); |
| 135 | $template = new Template( |
135 | $template = new Template([ |
| 136 | $GLOBALS['fullDomain'] . '/comments/', |
136 | 'Canonical_URL' => $GLOBALS['fullDomain'] . '/comments/', |
| 137 | 'Read through some recent comments for blog posts at ' . $GLOBALS['fullDomain'] . '.', |
137 | 'Page_Description' => 'Read through some recent comments for blog posts at ' . $GLOBALS['fullDomain'] . '.', |
| 138 | 'Recent Comments | Blog', |
138 | 'Page_Title' => 'Recent Comments | Blog', |
| 139 | '<link rel="stylesheet" href="/static/prism.css"><script src="/static/prism.js"></script><meta name="robots" content="noindex,nofollow">', |
139 | 'Page_Extras' => '<link rel="stylesheet" href="/static/prism.css"><script src="/static/prism.js"></script><meta name="robots" content="noindex,nofollow">', |
| 140 | '', |
140 | 'Content_Column' => '', |
| 141 | $commentSection |
141 | 'User_Comments' => $commentSection, |
| 142 | ); |
142 | ]); |
| 143 | |
143 | |
| 144 | // Echo the HTML to the user |
144 | // Echo the HTML to the user |
| 145 | $template->echoTemplate(); |
145 | $template->echoTemplate(); |
| @@ -156,14 +156,14 @@ function showCategory() |
| 156 | |
156 | |
| 157 | // Create a template |
157 | // Create a template |
| 158 | include_once('_classes/Template.php'); |
158 | include_once('_classes/Template.php'); |
| 159 | $template = new Template( |
159 | $template = new Template([ |
| 160 | $GLOBALS['fullDomain'] . '/categories/', |
160 | 'Canonical_URL' => $GLOBALS['fullDomain'] . '/categories/', |
| 161 | 'Browse the categories for blog posts at ' . $GLOBALS['fullDomain'] . '.', |
161 | 'Page_Description' => 'Browse the categories for blog posts at ' . $GLOBALS['fullDomain'] . '.', |
| 162 | 'Categories | Blog', |
162 | 'Page_Title' => 'Categories | Blog', |
| 163 | '<meta name="robots" content="noindex,nofollow">', |
163 | 'Page_Extras' => '<meta name="robots" content="noindex,nofollow">', |
| 164 | $contentCol, |
164 | 'Content_Column' => $contentCol, |
| 165 | '' |
165 | 'User_Comments' => '', |
| 166 | ); |
166 | ]); |
| 167 | |
167 | |
| 168 | // Echo the HTML to the user |
168 | // Echo the HTML to the user |
| 169 | $template->echoTemplate(); |
169 | $template->echoTemplate(); |