Skip to content

Commit

Permalink
relative root, drop scrollto from content layout
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed Feb 26, 2012
1 parent 942878e commit 8d792c5
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ To generate the site, simply start an SBT shell and type:

> make-site
> ghpages-push-site

To preview the site, start jekyll and browse to [localhost:4000](http://localhost:4000):

$ jekyll src/jekyll/ target/jekyll/ --server
2 changes: 1 addition & 1 deletion src/jekyll/_includes/footer.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<script type="text/javascript" src="jquery.scrollto.min.js"></script>
<script type="text/javascript" src="/jquery.scrollto.min.js"></script>
<script type="text/javascript">
(function($){ $(function(){
$("#top").click(function(){ $("#intro").ScrollTo(); })
Expand Down
4 changes: 2 additions & 2 deletions src/jekyll/_includes/header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<head>
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
<link href='resources/site.css' rel='stylesheet' type='text/css'>
<link href='resources/syntax.css' rel='stylesheet' type='text/css'>
<link href='/resources/site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
Expand Down
6 changes: 3 additions & 3 deletions src/jekyll/_includes/topbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<div class="container">
<a class="brand" href="/">SBT</a>
<ul class="nav">
<li><a href="learn.html">Learn</a>
<li><a href="download.html">Download</a>
<li><a href="community.html">Community</a></li>
<li><a href="/learn.html">Learn</a>
<li><a href="/download.html">Download</a>
<li><a href="/community.html">Community</a></li>
<li><a href="#top">Top</a></li>
</ul>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/jekyll/_layouts/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ <h2><span style="color:black;">sbt</span> {{page.title}}</h2>
</div>


{% include footer.txt %}
</body>
</html>


2 changes: 1 addition & 1 deletion src/jekyll/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8">
<title>simple build tool</title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
<link href='resources/site.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
<link href='/resources/site.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body class="cf">
Expand Down

0 comments on commit 8d792c5

Please sign in to comment.