Skip to content

Commit 02fc8e7

Browse files
committed
add header and footer partials
1 parent facf572 commit 02fc8e7

File tree

3 files changed

+48
-46
lines changed

3 files changed

+48
-46
lines changed

_includes/footer.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
</section>
2+
</div>
3+
4+
<script type="text/javascript">
5+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
6+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
7+
</script>
8+
<script type="text/javascript">
9+
try {
10+
var pageTracker = _gat._getTracker("UA-962663-21");
11+
pageTracker._trackPageview();
12+
} catch(err) {}
13+
</script>
14+
</body>
15+
</html>

_includes/header.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html> <html>
2+
<head>
3+
<meta charset='utf-8'>
4+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
5+
6+
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
7+
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
8+
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
9+
10+
<title>{{ page.title }}</title>
11+
</head>
12+
13+
<body>
14+
15+
<header>
16+
<div class="container">
17+
<h1>wp-cli</h1>
18+
<h2>A command line interface for WordPress</h2>
19+
20+
<section id="downloads">
21+
<a href="https://github.com/wp-cli/wp-cli/zipball/master" class="btn">Download as .zip</a>
22+
<a href="https://github.com/wp-cli/wp-cli/tarball/master" class="btn">Download as .tar.gz</a>
23+
<a href="https://github.com/wp-cli/wp-cli" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
24+
</section>
25+
</div>
26+
</header>
27+
28+
<div class="container">
29+
<section id="main_content">
30+

_layouts/default.html

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,5 @@
1-
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<meta charset='utf-8'>
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
1+
{% include header.html %}
62

7-
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
8-
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
9-
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
3+
{{ content | markdownify }}
104

11-
<title>{{ page.title }}</title>
12-
</head>
13-
14-
<body>
15-
16-
<header>
17-
<div class="container">
18-
<h1>wp-cli</h1>
19-
<h2>A command line interface for WordPress</h2>
20-
21-
<section id="downloads">
22-
<a href="https://github.com/wp-cli/wp-cli/zipball/master" class="btn">Download as .zip</a>
23-
<a href="https://github.com/wp-cli/wp-cli/tarball/master" class="btn">Download as .tar.gz</a>
24-
<a href="https://github.com/wp-cli/wp-cli" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
25-
</section>
26-
</div>
27-
</header>
28-
29-
<div class="container">
30-
<section id="main_content">
31-
32-
{{ content | markdownify }}
33-
34-
</section>
35-
</div>
36-
37-
<script type="text/javascript">
38-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
39-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
40-
</script>
41-
<script type="text/javascript">
42-
try {
43-
var pageTracker = _gat._getTracker("UA-962663-21");
44-
pageTracker._trackPageview();
45-
} catch(err) {}
46-
</script>
47-
</body>
48-
</html>
5+
{% include footer.html %}

0 commit comments

Comments
 (0)