Commits

abernier committed 70642cf

more config options, etc.

Comments (0)

Files changed (5)

-application: adamchristopherbernier
+application: adam-bernier
 version: 1
 api_version: 1
 runtime: python
 SETTINGS = {
     'admin_name': 'Adam Bernier',
     'admin_email': 'adam.c.bernier@gmail.com',
-    'base_url': 'http://adamchristopherbernier.appspot.com',
-    'description': 'Yet another blog',
+    'base_url': 'http://adam-bernier.appspot.com',
+    'description': "Adam's Blog",
     'google_ajax_search': True,
     'google_analytics': False,
     'page_size': 5,
-    'site': 'adamchristopherbernier.appspot.com',
+    'site': 'adam-bernier.appspot.com',
 }
+
+NAVIGATION = {
+    'links': (
+            {'title': 'home', 'url': '/'},
+            {'title': 'about me', 'url': '/about',},
+            {'title': 'feed', 'url': '/feed'},
+        ),
+    'blogroll': (
+            {'title': 'Joey Bratton', 'url': 'http://www.joeyb.org/'},    
+            {'title': 'Adam Crossland', 'url': 'http://blog.adamcrossland.net/'},
+            {'title': 'Grig Gheorghiu', 'url': 'http://agiletesting.blogspot.com/'},
+            {'title': 'Nick Johnson', 'url': 'http://blog.notdot.net/',},
+            {'title': 'Bill Katz', 'url': 'http://bloog.billkatz.com/'},
+            {'title': 'Chris Mahan', 'url': 'http://christophermahan.com/'},
+            {'title': 'Jathan McCollum', 'url': 'http://jathan.com/'},
+            {'title': 'David Underhill', 'url': 'http://dound.com/'},
+        ),
+}

static/favicon.ico

Old
Old image
New
New image

templates/base.html

         var siteSearch = new google.search.WebSearch();
         siteSearch.setUserDefinedLabel("found...");
         siteSearch.setUserDefinedClassSuffix("siteSearch");
-        siteSearch.setSiteRestriction("adamchristopherbernier.appspot.com");
+        siteSearch.setSiteRestriction("{{ settings.site }}");
         searchControl.addSearcher(siteSearch);
 
         // Tell the searcher to draw itself and tell it where to attach
   <body>
     <div id="wrapper">
       <h3>
-        <a href="/">{{ settings.description }}</a>
+        {% for link in navigation_links %}
+            {% if forloop.first %}
+                <a href="{{ link.url }}">{{ link.title }}</a>
+            {% else %}
+                | <a href="{{ link.url }}">{{ link.title }}</a>
+            {% endif %}
+        {% endfor %}
         <a class="no_u" href="feed"><img alt="RSS feed" src="/static/img/feed-icon-14x14.png" /></a>
       </h3>
         
             <div id="searchcontrol">Loading...</div>
             <hr />
         {% endif %}
-      
-        <p class="loud"><a href="/about">about</a></p>
+
+        <p class="small">{{ greeting }}</p>
+
+        {% if is_admin %}
+          <div class="loud">
+            <a href="/admin">admin</a>
+          </div>
+          <div class="loud">
+            <a href="/admin/create">create</a>
+          </div>
+          <br />
+        {% endif %}
+        
+        {% if blogroll %}
+            <div>
+                <strong>some blogs I read:</strong>
+            </div>
+            <span class="small">(sorted alphabetically)</span>
+            {% for blog in blogroll %}
+                <div>
+                    <a href="{{ blog.url }}">{{ blog.title }}</a>
+                </div>
+            {% endfor %}
+            <br />
+        {% endif %}
 
         {% if tag_list %}
           <strong>tags:</strong>
               </div>
             {% endfor %}
           </div>
+          <br />
         {% endif %}
-
-        <p class="small">{{ greeting }}</p>
-
-        {% if is_admin %}
-          <p class="loud">
-            <a href="/admin">admin</a>
-          </p>
-          <p class="loud">
-            <a href="/admin/create">create</a>
-          </p>
-        {% endif %}
-            
-        <br />
             
         <div>
           <a class="no_u" href="http://code.google.com/appengine/"><img src="/static/img/appengine-silver-120x30.gif" alt="Powered by Google App Engine" /></a>
         
         tag_list = get_tag_list()
         
+        # odds and ends we'll need in many areas of the site
         template_args['current_uri'] = self.request.uri
         template_args['tag_list'] = tag_list
         template_args['user'] = user
         template_args['is_admin'] = users.is_current_user_admin()
         template_args['greeting'] = greeting
         
+        template_args['navigation_links'] = config.NAVIGATION['links']
+        template_args['blogroll'] = config.NAVIGATION['blogroll']
         template_args['settings'] = config.SETTINGS
         
         self.response.out.write(