Permalink
Browse files

Removes all php short tags, adds default htaccess file and updates re…

…adme with instructions on mod_rewrite
  • Loading branch information...
jackmcdade committed Mar 30, 2012
1 parent a27df96 commit 407db7df69d8145c7197761b3c0459794e227eba
Showing with 11 additions and 6 deletions.
  1. +1 −0 README.md
  2. +2 −2 content/20120327/index.php
  3. +2 −2 content/20120329/index.php
  4. +2 −2 content/20120330/index.php
  5. +4 −0 htaccess
View
@@ -8,6 +8,7 @@ Chronicle is a simple, chronilogically organized, file-based publishing engine.
* Drop Chronicle on your server (local or otherwise)
* Customize the main `config.yaml` file to set your global site information
* rename the `htaccess` file to `.htaccess` (support for no mod_rewrite access is on the roadmap)
* Start publishing!
## Diving In
@@ -1,6 +1,6 @@
<h1><?= $title ?></h1>
<h6>May 27th.</h6>
<ul>
<?php if ($prev): ?><li><a href="<?= $prev ?>">Previous</a></li><? endif ?>
<?php if ($next): ?><li><a href="<?= $next ?>">Next</a></li><? endif ?>
<?php if ($prev): ?><li><a href="<?php echo $prev ?>">Previous</a></li><?php endif ?>
<?php if ($next): ?><li><a href="<?php echo $next ?>">Next</a></li><?php endif ?>
</ul>
@@ -1,6 +1,6 @@
<h1><?= $title ?></h1>
<h6>May 29th.</h6>
<ul>
<?php if ($prev): ?><li><a href="<?= $prev ?>">Previous</a></li><? endif ?>
<?php if ($next): ?><li><a href="<?= $next ?>">Next</a></li><? endif ?>
<?php if ($prev): ?><li><a href="<?php echo $prev ?>">Previous</a></li><?php endif ?>
<?php if ($next): ?><li><a href="<?php echo $next ?>">Next</a></li><?php endif ?>
</ul>
@@ -1,6 +1,6 @@
<h1><?= $title ?></h1>
<h6>May 30th.</h6>
<ul>
<?php if ($prev): ?><li><a href="<?= $prev ?>">Previous</a></li><? endif ?>
<?php if ($next): ?><li><a href="<?= $next ?>">Next</a></li><? endif ?>
<?php if ($prev): ?><li><a href="<?php echo $prev ?>">Previous</a></li><?php endif ?>
<?php if ($next): ?><li><a href="<?php echo $next ?>">Next</a></li><?php endif ?>
</ul>
View
@@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

0 comments on commit 407db7d

Please sign in to comment.