]> git.quilime.com - plog.git/commitdiff
content updates, and template fixes
authorGabriel Dunne <gdunne@quilime.com>
Sun, 11 Jul 2010 00:33:15 +0000 (17:33 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Sun, 11 Jul 2010 00:33:15 +0000 (17:33 -0700)
content/cat1/sub/entry [new file with mode: 0644]
content/cat1/sub/subby/way_deep [new file with mode: 0644]
content/cat2/another_test [new file with mode: 0644]
content/config [new file with mode: 0644]
templates/entry.html.tpl

diff --git a/content/cat1/sub/entry b/content/cat1/sub/entry
new file mode 100644 (file)
index 0000000..53ee85e
--- /dev/null
@@ -0,0 +1,3 @@
+title = a sub entry
+--
+a sub entry content
\ No newline at end of file
diff --git a/content/cat1/sub/subby/way_deep b/content/cat1/sub/subby/way_deep
new file mode 100644 (file)
index 0000000..96f14e4
--- /dev/null
@@ -0,0 +1,3 @@
+title = waaaya deep
+--
+yeah yeah
\ No newline at end of file
diff --git a/content/cat2/another_test b/content/cat2/another_test
new file mode 100644 (file)
index 0000000..399940c
--- /dev/null
@@ -0,0 +1,3 @@
+title = another test post
+--
+this is some content yo yo yo
\ No newline at end of file
diff --git a/content/config b/content/config
new file mode 100644 (file)
index 0000000..cf77a4f
--- /dev/null
@@ -0,0 +1,2 @@
+title = index
+template = index
\ No newline at end of file
index d0f1a4a11753ad1410f6dbc49b49ddd0e1283617..aa618b9e1a8c721910148177cebcf024eff9f9ea 100644 (file)
@@ -2,22 +2,21 @@
 
        <h2>
                <a title="posted on <?=$data['date']?>" href="<?=$data['url']?>"><?=$data['title']?></a>
-               <span class="title-date" title="<?=date("F d, Y", $data['timestamp'])?>"><?=get_relative_time($data['timestamp']);?></span>             
        </h2>
 
        <div class="content">
                <?=$data['content']?>
        </div>
 
-       <? if ($single) :?>
        <div class="metadata">
-               posted <?=date("F d, Y", $data['timestamp'])?> in <a href="/<?=$data['cat'];?>/"><?=$data['cat'];?></a><br/>
+               posted <abbr title="<?=get_relative_time($data['timestamp']);?>"><?=date("F d, Y", $data['timestamp'])?></abbr> 
+               in <a href="<?=get_base_dir();?>/<?=$data['cat'];?>"><?=$data['cat'];?></a>
+               <br/>
                <ul class="tags">
-               <? foreach($data['tags'] as $tag) : ?>
+               <? if ($data['tags']) foreach($data['tags'] as $tag) : ?>
                <li>#<?=$tag?></li>
                <? endforeach; ?>
                </ul>
        </div>
-       <? endif; ?>
 
 </div>