Skip to content

Commit 54b214d

Browse files
committed
Refactored the default template and added the page template.
1 parent 44a3a17 commit 54b214d

File tree

6 files changed

+130
-72
lines changed

6 files changed

+130
-72
lines changed

_includes/footer.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
<div id="footer">
2-
<div class="fine-print">
3-
<p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_cn/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a>, <a href="/it/">Italian</a>, <a href="/cs/">Czech</a>, <a href="/bg/">Bulgarian</a> and <a href="/tr/">Turkish</a>.</p>
4-
<p>This website is was generated by <a href="http://www.jekyllrb.com/">Jekyll</a>.
5-
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
6-
our <a href="mailto:[email protected]">webmaster</a> for questions or comments
7-
concerning this website.</p>
8-
9-
</div>
10-
</div>
1+
<p>Content available in <a href="/en/">English</a>, <a href="/fr/">French</a>, <a href="/ja/">Japanese</a>, <a href="/ko/">Korean</a>, <a href="/pl/">Polish</a>, <a href="/es/">Spanish</a>, <a href="/pt/">Portuguese</a>, <a href="/zh_cn/">Simplified Chinese</a>, <a href="/zh_TW/">Traditional Chinese</a>, <a href="/id/">Bahasa Indonesia</a>, <a href="/de/">German</a>, <a href="/it/">Italian</a>, <a href="/cs/">Czech</a>, <a href="/bg/">Bulgarian</a> and <a href="/tr/">Turkish</a>.</p>
2+
<p>This website is was generated by <a href="http://www.jekyllrb.com/">Jekyll</a>.
3+
It is proudly maintained by <a href="http://rubyidentity.org">members of the Ruby community</a>. Please contact
4+
our <a href="mailto:[email protected]">webmaster</a> for questions or comments
5+
concerning this website.</p>

_includes/search.html

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
<div id="search-box">
2-
<form id="search-form" action="http://www.google.com/cse">
3-
<table class="fieldset">
4-
<tr>
5-
<td>
6-
<input class="field" type="text" name="q" size="31" style="background: white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat" onfocus="this.style.background='white'" onblur="if (/^\s*$/.test(this.value)) this.style.background='white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat'"/>
7-
</td>
8-
<td>
9-
<input type="hidden" name="cx" value="013598269713424429640:g5orptiw95w" />
10-
<input type="hidden" name="ie" value="UTF-8" />
11-
<input class="button" type="submit" name="sa" value="Search" />
12-
</td>
13-
</tr>
14-
</table>
15-
</form>
16-
</div>
1+
<form id="search-form" action="http://www.google.com/cse">
2+
<table class="fieldset">
3+
<tr>
4+
<td>
5+
<input class="field" type="text" name="q" size="31" style="background: white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat" onfocus="this.style.background='white'" onblur="if (/^\s*$/.test(this.value)) this.style.background='white url(http://www.google.com/coop/intl/en/images/google_custom_search_watermark.gif) left no-repeat'"/>
6+
</td>
7+
<td>
8+
<input type="hidden" name="cx" value="013598269713424429640:g5orptiw95w" />
9+
<input type="hidden" name="ie" value="UTF-8" />
10+
<input class="button" type="submit" name="sa" value="Search" />
11+
</td>
12+
</tr>
13+
</table>
14+
</form>

_includes/sidebar.html

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
<div id="sidebar-wrapper">
2-
<div id="sidebar">
3-
<div class="navigation"><a href="/en/downloads/"><img src="/images/download.gif" alt="Download Ruby" title="" /></a></div>
1+
{% if page.sidebar != null %}
2+
<div class="navigation">
3+
{{ page.sidebar }}
4+
</div>
5+
{% endif %}
46

5-
<div class="navigation">
6-
<h3><strong>Get Started,</strong> it&#8217;s easy!</h3>
7+
<div class="navigation">
8+
<h3><strong>Get Started,</strong> it&#8217;s easy!</h3>
79

8-
<ul class="menu">
9-
<li><a href="http://TryRuby.org">Try Ruby! (in your browser)</a></li>
10+
<ul class="menu">
11+
<li><a href="http://TryRuby.org">Try Ruby! (in your browser)</a></li>
1012

