Skip to content

Commit

Permalink
Merge pull request #4 from information-safety/poole-updates
Browse files Browse the repository at this point in the history
Poole updates
  • Loading branch information
jabenninghoff authored Nov 25, 2016
2 parents 7745a4e + 9a05395 commit a9d2d12
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 32 deletions.
9 changes: 5 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
exclude: [vendor]

# Permalinks
#
# Use of `relative_permalinks` ensures post links from the index work properly.
permalink: pretty
# relative_permalinks no longer work in Jekyll v3
#relative_permalinks: true

# Setup
title: Infomation Safety
Expand Down Expand Up @@ -40,3 +36,8 @@ google_analytics: UA-70082859-1
#version: 2.0.0
#github:
# repo: https://github.com/poole/poole

# Gems
gems:
- jekyll-paginate
- jekyll-gist
9 changes: 0 additions & 9 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<head>
<meta charset="UTF-8">
<link href="http://gmpg.org/xfn/11" rel="profile">

<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>
Expand All @@ -13,14 +10,8 @@
{% endif %}
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}/styles.css">

<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}/public/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}/public/favicon.ico">

<!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/atom.xml">

</head>
12 changes: 5 additions & 7 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ <h1 class="post-title">{{ page.title }}</h1>

{% if site.related_posts != empty %}
<aside class="related">
<h2>Related Posts</h2>
<h3>Related posts</h3>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
</a>
</h3>
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
</a>
</li>
{% endfor %}
</ul>
Expand Down
16 changes: 8 additions & 8 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ body {
}

html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-family: $root-font-family;
font-size: $root-font-size;
line-height: $root-line-height;

@media (min-width: 38em) {
font-size: 18px;
@media (min-width: $large-breakpoint) {
font-size: $large-font-size;
}
}

body {
color: #515151;
background-color: #fff;
color: $body-color;
background-color: $body-bg;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

// No `:visited` state is required by default (browsers will use `a`)
a {
color: #268bd2;
color: $link-color;
text-decoration: none;

// `:focus` is linked to `:hover` for basic accessibility
Expand Down
4 changes: 2 additions & 2 deletions _sass/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

code,
pre {
font-family: Menlo, Monaco, "Courier New", monospace;
font-family: $code-font-family;
}

code {
padding: .25em .5em;
font-size: 85%;
color: #bf616a;
color: $code-color;
background-color: #f9f9f9;
border-radius: 3px;
}
Expand Down
6 changes: 6 additions & 0 deletions _sass/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
.page,
.post {
margin-bottom: 4em;

li + li {
margin-top: .25rem;
}
}

// Blog post or page title
Expand Down Expand Up @@ -36,7 +40,9 @@
.related {
padding-top: 2rem;
padding-bottom: 2rem;
margin-bottom: 2rem;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}

.related-posts {
Expand Down
2 changes: 1 addition & 1 deletion _sass/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

h1, h2, h3, h4, h5, h6 {
margin-bottom: .5rem;
font-weight: bold;
font-weight: 600;
line-height: 1.25;
color: #313131;
text-rendering: optimizeLegibility;
Expand Down
30 changes: 30 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
$gray-1: #f9f9f9;
$gray-2: #ccc;
$gray-3: #767676;
$gray-4: #515151;
$gray-5: #313131;

$red: #ac4142;
$orange: #d28445;
$yellow: #f4bf75;
$green: #90a959;
$cyan: #75b5aa;
$blue: #268bd2;
// $blue: #6a9fb5;
$brown: #8f5536;

$root-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
$root-font-size: 16px;
$root-line-height: 1.5;

$body-color: #515151;
$body-bg: #fff;
$link-color: $blue;

$border-color: #e5e5e5;

$large-breakpoint: 38em;
$large-font-size: 18px;

$code-font-family: Menlo, Monaco, "Courier New", monospace;
$code-color: #bf616a;
2 changes: 1 addition & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ layout: null

{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ site.url }}{{ site.baseurl }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
Expand Down
1 change: 1 addition & 0 deletions styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// Designed, built, and released under MIT license by @mdo. Learn more at
// https://github.com/poole/poole.

@import "variables";
@import "base";
@import "type";
@import "syntax";
Expand Down

0 comments on commit a9d2d12

Please sign in to comment.