Style the blog

This commit is contained in:
Tyler Hallada 2014-07-13 19:18:26 -04:00
parent e030713d82
commit 47c05887f5
6 changed files with 164 additions and 199 deletions

View File

@ -1,3 +1,3 @@
name: Your New Jekyll Site
name: Tyler Hallada - Blog
markdown: redcarpet
pygments: true

View File

@ -1,10 +1,18 @@
<!DOCTYPE html>
<html>
<html style="background: whitesmoke">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1, max-scale=1">
<!-- 3rd party CSS -->
<link rel="stylesheet" href="/css/normalize.css">
<!-- Fix IE -->
<!--[if lt IE 9]>
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
<!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css">
@ -12,33 +20,24 @@
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">
<!-- Web Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="site">
<div class="header">
<h1 class="title"><a href="/">{{ site.name }}</a></h1>
<div class="container">
<div class="row clearfix header">
<h1 class="title"><a href="/blog">{{ site.name }}</a></h1>
<a class="extra" href="/">home</a>
</div>
{{ content }}
<div class="footer">
<div class="contact">
<p>
Tyler Hallada<br />
Programmer and writer<br />
tyler@hallada.net
</p>
</div>
<div class="contact">
<p>
<a href="https://github.com/yourusername">github.com/thallada</a><br />
<a href="https://twitter.com/yourusername">twitter.com/tyhallada</a><br />
<div class="row clearfix footer">
<div class="column full contact">
<p class="contact-info">
<a href="mailto:tyler@hallada.net">tyler@hallada.net</a>
</p>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,9 +1,18 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post">
{{ content }}
<div class="card">
<div class="row clearfix post-header">
<div class="column three-fourths">
<a href="{{ post.url }}"><h2 class="post-title">{{ page.title }}</h2></a>
</div>
<div class="column fourth">
<span class="timestamp">{{ page.date | date_to_string }}</span>
</div>
</div>
<div class="row clearfix">
<div class="column full post">
{{ content }}
</div>
</div>
</div>

View File

@ -1,13 +1,27 @@
---
layout: default
title: Tyler Hallada
title: Tyler Hallada - Blog
---
<div id="home">
<h1>Blog Posts</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
{% for post in site.posts %}
<div class="card">
<div class="row clearfix post-header">
<div class="column three-fourths">
<a href="{{ post.url }}"><h2 class="post-title">{{ post.title }}</h2></a>
</div>
<div class="column fourth">
<span class="timestamp">{{ post.date | date_to_string }}</span>
</div>
</div>
<div class="row clearfix">
<div class="column full post">
{{ post.excerpt }}
</div>
</div>
<div class="row clearfix more-row">
<div class="column full">
<a href="{{ post.url }}" class="read-more">Read More &raquo;</a>
</div>
</div>
</div>
{% endfor %}

View File