11-
<li><a href="/en/documentation/quickstart/">Ruby in Twenty Minutes</a></li>
12-
<li><a href="/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a></li>
13-
</ul>
14-
</div>
13+
<li><a href="/en/documentation/quickstart/">Ruby in Twenty Minutes</a></li>
14+
<li><a href="/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a></li>
15+
</ul>
16+
</div>
1517

16-
<div class="navigation">
17-
<h3><strong>Explore</strong> a new world&hellip;</h3>
18-
<ul class="menu">
19-
<li><a href="/en/documentation/">Documentation</a></li>
20-
<li><a href="http://www.amazon.com/s/ref=sr_nr_n_5?ie=UTF8&amp;rs=1000&amp;keywords=Ruby&amp;rh=i%3Aaps%2Ck%3ARuby%2Ci%3Astripbooks%2Cn%3A1000%2Cn%3A5">Books</a></li>
21-
<li><a href="/en/libraries/">Libraries</a></li>
22-
<li><a href="/en/documentation/success-stories/">Success Stories</a></li>
18+
<div class="navigation">
19+
<h3><strong>Explore</strong> a new world&hellip;</h3>
20+
<ul class="menu">
21+
<li><a href="/en/documentation/">Documentation</a></li>
22+
<li><a href="http://www.amazon.com/s/ref=sr_nr_n_5?ie=UTF8&amp;rs=1000&amp;keywords=Ruby&amp;rh=i%3Aaps%2Ck%3ARuby%2Ci%3Astripbooks%2Cn%3A1000%2Cn%3A5">Books</a></li>
23+
<li><a href="/en/libraries/">Libraries</a></li>
24+
<li><a href="/en/documentation/success-stories/">Success Stories</a></li>
2325

24-
</ul>
25-
</div>
26+
</ul>
27+
</div>
2628

27-
<div class="navigation">
28-
<h3><strong>Participate</strong> in a friendly and growing community.</h3>
29-
<ul>
30-
<li><a href="/en/community/mailing-lists/">Mailing Lists</a>: Talk about Ruby with programmers from all around the world.</li>
31-
<li><a href="/en/community/user-groups/">User Groups</a>: Get in contact with Rubyists in your area.</li>
29+
<div class="navigation">
30+
<h3><strong>Participate</strong> in a friendly and growing community.</h3>
31+
<ul>
32+
<li><a href="/en/community/mailing-lists/">Mailing Lists</a>: Talk about Ruby with programmers from all around the world.</li>
33+
<li><a href="/en/community/user-groups/">User Groups</a>: Get in contact with Rubyists in your area.</li>
3234

33-
<li><a href="/en/community/weblogs/">Weblogs</a>: Read about what&#8217;s happening right now in the Ruby community.</li>
34-
<li><a href="/en/community/ruby-core/">Ruby Core</a>: Help polish the rough edges of the latest Ruby.</li>
35-
<li><a href="http://redmine.ruby-lang.org/">Issue Tracking</a>: Report or help solve issues in Ruby.</li>
36-
</ul>
37-
</div>
35+
<li><a href="/en/community/weblogs/">Weblogs</a>: Read about what&#8217;s happening right now in the Ruby community.</li>
36+
<li><a href="/en/community/ruby-core/">Ruby Core</a>: Help polish the rough edges of the latest Ruby.</li>
37+
<li><a href="http://redmine.ruby-lang.org/">Issue Tracking</a>: Report or help solve issues in Ruby.</li>
38+
</ul>
39+
</div>
3840

39-
<h3>Some Top Ruby Projects</h3>
41+
<h3>Some Top Ruby Projects</h3>
4042

41-
<ul>
42-
<li><a href="http://rubyforge.org/projects/flvtool2/" title="FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV).
43-
It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML.">FLVTool2</a></li>
43+
<ul>
44+
<li><a href="http://rubyforge.org/projects/flvtool2/" title="FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV).
45+
It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML.">FLVTool2</a></li>
4446

45-
<li><a href="http://rubyforge.org/projects/emm-ruby/" title="Ruby Enterprise Edition is a branch of Ruby, which includes an enhanced garbage collector and developer tools. This allows one to reduce memory usage of Ruby on Rails applications by 33% on average.">Ruby Enterprise Edition</a></li>
47+
<li><a href="http://rubyforge.org/projects/emm-ruby/" title="Ruby Enterprise Edition is a branch of Ruby, which includes an enhanced garbage collector and developer tools. This allows one to reduce memory usage of Ruby on Rails applications by 33% on average.">Ruby Enterprise Edition</a></li>
4648

