Skip to content

Commit

Permalink
Removes all php short tags, adds default htaccess file and updates re…
Browse files Browse the repository at this point in the history
…adme with instructions on mod_rewrite
  • Loading branch information
jackmcdade committed Mar 30, 2012
1 parent a27df96 commit 407db7d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions content/20120327/index.php
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions content/20120329/index.php
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions content/20120330/index.php
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 4 additions & 0 deletions htaccess
Original file line number Diff line number Diff line change
@@ -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.