]> git.quilime.com - plog.git/commitdiff
some updates and styles
authorGabriel Dunne <gdunne@quilime.com>
Mon, 17 Dec 2012 07:17:09 +0000 (23:17 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Mon, 17 Dec 2012 07:17:09 +0000 (23:17 -0800)
content/code/bash_profile_osx
content/config
css/style.css
lib/config.ini
templates/default.html.tpl
templates/entry.html.tpl
templates/nav.html.tpl

index 9d589426262a5bc4629590ed3d68ba30ae2ce193..b635e880c1b559f14717cb5ebe58c3c648939a38 100644 (file)
@@ -9,19 +9,32 @@ export TERM=xterm-color
 export LSCOLORS=GxFxCxDxBxegedabagacad
 
 
-# minimal prompt
-# export PS1="
-# $PWD
-# : "
+function parse_git_branch {
+  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+  echo "("${ref#refs/heads/}")"
+}
 
+#Black       0;30     Dark Gray     1;30
+#Blue        0;34     Light Blue    1;34
+#Green       0;32     Light Green   1;32
+#Cyan        0;36     Light Cyan    1;36
+#Red         0;31     Light Red     1;31
+#Purple      0;35     Light Purple  1;35
+#Brown       0;33     Yellow        1;33
+#Light Gray  0;37     White         1;37
 
-# current git branch
-export PS1="
-\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"
-print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').
-gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]
-$\[\033[00m\] "
+# colors
+RED="\[\033[31m\]"
+GREEN="\[\033[32m\]"
+YELLOW="\[\033[33m\]"
+BLUE="\[\033[0;34m\]"
+BLUE_B="\[\033[1;34m\]"
+WHITE_B="\[\033[1;37m\]"
+NO_COLOR="\[\033[0m\]"
 
+# prompt with git repo
+export PS1="$WHITE_B\u@\h $BLUE_B\w $RED\$(parse_git_branch) $NO_COLOR \n$BLUE_B\$ $NO_COLOR"
+export PS2="$BLUE_B> $NO_COLOR";
 
 # aliases
 alias ff="find . -type f -name "
index a28a8786864562280fcaff79d15282ddbfa91ad8..3a4c693968cbc4de446a70bf8773a604d9527201 100644 (file)
@@ -1,2 +1,2 @@
 title = quilime
-template = index
+template = home
index 06e7ef6636f5ed54cb769e49afc2aac0b6d62ec4..8949d4cfa4f9e490da836440179fff41606fcac2 100644 (file)
@@ -1,7 +1,6 @@
 body, table {
     font-family: arial, monaco, monospace;
     line-height:1.4em;
-    font-size:14px;
 }
 
 body {
@@ -33,13 +32,10 @@ h1 {
     padding-top:0;
     margin-top:0;
     margin-bottom:30px;
-    font-size
 }
 h1, h2, h3, h4, h5, h6 {
-    font-weight:normal;
     color:#666;
-    font-size:1em;
-    text-shadow:1px 1px 3px #000;
+    font-size:1.2em;
     letter-spacing:0.2em;
 }
 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
@@ -47,10 +43,8 @@ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
     color:#666;
 }
 h1 a {
-  color:#f0a;
 }
 h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
-  color:#fff;
 }
 
 
index cc7d500311ebf08f45ea47ebfb7bf916e8b28436..07337f0fafea27402b539ce72b0f12021f5ed2e1 100644 (file)
@@ -2,7 +2,7 @@
 ; general settings
 site_title  = quilime
 clean_urls  = 1
-limit       = 15
+limit       = 100
 ; http://php.net/manual/en/function.date.php
 date_format = M d Y, h:i:s A T
 
index 1bb277a3616d67b638807742359b2e16bada353e..d9cd1e3734110db1ebe19828ee9afaadd75680e3 100644 (file)
@@ -19,7 +19,7 @@
        <? endforeach; ?>
     </div>
 
-    <a href="/index">index &rarr;</a>
+    <a href="/index">&uarr; index</a>
     <br />
     <br />
     <br />
index 6e5fd00ba63bb319f974557439a7d6ef0dafed98..ef64ba56485778bb4d8f8c59c57e15ffd5b87a74 100644 (file)
        </div>
 
        <div class="metadata">
+<?php if (isset($entry['is_single']) && $entry['is_single']) { ?>
                <a href="/<?=$entry['url']?>">#</a>
                <br />
                <span title="<?=get_relative_time($entry['timestamp']);?>"><?=date("F d, Y", $entry['timestamp'])?></span> in
                <a href="/<?=$entry['cat']['url'];?>">/<?=$entry['cat']['url'];?></a><? if ($entry['tags']) echo '<br/>' . implode(', ', $entry['tags']); ?>
-       </div>
+<?php } ?>     
+</div>
 
        <? 
        if (isset($entry['is_single']) && $entry['is_single'] && $entry['comments_enabled'])
index 59812dde8cb792cbc08713fec7ec6ab0027fb3b1..e893de0191d99d93365f289225ada522de1ab230 100644 (file)
@@ -1,6 +1,6 @@
 <ul id="nav">
 
-    <li><a href="/">home</a></li>
+    <li><a href="/"><?=SITE_TITLE?></a></li>
 
     <br />
 
@@ -9,15 +9,10 @@
        <li><a href="/<?=$dir['url']?>"><?=$dir['name']?></a></li>
        <? endforeach; ?>
 
-    <br />
-
        <!-- <li><a href="/agg">aggregate</a></li> -->
        <li><a href="/photo">photo</a></li>
        <li><a href="/links">links</a></li>
 
-       <br />
-       <li><a href="/about">about</a></li>
-       <li><a href="/.rss">feed</a></li>
        <br />
        <br />