@ -12,31 +12,61 @@
box-sizing: border-box;
}
/* Global Reset */
/** {*/
/*margin: 0;*/
/*padding: 0;*/
/*}*/
html {
width: 100%;
height: 100%;
}
/*makes the page overflow, so commenting out for now*/
/*html, body { height: 100%; }*/
body {
font-family: 'Open Sans', Arial, sans-serif;
font-style: normal;
font-weight: 400;
color: #444;
}
/*body {*/
/*background-color: #FFF;*/
/*font: 13.34px Helvetica, Arial, sans-serif;*/
/*font-size: small;*/
/*text-align: center;*/
/*}*/
strong {
font-weight: 400;
color: FireBrick;
}
/*h1, h2, h3, h4, h5, h6 {*/
/*font-size: 100%; }*/
h2 {
font-weight: 300;
}
/*h1 { margin-bottom: 1em; }*/
/*p { margin: 1em 0; }*/
hr {
width: 75%;
}
/*a { color: #00a; }*/
/*a:hover { color: #000; }*/
/*a:visited { color: #a0a; }*/
a {
color:FireBrick;
text-decoration: none;
}
a:visited {
color:#855C85;
}
a:hover {
color:FireBrick;
text-decoration: underline;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
blockquote {
margin-left: 20px;
margin-right: 20px;
padding-left: 1rem;
border-left: solid 3px #aaa;
}
blockquote p {
margin-bottom: 6px;
}
/*****************************************************************************/
/*
@ -106,94 +136,59 @@ img { width: auto; max-width: 100%; height: auto; }
/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
.posts {
list-style-type: none;
margin-bottom: 2em;
}
.posts li {
line-height: 1.75em;
}
.posts span {
color: #aaa;
font-family: Monaco, "Courier New", monospace;
font-size: 80%;
}
/*****************************************************************************/
/*
/* Site
/* Blog
/*
/*****************************************************************************/
.site {
font-size: 115%;
text-align: justify;
width: 42em;
margin: 3em auto 2em;
line-height: 1.5em;
}
.header a {
font-weight: bold;
text-decoration: none;
}
.title {
h1.title {
display: inline-block;
margin-bottom: 2em;
padding-right: 10px;
font-size: 2rem;
font-weight: 200;
}
.title a {
color: #a00;
div.header a {
color: FireBrick;
}
.title a:hover {
color: #000;
span.timestamp {
font-size: 0.85rem;
}
.header a.extra {
color: #aaa;
margin-left: 1em;
}
.header a.extra:hover {
color: #000;
}
.meta {
color: #aaa;
}
.footer {
font-size: 80%;
color: #666;
border-top: 4px solid #eee;
margin-top: 2em;
overflow: hidden;
}
.footer .contact {
float: left;
margin-right: 3em;
}
.footer .contact a {
color: #8085C1;
}
.footer .rss {
margin-top: 1.1em;
margin-right: -.2em;
@media (min-width: 40rem) {
span.timestamp {
float: right;
font-size: 0.85rem;
}
}
.footer .rss img {
border: 0;
.post-header {
padding-bottom: 10px;
}
a.read-more {
float: right;
font-size: 0.85rem;
}
h2.post-title {
margin-top: 0;
margin-bottom: 10px;
}
@media (min-width: 40rem) {
p.contact-links {
float: right;
}
}
.contact {
text-align: center;
padding-bottom: 10px;
}
div.more-row {
padding-top: 5px;
}
/*****************************************************************************/
@ -241,8 +236,6 @@ img { width: auto; max-width: 100%; height: auto; }
/*****************************************************************************/
#home {
font-family: 'Open Sans', Arial, sans-serif;
color: #444;
display: block;
position: relative;
padding-top: 1.5rem;
@ -261,65 +254,13 @@ img { width: auto; max-width: 100%; height: auto; }
user-select: none;
}
html {
width: 100%;
height: 100%;
}
h1 {
h1.big-name {
font-size: 2rem;
font-weight: 200;
margin-top: 0;
text-align: center;
}
strong {
font-weight: 400;
color: FireBrick;
}
h2 {
font-size: .9rem;
line-height: 2.5;
color: gray;
font-weight: 400;
}
hr {
width: 75%;
}
a {
color:FireBrick;
text-decoration: none;
}
a:visited {
color:#663366;
}
a:hover {
color:FireBrick;
text-decoration: underline;
}
canvas {
position: fixed;
top: 0;
left: 0;
}
blockquote {
margin-left: 20px;
margin-right: 20px;
padding-left: 1rem;
border-left: solid 3px #aaa;
}
blockquote p {
margin-bottom: 6px;
}
#front-quote , #front-quote, p {
margin-top: 0;
margin-bottom: 0;
@ -377,9 +318,11 @@ blockquote p {
a.no-decoration {
color: #444;
}
a.no-decoration:visited {
color: #444;
}
a.no-decoration:hover {
color: #444;
text-decoration: none;

View File

@ -7,7 +7,7 @@ title: Tyler Hallada
<div class="card profile-card">
<div class="row clearfix">
<div class="column full">
<h1>Tyler Hallada</h1>
<h1 class="big-name">Tyler Hallada</h1>
</div>
</div>
<div class="row clearfix">