| ... | ... |
@@ -42,7 +42,13 @@ which tells Jekyll how to processes posts and pages. |
| 42 | 42 |
Octopress adds some custom paramaters to give you more publishing flexibility and you can [read about those here](#include_link), |
| 43 | 43 |
but for now. Go ahead and type up a sample post or use some [inspired filler](http://baconipsum.com/). |
| 44 | 44 |
|
| 45 |
-### Generate Your Blog |
|
| 45 |
+{% pullquote %}
|
|
| 46 |
+ When writing longform posts, I find it helpful to include pullquotes, which help those scanning a post discern whether or not a post is helpful. |
|
| 47 |
+ It is important to note, {" pullquotes are merely visual in presentation and should not appear twice in the text. "} That is why it is prefered
|
|
| 48 |
+ to use a CSS only technique for styling pullquotes. |
|
| 49 |
+{% endpullquote %}
|
|
| 50 |
+ |
|
| 51 |
+## Generate Your Blog |
|
| 46 | 52 |
|
| 47 | 53 |
rake preview |
| 48 | 54 |
|
| ... | ... |
@@ -5,8 +5,6 @@ $link-color-visited: darken(adjust_hue($link_color, 70), 10) !default; |
| 5 | 5 |
$link-color-active: darken($link-color-hover, 15) !default; |
| 6 | 6 |
|
| 7 | 7 |
// Main Section Colors |
| 8 |
-$body-color: #333333 !default; |
|
| 9 |
-$light-text: #999999 !default; |
|
| 10 | 8 |
$page-bg: #252525 !default; |
| 11 | 9 |
$article-border: #eeeeee !default; |
| 12 | 10 |
$main-bg: #f5f5f5 !default; |
| ... | ... |
@@ -16,42 +14,42 @@ $header-border: lighten($header-bg, 15) !default; |
| 16 | 16 |
$title-color: #f2f2f2 !default; |
| 17 | 17 |
$subtitle-color: #aaa !default; |
| 18 | 18 |
|
| 19 |
-$type-color: #222 !default; |
|
| 20 |
-$type-color-light: #555 !default; |
|
| 19 |
+$text-color: #222 !default; |
|
| 20 |
+$text-color-light: #aaa !default; |
|
| 21 | 21 |
$type-border: #ddd !default; |
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
/* Navigation */ |
| 25 | 25 |
$nav-bg: #ccc !default; |
| 26 | 26 |
$nav-color: darken($nav-bg, 38) !default; |
| 27 |
-$nav-color-hover: darken($nav-color, 25); |
|
| 28 |
-$nav-placeholder: desaturate(darken($nav-bg, 10), 15); |
|
| 29 |
-$nav-border: darken($nav-bg, 10); |
|
| 30 |
-$nav-border-top: lighten($nav-bg, 15); |
|
| 31 |
-$nav-border-bottom: darken($nav-bg, 25); |
|
| 32 |
-$nav-border-left: darken($nav-bg, 11); |
|
| 33 |
-$nav-border-right: lighten($nav-bg, 7); |
|
| 27 |
+$nav-color-hover: darken($nav-color, 25) !default; |
|
| 28 |
+$nav-placeholder: desaturate(darken($nav-bg, 10), 15) !default; |
|
| 29 |
+$nav-border: darken($nav-bg, 10) !default; |
|
| 30 |
+$nav-border-top: lighten($nav-bg, 15) !default; |
|
| 31 |
+$nav-border-bottom: darken($nav-bg, 25) !default; |
|
| 32 |
+$nav-border-left: darken($nav-bg, 11) !default; |
|
| 33 |
+$nav-border-right: lighten($nav-bg, 7) !default; |
|
| 34 | 34 |
|
| 35 | 35 |
/* Sidebar colors */ |
| 36 | 36 |
$sidebar-bg: #eee !default; |
| 37 | 37 |
$sidebar-link-color: $link-color !default; |
| 38 | 38 |
$sidebar-link-color-hover: $link-color-hover !default; |
| 39 |
-$sidebar-color: change-color(mix($type-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default; |
|
| 40 |
-$sidebar-border: desaturate(darken($sidebar-bg, 7), 10); |
|
| 41 |
-$sidebar-border: darken($sidebar-bg, 7); |
|
| 42 |
-$sidebar-link-color-subdued: lighten($sidebar-color, 20); |
|
| 43 |
-$sidebar-link-color-subdued-hover: $sidebar-link-color-hover; |
|
| 44 |
-$twitter-status-link: lighten($sidebar-link-color-subdued, 15); |
|
| 39 |
+$sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default; |
|
| 40 |
+$sidebar-border: desaturate(darken($sidebar-bg, 7), 10) !default; |
|
| 41 |
+$sidebar-border: darken($sidebar-bg, 7) !default; |
|
| 42 |
+$sidebar-link-color-subdued: lighten($sidebar-color, 20) !default; |
|
| 43 |
+$sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default; |
|
| 44 |
+$twitter-status-link: lighten($sidebar-link-color-subdued, 15) !default; |
|
| 45 | 45 |
|
| 46 | 46 |
$footer-color: #999999 !default; |
| 47 | 47 |
$footer-bg: #ccc !default; |
| 48 |
-$footer-color: darken($footer-bg, 38); |
|
| 49 |
-$footer-color-hover: darken($footer-color, 10); |
|
| 50 |
-$footer-border-top: lighten($footer-bg, 15); |
|
| 51 |
-$footer-border-bottom: darken($footer-bg, 15); |
|
| 52 |
-$footer-link-color: darken($footer-bg, 38); |
|
| 53 |
-$footer-link-color-hover: darken($footer-color, 25); |
|
| 54 |
-$page-border-bottom: darken($footer-bg, 5); |
|
| 48 |
+$footer-color: darken($footer-bg, 38) !default; |
|
| 49 |
+$footer-color-hover: darken($footer-color, 10) !default; |
|
| 50 |
+$footer-border-top: lighten($footer-bg, 15) !default; |
|
| 51 |
+$footer-border-bottom: darken($footer-bg, 15) !default; |
|
| 52 |
+$footer-link-color: darken($footer-bg, 38) !default; |
|
| 53 |
+$footer-link-color-hover: darken($footer-color, 25) !default; |
|
| 54 |
+$page-border-bottom: darken($footer-bg, 5) !default; |
|
| 55 | 55 |
|
| 56 | 56 |
// Form Colors |
| 57 | 57 |
$fieldset-bg: #ececec; |
| ... | ... |
@@ -19,7 +19,7 @@ body > header h1 {
|
| 19 | 19 |
|
| 20 | 20 |
body {
|
| 21 | 21 |
line-height: 1.5em; |
| 22 |
- color: $type-color; |
|
| 22 |
+ color: $text-color; |
|
| 23 | 23 |
@extend .serif; |
| 24 | 24 |
} |
| 25 | 25 |
|
| ... | ... |
@@ -115,7 +115,7 @@ blockquote {
|
| 115 | 115 |
+ p > cite {
|
| 116 | 116 |
margin-left: $bq-margin; |
| 117 | 117 |
text-align: right; |
| 118 |
- &:before { content: '– '; color: $type-color-light; }
|
|
| 118 |
+ &:before { content: '– '; color: $text-color-light; }
|
|
| 119 | 119 |
a { font-style: italic; }
|
| 120 | 120 |
} |
| 121 | 121 |
} |
| ... | ... |
@@ -131,11 +131,11 @@ blockquote {
|
| 131 | 131 |
/* Pull out to the right, modular scale based margins. */ |
| 132 | 132 |
float: right; |
| 133 | 133 |
width: 45%; |
| 134 |
- margin: 1em 0 1em 1.5em; |
|
| 134 |
+ margin: .5em 0 1em 1.5em; |
|
| 135 | 135 |
|
| 136 | 136 |
/* Baseline correction */ |
| 137 | 137 |
position: relative; |
| 138 |
- top: 6px; |
|
| 138 |
+ top: 7px; |
|
| 139 | 139 |
font-size: 1.4em; |
| 140 | 140 |
line-height: 1.45em; |
| 141 | 141 |
} |
| ... | ... |
@@ -14,11 +14,8 @@ $border: inline-image('dotted-border.png');
|
| 14 | 14 |
padding-top: 0; |
| 15 | 15 |
} |
| 16 | 16 |
} |
| 17 |
- time + .byline:before, .byline + time +time:before {
|
|
| 18 |
- content: "\2022 "; |
|
| 19 |
- padding: 0 .3em 0 .2em; |
|
| 20 |
- display: inline-block; |
|
| 21 |
- @include opacity(.5); |
|
| 17 |
+ .byline + time:before, time +time:before, .comments:before {
|
|
| 18 |
+ @extend .separator; |
|
| 22 | 19 |
} |
| 23 | 20 |
header {
|
| 24 | 21 |
position: relative; |
| ... | ... |
@@ -33,7 +30,7 @@ $border: inline-image('dotted-border.png');
|
| 33 | 33 |
} |
| 34 | 34 |
p {
|
| 35 | 35 |
font-size: .9em; |
| 36 |
- color: $type-color-light; |
|
| 36 |
+ color: $text-color-light; |
|
| 37 | 37 |
margin: 0; |
| 38 | 38 |
@extend .sans; |
| 39 | 39 |
&.meta {
|
| ... | ... |
@@ -82,9 +79,20 @@ $border: inline-image('dotted-border.png');
|
| 82 | 82 |
} |
| 83 | 83 |
#disqus_thread { }
|
| 84 | 84 |
|
| 85 |
+ iframe.twitter-share-button {
|
|
| 86 |
+ //display: block; |
|
| 87 |
+ //margin-top: .5em; |
|
| 88 |
+ //padding: .2em 0; |
|
| 89 |
+ position: relative; |
|
| 90 |
+ top: .3em; |
|
| 91 |
+ padding-left: .5em; |
|
| 92 |
+ } |
|
| 85 | 93 |
footer {
|
| 86 |
- padding-top: 15px; |
|
| 87 |
- time, .author { color: $light-text; }
|
|
| 94 |
+ margin-top: 2em; |
|
| 95 |
+ padding-top: 1em; |
|
| 96 |
+ margin-bottom: 1.5em; |
|
| 97 |
+ background: $border top left repeat-x; |
|
| 98 |
+ time, .author { color: $text-color-light; @extend .sans; }
|
|
| 88 | 99 |
} |
| 89 | 100 |
} |
| 90 | 101 |
} |
| ... | ... |
@@ -103,10 +111,25 @@ article + article {
|
| 103 | 103 |
padding: .4em .8em; |
| 104 | 104 |
margin-right: .5em; |
| 105 | 105 |
text-decoration: none; |
| 106 |
+ color: mix($text-color, $text-color-light); |
|
| 107 |
+ @extend .serif; |
|
| 106 | 108 |
@include transition(background-color, .5s); |
| 107 | 109 |
&:hover {
|
| 108 | 110 |
background: $link-color-hover; |
| 111 |
+ text-shadow: none; |
|
| 109 | 112 |
color: $main-bg; |
| 110 | 113 |
} |
| 111 | 114 |
} |
| 115 |
+ footer {
|
|
| 116 |
+ @extend .sans; |
|
| 117 |
+ margin-top: 1em; |
|
| 118 |
+ p.meta { color: $text-color-light; }
|
|
| 119 |
+ a { color: inherit; &:hover{ color: $link-color-hover;} }
|
|
| 120 |
+ } |
|
| 121 |
+} |
|
| 122 |
+ |
|
| 123 |
+.separator {
|
|
| 124 |
+ content: "\2022 "; |
|
| 125 |
+ padding: 0 .4em 0 .2em; |
|
| 126 |
+ display: inline-block; |
|
| 112 | 127 |
} |
| ... | ... |
@@ -1,8 +1,3 @@ |
| 1 |
-{% if page.author %}
|
|
| 2 |
- {% assign author = page.author %}
|
|
| 3 |
-{% else %}
|
|
| 4 |
- {% assign author = site.author %}
|
|
| 5 |
-{% endif %}
|
|
| 6 | 1 |
{% unless page.no_header %}
|
| 7 | 2 |
<header> |
| 8 | 3 |
{% if index %}
|
| ... | ... |
@@ -10,19 +5,20 @@ |
| 10 | 10 |
{% else %}
|
| 11 | 11 |
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
|
| 12 | 12 |
{% endif %}
|
| 13 |
- {% unless page.no_meta or !index %}<p class="meta">{% include post_meta.html %}</p>{% endunless %}
|
|
| 13 |
+ {% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %}
|
|
| 14 | 14 |
</header> |
| 15 | 15 |
{% endunless %}
|
| 16 | 16 |
{% if index %}
|
| 17 |
-<div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
|
|
| 18 |
-<footer> |
|
| 19 |
- <p> |
|
| 20 |
- {% if content contains "<!-- more -->" or content contains "<!--more-->" %}
|
|
| 21 |
- <a rel="full-article" href="{{ page.url }}">Read more …</a>
|
|
| 22 |
- {% endif %}
|
|
| 23 |
- {% include post_meta.html %}
|
|
| 24 |
- </p> |
|
| 25 |
-</footer> |
|
| 17 |
+ <div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
|
|
| 18 |
+ <p><a rel="full-article" href="{{ page.url }}">Read on →</a></p>
|
|
| 19 |
+ <footer> |
|
| 20 |
+ <p class="meta"> |
|
| 21 |
+ {% include post_author.html %}
|
|
| 22 |
+ {% include post_date.html %}
|
|
| 23 |
+ <span class="comments"><a rel="comments" href="{{ page.url }}#disqus_thread">Add a comment</a></span>
|
|
| 24 |
+ {% include sharing.html %}
|
|
| 25 |
+ </p> |
|
| 26 |
+ </footer> |
|
| 26 | 27 |
{% else %}
|
| 27 | 28 |
<div class="entry-content">{{ content | smart_quotes }}</div>
|
| 28 | 29 |
{% endif %}
|
| ... | ... |
@@ -1,7 +1,13 @@ |
| 1 |
+<div id="disqus_thread"></div> |
|
| 1 | 2 |
<script type="text/javascript"> |
| 2 |
- var disqus_url = "{{ site.url }}{{ page.url }}";
|
|
| 3 |
+ var disqus_shortname = '{{ site.disqus_short_name }}';
|
|
| 4 |
+ var disqus_identifier = '{{ site.url }}{{ page.url }}';
|
|
| 5 |
+ var disqus_url = '{{ site.url }}{{ page.url }}';
|
|
| 6 |
+ var disqus_developer = 1; |
|
| 7 |
+ (function() {
|
|
| 8 |
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
| 9 |
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; |
|
| 10 |
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
| 11 |
+ })(); |
|
| 3 | 12 |
</script> |
| 4 |
-<noscript> |
|
| 5 |
- <a href="http://{{ site.disqus_short_name }}.disqus.com/?url=ref">View the discussion thread</a>
|
|
| 6 |
-</noscript> |
|
| 7 |
-<script type="text/javascript" src="http://disqus.com/forums/{{ site.disqus_short_name }}/embed.js"></script>
|
|
| 13 |
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
| 8 | 14 |
deleted file mode 100644 |
| ... | ... |
@@ -1,7 +0,0 @@ |
| 1 |
-{% if page.date %}
|
|
| 2 |
-<time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time>
|
|
| 3 |
-{% endif %}
|
|
| 4 |
-{% if page.updated %}
|
|
| 5 |
-<time class="updated" datetime="{{ page.updated | datetime }}"></time>
|
|
| 6 |
-{% endif %}
|
|
| 7 |
-{% if author %}<span class="byline author vcard"><span class="fn">{{ author }}</span></span>{% endif %}
|
| ... | ... |
@@ -1,13 +1,5 @@ |
| 1 | 1 |
--- |
| 2 |
-layout: default |
|
| 3 |
-no_title_link: true |
|
| 4 |
-permalink: pretty |
|
| 5 |
-single: true |
|
| 2 |
+layout: post |
|
| 6 | 3 |
--- |
| 7 | 4 |
|
| 8 |
-<article> |
|
| 9 |
- {% include article.html %}
|
|
| 10 |
- {% if site.disqus_short_name %}
|
|
| 11 |
- <div id="disqus_thread">{% include disqus_thread.html %}</div>
|
|
| 12 |
- {% endif %}
|
|
| 13 |
-</article> |
|
| 5 |
+<!-- if you want a page layout --> |
| ... | ... |
@@ -6,11 +6,16 @@ single: true |
| 6 | 6 |
<article class="hentry"> |
| 7 | 7 |
{% include article.html %}
|
| 8 | 8 |
<footer> |
| 9 |
- <p> |
|
| 10 |
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
|
|
| 9 |
+ <p class="meta"> |
|
| 10 |
+ {% include post_author.html %}
|
|
| 11 |
+ {% include post_date.html %}
|
|
| 12 |
+ {% include sharing.html %}
|
|
| 11 | 13 |
</p> |
| 12 | 14 |
</footer> |
| 13 | 15 |
{% if site.disqus_short_name %}
|
| 16 |
+ <section> |
|
| 17 |
+ <h1>Comments</h1> |
|
| 14 | 18 |
<div id="disqus_thread">{% include disqus_thread.html %}</div>
|
| 19 |
+ </section> |
|
| 15 | 20 |
{% endif %}
|
| 16 | 21 |
</article> |
| ... | ... |
@@ -9,4 +9,14 @@ blog_index: true |
| 9 | 9 |
{% include article.html %}
|
| 10 | 10 |
</article> |
| 11 | 11 |
{% endfor %}
|
| 12 |
- |
|
| 12 |
+{% if site.disqus_short_name %}
|
|
| 13 |
+<script type="text/javascript"> |
|
| 14 |
+ var disqus_shortname = '{{ site.disqus_short_name }}';
|
|
| 15 |
+ (function () {
|
|
| 16 |
+ var s = document.createElement('script'); s.async = true;
|
|
| 17 |
+ s.type = 'text/javascript'; |
|
| 18 |
+ s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; |
|
| 19 |
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
|
| 20 |
+ }()); |
|
| 21 |
+</script> |
|
| 22 |
+{% endif %}
|