Commits

Sean Davis  committed 5573b07

Fixed for bootstrap v3

  • Participants
  • Parent commits f5d9e52

Comments (0)

Files changed (4)

   puts 'Publishing site...'
   sh('rsync', '-gpPrvz', src, dst)
   puts 'Site published.'
+end
+
+task :rupload do
+  # This tasks uploads the content of the 'output' directory to the web
+  # server. This specific rake task is specific to the Stoneship web site, but
+  # it should be easy to adjust it to meet your own needs.
+  #
+  # This tasks requires rsync.
+  #   
+  # To configure, set 'src' to the path of the output directory on your local
+  # computer (include a trailing slash). Set 'dst' to the path to your web
+  # root (without trailing slash). Take a look at the example to see how it's
+  # done (it's just a really simple rsync wrapper though).
+
+  # Settings
+  src = 'output/' # trailing slash
+  # Assumes rgale is set up in .ssh/config and ssh tunnel is in place.
+  dst = 'rgale:public_html/'               # no trailing slash
+
+  # Don't touch this!
+  puts 'Publishing site...'
+  sh('rsync', '-gpPrvz', src, dst)
+  puts 'Site published.'
 end

File content/index.html

 title: Home
 ---
 
-<div class="hero-unit">
+<div class="jumbotron">
 <h1><i>SeanDavis@NCI</i></h1>
 <br/>
 <p>As a researcher at the <a href="http://www.cancer.gov">National Cancer Institute</a>, part of the <a href="http://www.nih.gov">National Institutes of Health</a>, I work broadly in the areas of genomics and bioinformatics of high-throughtput data analysis.  In addition to data analysis and biologically-driven projects, I have a strong interest in developing software and tools for analysing and interpreting genomic data and help to lead the <a href="http://bioconductor.org">Bioconductor</a> project.  Take a look at my <a href="publications/">publications page</a> or my <a href="http://scholar.google.com/citations?user=hLFc29kAAAAJ" target="_blank">Google Scholar Profile</a> for details.</p>
 <h2>Recent Blog Posts</h2>
 <div class="row">
 <% @site.sorted_articles[0,3].each do |post| %>
-<div class="span4">
+<div class="col-4">
 <h4><%= post[:title] %></h4>
 <p><%= post[:created_at] %></p>
   <p>
   <%= content_for(post, :summary) || '(no summary)' %>
   </p>
-<p><a href="<%= relative_path_to(post.identifier) %>" class="btn">Read more &raquo;</a></p>
+<button type="button" class="btn btn-default"><a href="<%= relative_path_to(post.identifier) %>">Read more &raquo;</a></button>
 
 </div>
 <% end %>

File layouts/head.html

   <head>
     <meta charset="utf-8" />
-      <title>Sean Davis - <%= @title %></title>
-      <link rel="stylesheet" type="text/css" href="http://bootswatch.com/spacelab/bootstrap.min.css" />
-      <link rel="stylesheet" type="text/css" href="/css/solarized.css" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">         <title>Sean Davis - <%= @title %></title>
+    <link rel="stylesheet" type="text/css" href="http://bootswatch.com/spacelab/bootstrap.min.css" />
+    <link rel="stylesheet" type="text/css" href="/css/solarized.css" />
     <style>
       #main {
       padding-top:60px;
         }
       }
     </style>
-     <meta name="generator" content="nanoc 3.5" />
-      <script src="/js/jquery.js"></script>
-      <script src="/js/jquery_flash.js"></script>
-      <script src="http://code.jquery.com/jquery-latest.js"></script>
-      <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js"></script>
+    <meta name="generator" content="nanoc 3.5" />
+    <script src="/js/jquery.js"></script>
+    <script src="/js/jquery_flash.js"></script>
+    <script src="http://code.jquery.com/jquery-latest.js"></script>
+    <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js"></script>
   </head>

File layouts/header.html

-    <div class="navbar navbar-inverse navbar-fixed-top noprint">
-      <div class="navbar-inner">
 	<div class="container">
-	  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </a>
-          <div class="nav-collapse">
-	    <a class="brand" href="/">Sean Davis @ NCI</a>
-            <ul class="nav">
+          <div class="navbar navbar-fixed-top">
+	    <a class="navbar-brand" href="/">Sean Davis @ NCI</a>
+            <ul class="nav navbar-nav">
 	      <li><a href="/publications/">Publications</a></li>
 	      <li><a href="/software/">Software</a></li>
 	      <li><a href="/blog/">Blog</a></li>
 	      <li><a href="/tutorials/">Tutorials</a></li>
             </ul>
-            <ul class="nav pull-right">
+            <ul class="nav pull-right navbar-nav">
 	      <li class="divider-vertical"></li>
 	    <li><a href="https://github.com/seandavi" title="GitHub--Social coding" ><img src="/images/github-24x24.png" alt="github" /></a></li>
 	    <li><a href="http://www.linkedin.com/in/seandavi" title="Linked In" ><img src="/images/linkedin-24x24.png" alt="linkedin" /></a></li>
 		</ul>
               </li>
             </ul>
-          </div><!-- /.nav-collapse -->
 	</div>
-      </div><!-- /navbar-inner -->
-    </div><!-- /navbar -->