disinclined.org
/
git
/
dylansserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'live' into seo
[dylansserver.git]
/
index.php
diff --git
a/index.php
b/index.php
index
e1d2376
..
1eb083b
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-86,7
+86,7
@@
abstract class cms {
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>$this->title</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>$this->title</title>
- <link rel="icon" href="favicon.ico" type="image/png">
+ <link rel="icon" href="
/
favicon.ico" type="image/png">
$stylesheets
$scripts
</head>
$stylesheets
$scripts
</head>
@@
-276,10
+276,17
@@
class page extends cms {
$month_posted = $date_posted[1];
$datetime_posted = explode(' ', $date_posted[2]);
$day_posted = $datetime_posted[0];
$month_posted = $date_posted[1];
$datetime_posted = explode(' ', $date_posted[2]);
$day_posted = $datetime_posted[0];
- echo "<div class='note'>";
- echo "<h1><span class='date'>$year_posted/$month_posted/$day_posted/</span><a href='$url'>$title</a></h1>";
- echo $entry['text'];
- echo "</div>";
+ $text = $entry['text'];
+ echo <<<END_NOTE
+ <div class='note'>
+ <h1>
+ <span class='date'>
+ $year_posted/$month_posted/$day_posted/
+ </span><a rel="canonical" href='$url'>$title</a>
+ </h1>
+ $text
+ </div>
+END_NOTE;
}
echo "</div>";
$this->write_navigation();
}
echo "</div>";
$this->write_navigation();