Skip to content

Commit

Permalink
Add sidebar with short bio
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbarton committed Jun 30, 2012
1 parent 8268991 commit 5e20e69
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Expand Up @@ -21,7 +21,6 @@ site:
feed: 'http://feeds.feedburner.com/BioinformaticsZen'
rights: "Creative Commons Attribution 3.0 Unported"
navigation:
twitter: 'http://twitter.com/michaelbarton'
about: 'http://www.michaelbarton.me.uk'
email: 'mailto:mail@bioinformaticszen.com'
youtube: 'http://www.youtube.com/user/bioinformaticszen'
Expand All @@ -30,6 +29,7 @@ author:
uri: "http://www.michaelbarton.me.uk"
name: "Michael Barton"
email: "mail@michaelbarton.me.uk"
twitter: "http://twitter.com/michaelbarton"
scripts:
- "https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
- "/fancybox/javascript.js"
Expand Down
2 changes: 1 addition & 1 deletion content/stylesheets/stylesheet.scss
Expand Up @@ -6,7 +6,7 @@ body {
}

#sidebar {
width: 200px; }
width: 210px; }

.widget {
h3 {
Expand Down
2 changes: 1 addition & 1 deletion layouts/_footer.haml
Expand Up @@ -3,5 +3,5 @@
%p
= "Keep up to date with my thoughts on bioinformatics by"
%b
%a{:href => @site.config[:site][:navigation][:twitter] }
%a{:href => @site.config[:author][:twitter] }
= "following me on twitter."
9 changes: 0 additions & 9 deletions layouts/_navigation.haml

This file was deleted.

18 changes: 18 additions & 0 deletions layouts/_sidebar.haml
@@ -0,0 +1,18 @@
- if @site.config[:site][:navigation]
#sidebar
.widget
%h3 about
%p
= "I'm Michael Barton, a post-doctoral researcher in bioinformatics. I enjoy writing about data analysis and simple approaches to computational biology."
%p
= "Follow me on twitter as"
%b
%a{:href => @site.config[:author][:twitter] }
= "@michaelbarton."
.widget
%h3 links
%ul
- @site.config[:site][:navigation].each do |name,href|
%li
%a{:href => href}
= name
2 changes: 1 addition & 1 deletion layouts/default.haml
Expand Up @@ -22,5 +22,5 @@
= comments(@item)
- else
= render "_front"
= render "_navigation"
= render "_sidebar"
= google_analytics @site.config[:site][:analytics_token]

0 comments on commit 5e20e69

Please sign in to comment.