Merge pull request #964 from benbalter/html-template-site

Make Template site HTML5
This commit is contained in:
Parker Moore 2013-05-05 12:05:47 -07:00
commit 50d66831ff
7 changed files with 131 additions and 125 deletions

1
lib/site_template/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_site

View File

@ -1 +1,2 @@
name: Your New Jekyll Site
pygments: true pygments: true

View File

@ -1,17 +1,24 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> <html>
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width">
<!-- syntax highlighting CSS --> <!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css" type="text/css" /> <link rel="stylesheet" href="/css/syntax.css">
<!-- Homepage CSS -->
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" /> <!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">
</head> </head>
<body> <body>
<div class="container">
<div class="site"> <div class="site">
<div class="title"> <div class="header">
<a href="/">Your Name</a> <h1 class="title"><a href="/">{{ site.name }}</a></h1>
<a class="extra" href="/">home</a> <a class="extra" href="/">home</a>
</div> </div>
@ -32,7 +39,8 @@
</p> </p>
</div> </div>
</div> </div>
</div>
<a href="http://github.com/yourusername"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a> </div> <!-- /container -->
</body> </body>
</html> </html>

View File

@ -1,6 +1,9 @@
--- ---
layout: default layout: default
--- ---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div id="post"> <div id="post">
{{ content }} {{ content }}
</div> </div>

View File

@ -3,9 +3,7 @@
/* Common /* Common
/* /*
/*****************************************************************************/ /*****************************************************************************/
/* Global Reset */ /* Global Reset */
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -16,9 +14,9 @@ html, body {
} }
body { body {
background-color: white; background-color: #FFF;
font: 13.34px helvetica, arial, clean, sans-serif; font: 13.34px helvetica, arial, clean, sans-serif;
*font-size: small; font-size: small;
text-align: center; text-align: center;
} }
@ -39,7 +37,7 @@ a {
} }
a:hover { a:hover {
color: black; color: #000;
} }
a:visited { a:visited {
@ -56,7 +54,6 @@ table {
/* Home /* Home
/* /*
/*****************************************************************************/ /*****************************************************************************/
ul.posts { ul.posts {
list-style-type: none; list-style-type: none;
margin-bottom: 2em; margin-bottom: 2em;
@ -77,38 +74,39 @@ ul.posts {
/* Site /* Site
/* /*
/*****************************************************************************/ /*****************************************************************************/
.site { .site {
font-size: 110%; font-size: 115%;
text-align: justify; text-align: justify;
width: 42em; width: 42em;
margin: 3em auto 2em auto; margin: 3em auto 2em;
line-height: 1.5em; line-height: 1.5em;
} }
.title { .site .header a {
color: #a00;
font-weight: bold; font-weight: bold;
text-decoration: none;
}
.site .header h1.title {
display: inline-block;
margin-bottom: 2em; margin-bottom: 2em;
} }
.site .title a { .site .header h1.title a {
color: #a00; color: #a00;
text-decoration: none;
} }
.site .title a:hover { .site .header h1.title a:hover {
color: black; color: #000;
} }
.site .title a.extra { .site .header a.extra {
color: #aaa; color: #aaa;
text-decoration: none;
margin-left: 1em; margin-left: 1em;
} }
.site .title a.extra:hover { .site .header a.extra:hover {
color: black; color: #000;
} }
.site .meta { .site .meta {
@ -147,21 +145,17 @@ ul.posts {
/* Posts /* Posts
/* /*
/*****************************************************************************/ /*****************************************************************************/
#post { #post {
} }
/* standard */ /* standard */
#post pre { #post pre {
border: 1px solid #ddd; border: 1px solid #ddd;
background-color: #eef; background-color: #eef;
padding: 0 .4em; padding: 0 .4em;
} }
#post ul, #post ul,#post ol {
#post ol {
margin-left: 1.35em; margin-left: 1.35em;
} }
@ -177,11 +171,10 @@ ul.posts {
} }
/* terminal */ /* terminal */
#post pre.terminal { #post pre.terminal {
border: 1px solid black; border: 1px solid #000;
background-color: #333; background-color: #333;
color: white; color: #FFF;
} }
#post pre.terminal code { #post pre.terminal code {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB