Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Integrating gem layouts

  • Loading branch information...
commit fe64a2485733ed1fe852ce5274139d0e0f32d25e 1 parent 409a279
Philip (flip) Kromer authored
4 .gitignore
@@ -12,6 +12,7 @@ nohup.out
12 12 /**/log/*
13 13 /**/cache/*
14 14 /**/db/*.sqlite3
  15 +tmp
15 16 *DONTVERSION*
16 17 config/*private*
17 18 a.out
@@ -28,3 +29,6 @@ pkg
28 29 .settings
29 30 .tasks-cache
30 31 *.tmproj
  32 +
  33 +_drafts/
  34 +_site/
18 _layouts/default.html
@@ -9,8 +9,8 @@
9 9 <meta name="viewport" content="width=940" />
10 10 <meta name="keywords" content="{{ page.keywords | join:"," }},{{ site.keywords | join:"," }},ruby,gem"/>
11 11 <meta name="description" content="{{ site.description }}"/>
12   - <!-- <link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/{{ site.gemuser }}-github-com-{{ site.gemname }}" title="{{ site.gemuser }}/{{ site.gemname }}" /> -->
13   - <link rel="alternate" type="application/atom+xml" href="/atom.xml" title="{{ site.gemuser }}/{{ site.gemname }}" />
  12 + <!-- <link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/{{ site.gemuser }}-github-com/{{ site.gemname }}" title="{{ site.gemuser }}/{{ site.gemname }} news" /> -->
  13 + <link rel="alternate" type="application/atom+xml" href="atom.xml" title="{{ site.gemuser }}/{{ site.gemname }} news" />
14 14 <link rel="shortcut icon" href="/favicon.ico" />
15 15 <!--[if IE]>
16 16 <link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen, projection" />
@@ -18,6 +18,7 @@
18 18 <link rel="stylesheet" type="text/css" href="/css/print.css" media="print" />
19 19 <link rel="stylesheet" type="text/css" href="/css/main.css" media="screen, projection" />
20 20 <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
  21 + <link rel="stylesheet" type="text/css" href="gem.css" media="screen, projection" />
21 22 </head>
22 23 <body>
23 24
@@ -26,9 +27,9 @@
26 27 <a href="/">{{ site.gemuser }}/{{ site.gemname }}</a>
27 28 &middot; <a class="extra" href="http://github.com/{{ site.gemuser }}/{{ site.gemname }}">source code</a>
28 29 {% for segment in site.header_files %}
29   - &middot; <a class="extra" href="/{{ segment }}.html">{{ segment | downcase }}</a>
  30 + &middot; <a class="extra" href="{{ segment }}.html">{{ segment | downcase }}</a>
30 31 {% endfor %}
31   - </div>
  32 + </div>
32 33
33 34 <div class="download"><a href="http://github.com/{{ site.gemuser }}/{{ site.gemname }}/zipball/master"><img border="0" width="72" src="/images/zip.png"></a><a href="http://github.com/{{ site.gemuser }}/{{ site.gemname }}/tarball/master"><img border="0" width="72" src="/images/tar.png"></a><a href="http://gems.github.com/gems/{{ site.gemuser }}-{{ site.gemname }}-{{ site.gemversion }}.gem"><img border="0" width="72" src="/images/gem.png"></a></div>
34 35 {{ content | textilize }}
@@ -52,9 +53,14 @@
52 53 </div>
53 54 <div class="rss">
54 55 <!-- http://feeds.feedburner.com/{{ site.gemuser }}-github-com-{{ site.gemname }} -->
55   - <a href="/atom.xml"><img src="/images/rss.png" alt="Subscribe to RSS Feed" /></a>
  56 + <!-- <a href="http://feeds.feedburner.com/{{ site.gemuser }}-github-com/{{ site.gemname }}" title="{{ site.gemuser }}/{{ site.gemname }} news" /> -->
  57 + <a href="atom.xml"><img src="/images/rss.png" alt="Subscribe to RSS Feed" /></a>
  58 + </div>
  59 + <br class="clear">
  60 + <div class="credits">
  61 + {{ site.credits }}
  62 + <p >Thanks to <a href="http://github.com/mojombo/">github.com/mojombo</a> for the swanky HTML layout.</p>
56 63 </div>
57   - <p class="clear">Thanks to <a href="http://github.com/mojombo/">github.com/mojombo</a> for the swanky HTML layout.</p>
58 64 </div>
59 65 </div>
60 66
15 css/main.css
@@ -127,28 +127,25 @@ h2 { line-height: 22px; }
127 127 /*
128 128 /*****************************************************************************/
129 129
130   -.download { height: 72px ; float: right;
  130 +.download {
  131 + height: 72px ; float: right;
131 132 border: 1px solid #ddd ;
132 133 border-width: 0 0 1px 0 ;
133   -
134   - }
  134 + }
135 135 h1.gemheader {
136 136 margin: 0px 0 0.5em -38px ;
137   - font-size: 50px ; line-height: 1.0 ;
  137 + text-indent: 38px ;
138 138 height: 72px ;
139 139 padding: 20px 0 14px 0px;
140   - text-indent: 38px ;
141 140 background: url('/images/edamame-72.png') no-repeat 0px 23px ;
  141 + font-size: 50px ; line-height: 1.0 ;
142 142 border: 0px none #fff;
143 143 text-align: left ;
144 144 /* background-color: #fee ; */
145 145 }
146   -/* .edamame { float:left ; height: 92px ; width:350px; margin-left: -40px ; padding-left: 40px; padding-bottom: 20px ; background: url('/images/edamame-72.png') no-repeat 0px 25px ;} */
147 146 h1.gemheader>.small { font-size: 0.60em }
148 147 h1.gemheader a { color: black; text-decoration: none; }
149 148 .description { font-size: 1.2em; font-weight: bold;}
150   -/* #footer { text-align:center; padding-top:30px; font-style: italic; } */
151   -
152 149
153 150 /*****************************************************************************/
154 151 /*
@@ -194,6 +191,8 @@ ul.posts span {
194 191 #footer .rss { float: right; margin-right: -.2em; margin-top: 1.33em; }
195 192 #footer .rss img { border: 0; }
196 193
  194 +#footer .credits p { margin-top: 0.5em }
  195 +
197 196 .list.aligned a { width: 80px ; display: inline-block ; }
198 197 .list.aligned60 a { width: 60px ; display: inline-block ; }
199 198
BIN  images/comments-blue.png
BIN  images/comments.png
BIN  images/flickr.com_50824323_belgianchocolate.jpg
BIN  images/wukong.png
BIN  images/www.curtbusse.com_okavango_page1_oka008-trans.png
BIN  images/www.curtbusse.com_okavango_page1_oka008.jpg
9 javascripts/application.js
... ... @@ -1,9 +1,12 @@
1 1 jQuery.fn.accordion = function(){
2 2 $(this).toggleClass("closed");
3 3 $(this).parent(".toggle").find('> :not(h2)').toggle();
4   - console.log("clicked");
  4 + // console.log("clicked");
5 5 }
6 6
  7 +function collapse_accordions() {
  8 + $(".toggle h2").accordion();
  9 +}
7 10
8 11 // ***************************************************************************
9 12 //
@@ -11,5 +14,7 @@ jQuery.fn.accordion = function(){
11 14 //
12 15 $(document).ready(function(){
13 16 $(".toggle h2").click(function(){ $(this).accordion(); });
14   - // $(".toggle h2").accordion();
  17 + // collapse_accordions()
15 18 });
  19 +
  20 +$('h1.gemheader').click(function(){ collapse_accordions(); });
16 news.html
@@ -3,18 +3,4 @@
3 3 title: mrflip.github.com/edamame - News
4 4 ---
5 5
6   -<div id="home">
7   - <!-- <h1>Sticky</h1> -->
8   - <!-- <ul class="posts"> -->
9   - <!-- <li><span>30 Apr 2009</span> &raquo; <a href="http://link">link text</a></li> -->
10   - <!-- </ul> -->
11   -
12   - <h1>Edamame News</h1>
13   - <ul class="posts">
14   - {% for post in site.posts %}
15   - <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
16   - {% endfor %}
17   - </ul>
18   -
19   -</div>
20   -
  6 +{% include news.html %}

0 comments on commit fe64a24

Please sign in to comment.
Something went wrong with that request. Please try again.