47-
<li><a href="http://rubyforge.org/projects/sqlite-ruby/" title="A Ruby interface for the SQLite database engine.">SQLite-Ruby</a></li>
49+
<li><a href="http://rubyforge.org/projects/sqlite-ruby/" title="A Ruby interface for the SQLite database engine.">SQLite-Ruby</a></li>
4850

49-
<li><a href="http://rubyforge.org/projects/ruby-dbi/" title="Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI.">Ruby/DBI</a></li>
51+
<li><a href="http://rubyforge.org/projects/ruby-dbi/" title="Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI.">Ruby/DBI</a></li>
5052

51-
<li><a href="http://rubyforge.org/projects/wtr/" title="Watir is a testing tool for automating browser-based tests of web applications. It is a Ruby library that works with Internet Explorer and Firefox.">Watir</a></li>
53+
<li><a href="http://rubyforge.org/projects/wtr/" title="Watir is a testing tool for automating browser-based tests of web applications. It is a Ruby library that works with Internet Explorer and Firefox.">Watir</a></li>
5254

53-
</ul>
54-
<p class="more"><a href="/en/libraries/top-projects/">More&#8230;</a></p>
55+
</ul>
56+
<p class="more"><a href="/en/libraries/top-projects/">More&#8230;</a></p>
5557

5658

57-
<h3>Syndicate</h3>
58-
<p><a href="/en/feeds/news.rss">Recent News (RSS)</a></p>
59-
</div>
60-
</div>
59+
<h3>Syndicate</h3>
60+
<p><a href="/en/feeds/news.rss">Recent News (RSS)</a></p>

_includes/sitelinks.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="/en/downloads/">Downloads</a><span class="separator"> | </span><a href="/en/documentation/">Documentation</a><span class="separator"> | </span><a href="/en/libraries/">Libraries</a><span class="separator"> | </span><a href="/en/community/">Community</a><span class="separator"> | </span><a href="/en/news/">News</a><span class="separator"> | </span><a href="/en/security/">Security</a><span class="separator"> | </span><a href="/en/about/">About Ruby</a>

_layouts/default.html

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,40 @@
1616
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
1717
</head>
1818

19-
<body id="home-page-layout">
20-
{{ content }}
19+
<body>
20+
<div id="page">
21+
<div id="header">
22+
<div id="logo">
23+
<img src="/images/logo.gif" width="331" height="119" alt="Ruby - A Programmer's Best Friend" title="">
24+
</div>
25+
<div class="site-links">
26+
{% include sitelinks.html %}
27+
</div>
28+
</div>
29+
<hr class="hidden-modern" />
30+
31+
<div id="main-wrapper">
32+
<div id="main">
33+
{{ content }}
34+
35+
<div class="foot">
36+
<div class="site-links">
37+
{% include sitelinks.html %}
38+
</div>
39+
</div>
40+
</div>
41+
</div>
42+
43+
<div id="search-box">
44+
{% include search.html %}
45+
</div>
46+
<div id="footer">
47+
<div class="fine-print">
48+
{% include footer.html %}
49+
</div>
50+
</div>
51+
</div>
52+
53+
{% include analytics.html %}
2154
</body>
2255
</html>

_layouts/page.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div id="content-wrapper">
6+
<div id="head-wrapper-1">
7+
<div id="head-wrapper-2">
8+
<div id="head">
9+
{% if page.header != null %}
10+
<div id="intro">
11+
{{ page.header | markdownify }}
12+
</div>
13+
{% else %}
14+
<h1>{{ page.title }}</h1>
15+
{% endif %}
16+
</div>
17+
</div>
18+
</div>
19+
20+
<div id="content">
21+
{{ content }}
22+
</div>
23+
</div>
24+
<hr class="hidden-modern" />
25+
26+
<div id="sidebar-wrapper">
27+
<div id="sidebar">
28+
{% include sidebar.html %}
29+
</div>
30+
</div>
31+
<hr class="hidden-modern" />

0 commit comments

Comments
 (0)