]> git.quilime.com - plog.git/commitdiff
Some more updates
authorGabriel Dunne <gdunne@quilime.com>
Sun, 15 Sep 2013 19:23:03 +0000 (12:23 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Sun, 15 Sep 2013 19:23:03 +0000 (12:23 -0700)
lib/config.ini
templates/nav.html.tpl
templates/projectlist.html.tpl

index 005e1bf327deb5b11a4821cc73685eef34f86b08..9e9443e8e53560d573df85d2b200f77537e68f1e 100644 (file)
@@ -1,5 +1,5 @@
 ; settings
-site_title  = GABRIEL DUNNE
+site_title  = gabriel dunne
 clean_urls  = 1
 limit       = 1000
 ; http://php.net/manual/en/function.date.php
index 46b49fe1251f96b097573d587feabb81eeec68a9..3a4b1024aba33a7043767e8f4dc06be0f96a6515 100644 (file)
@@ -8,8 +8,9 @@
         'order_by' => 'alpha',
         'order' => SORT_ASC
         ) ); ?>
+<li><a href="/info">about</a></li>        
 <li><a href="/projects/">projects</a></li>
-<li><a href="/info">about</a></li>
+
 
 <!-- <li><a href="/tag">tag</a></li> -->
     <? 
index e3ef42c2d934fa1f891f798fe3cc2a2ebc8e38bc..f7973bca9d67c0713deba0d86fee44008ba09d4f 100644 (file)
@@ -5,7 +5,19 @@ $projects = $m->entries;
 ?>
 
 <ul class="projectlist">
-<? foreach($projects as $entry): ?>
+<? 
+$d = 0;
+foreach($projects as $entry): 
+
+       $nd = date("Y", $entry->timestamp);
+
+       if ($d != $nd) {
+               // echo "<br />";
+               // echo $nd;
+               $d = $nd;
+       }
+       
+?>
     <li>
         <a href="<?=$entry->url;?>"><?=$entry->title;?></a>
     </li>