Skip to content

Commit 73bc21a

Browse files
committed
change back to xhtml
1 parent a417400 commit 73bc21a

File tree

4 files changed

+14
-70
lines changed

4 files changed

+14
-70
lines changed

_includes/_footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<footer class="footer">
1+
<div class="footer">
22
<p>Andor Chen 保留部分权力。基于<a href="http://creativecommons.org/licenses/by-sa/3.0/" title="Creative Commons Attribution-ShareAlike 3.0 Unported License" target="_blank">“CC 3.0 BY-SA 协议”</a>发布</p>
3-
</footer>
3+
</div>
44
</div>
55
</body>
66
</html>

_includes/_header.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<!DOCTYPE html>
2-
<html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
4-
<meta charset="utf-8" />
5-
<title>Ruby on Rails 教程{% if page.title %} - {{ page.title }}{% endif %}</title>
6-
<link rel="stylesheet" type="text/css" href="assets/css/style.css?5" />
7-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
4+
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
5+
<title>Ruby on Rails 教程{% if page.title %} - {{ page.title }}{% endif %}</title>
6+
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
7+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
88
<script type="text/javascript" src="assets/js/jquery.tableofcontents.min.js"></script>
99
<script type="text/javascript" src="assets/js/global.js"></script>
1010
</head>
1111
<body>
1212
<div class="wrapper">
13-
<header>
14-
<hgroup>
15-
<h1 class="logo"><a class="ir" href="{{ site.url }}">Ruby on Rails 教程</a></h1>
16-
<h2 class="subtitle">Ruby on Rails Tutorial 原书第二版</h2>
17-
</hgroup>
18-
</header>
13+
<div class="header">
14+
<h1 class="logo"><a class="ir" href="{{ site.url }}">Ruby on Rails 教程</a></h1>
15+
<p class="subtitle">Ruby on Rails Tutorial 原书第二版</p>
16+
</div>

_layouts/chapter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% include _header.html %}
22

3-
<article class="content">
3+
<div class="content">
44
<h1>{{ page.title }}</h1>
55
<ol class="toc"></ol>
66

77
<div class="main">
88
{{ content }}
99
</div>
10-
</article>
10+
</div>
1111

1212
{% include _footer.html %}

assets/css/style.css

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,5 @@
11
/*! normalize.css v1.0.1 | MIT License | git.io/normalize */
22

3-
/* ==========================================================================
4-
HTML5 display definitions
5-
========================================================================== */
6-
7-
/*
8-
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
9-
*/
10-
11-
article,
12-
aside,
13-
details,
14-
figcaption,
15-
figure,
16-
footer,
17-
header,
18-
hgroup,
19-
nav,
20-
section,
21-
summary {
22-
display: block;
23-
}
24-
25-
/*
26-
* Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
27-
*/
28-
29-
audio,
30-
canvas,
31-
video {
32-
display: inline-block;
33-
*display: inline;
34-
*zoom: 1;
35-
}
36-
37-
/*
38-
* Prevents modern browsers from displaying `audio` without controls.
39-
* Remove excess height in iOS 5 devices.
40-
*/
41-
42-
audio:not([controls]) {
43-
display: none;
44-
height: 0;
45-
}
46-
47-
/*
48-
* Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3,
49-
* and Safari 4.
50-
* Known issue: no IE 6 support.
51-
*/
52-
53-
[hidden] {
54-
display: none;
55-
}
56-
573
/* ==========================================================================
584
Base
595
========================================================================== */

0 commit comments

Comments
 (0)