tart up the post meta info a little bit

This commit is contained in:
Coby Chapple 2013-07-08 16:36:07 +01:00
parent 1a7bbcaafc
commit f4580fb40c
8 changed files with 118 additions and 27 deletions

View File

@ -4,12 +4,21 @@
{{ post.title }}
</a>
</h2>
<span class="post-category">
{% for category in post.categories %}
<span class="label">{{ category }}</span>
{% endfor %}
</span>
<div class="post-meta">
<span class="post-date">
{{ post.date | date_to_string }}
</span>
<a href="https://github.com/{{ post.author }}" class="post-author">
<img src="https://github.com/{{ post.author }}.png" class="avatar" />
{{ post.author }}
</a>
</div>
<p class="post-content">
{{ post.content }}
</p>
<p class="post-details">
Posted on {{ post.date | date_to_string }}
by <a href="https://github.com/{{ post.author }}">@{{ post.author }}</a>,
filed in {{ post.categories | array_to_sentence_string }}
</p>
</article>

View File

@ -7,12 +7,21 @@ layout: news
{{ page.title }}
<a href="{{ page.url }}" class="permalink" title="Permalink"></a>
</h2>
<span class="post-category">
{% for category in page.categories %}
<span class="label">{{ category }}</span>
{% endfor %}
</span>
<div class="post-meta">
<span class="post-date">
{{ page.date | date_to_string }}
</span>
<a href="https://github.com/{{ page.author }}" class="post-author">
<img src="https://github.com/{{ page.author }}.png" class="avatar" />
{{ page.author }}
</a>
</div>
<p class="post-content">
{{ content }}
</p>
<p class="post-details">
Posted on {{ page.date | date_to_string }}
by <a href="https://github.com/{{ page.author }}">@{{ page.author }}</a>,
filed in {{ page.categories | array_to_sentence_string }}
{{ content }}
</p>
</article>

View File

@ -4,7 +4,7 @@ title: "Jekyll 1.0.0 Released"
date: "2013-05-06 02:12:52 +0200"
author: parkr
version: 1.0.0
categories: [releases, general]
categories: [release]
---
Hey! After many months of hard works by Jekyll's contributors, we're excited
@ -17,7 +17,7 @@ examples and for compiling this list):
- Automatically generated post excerpts ([example](https://gist.github.com/benbalter/5555369))
- Save and preview drafts before publishing ([example](https://gist.github.com/benbalter/5555992))
_(Take a look at the [Upgrading][] page in the docs for more detailed information.)_
Take a look at the [Upgrading][] page in the docs for more detailed information.
[history]: /docs/history/#100__20130506
[Upgrading]: /docs/upgrading/

View File

@ -4,11 +4,9 @@ title: "Jekyll 1.0.1 Released"
date: "2013-05-08 23:46:11 +0200"
author: parkr
version: 1.0.1
categories: [releases, general]
categories: [release]
---
_(Take a look at the [History][] page in the docs for more detailed information.)_
Hot on the trails of v1.0, v1.0.1 is out! Here are the highlights:
* Add newer `language-` class name prefix to code blocks ([#1037][])
@ -19,6 +17,8 @@ Hot on the trails of v1.0, v1.0.1 is out! Here are the highlights:
* Don't print deprecation warning when no arguments are specified. ([#1041][])
* Add missing `</div>` to site template used by `new` subcommand, fixed typos in code ([#1032][])
See the [History][] page for more information on this release.
{% assign issue_numbers = "1037|1040|1048|1053|1045|1041|1032" | split: "|" %}
{% for issue in issue_numbers %}
[#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}

View File

@ -4,11 +4,9 @@ title: "Jekyll 1.0.2 Released"
date: "2013-05-12 14:45:00 +0200"
author: parkr
version: 1.0.2
categories: [releases, general]
categories: [release]
---
_(Take a look at the [History][] page in the docs for more detailed information.)_
v1.0.2 has some key bugfixes that optionally restore some behaviour from pre-1.0
releases, and fix some other annoying bugs:
@ -20,6 +18,8 @@ releases, and fix some other annoying bugs:
* Add a `data-lang="<lang>"` attribute to Redcarpet code blocks ([#1066][])
* Catching that Redcarpet gem isn't installed ([#1059][])
See the [History][] page for more information on this release.
{% assign issue_numbers = "1059|1061|1066|1067|1078|1081|1084" | split: "|" %}
{% for issue in issue_numbers %}
[#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}

View File

@ -4,11 +4,9 @@ title: "Jekyll 1.0.3 Released"
date: "2013-06-07 21:02:13 +0200"
author: parkr
version: 1.0.3
categories: [releases, general]
categories: [release]
---
_(Take a look at the [History][] page in the docs for more detailed information.)_
v1.0.3 contains some key enhancements and bug fixes:
- Fail with non-zero exit code when MaRuKu errors ([#1190][]) or Liquid errors ([#1121][])
@ -17,6 +15,8 @@ v1.0.3 contains some key enhancements and bug fixes:
- Fix compatibility with `exclude` and `include` with pre-1.0 Jekyll ([#1114][])
- Fix pagination issue regarding `File.basename` and `page:num` ([#1063][])
See the [History][] page for more information on this release.
{% assign issue_numbers = "1190|1121|1189|1115|1114|1063" | split: "|" %}
{% for issue in issue_numbers %}
[#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}

View File

@ -521,10 +521,83 @@ article h2:first-child {
margin-bottom: 20px;
}
.news .post-details {
padding: 0;
font-size: 0.8em;
color: gray;
.news .post-meta {
}
.post-category,
.post-meta {
display: inline-block;
vertical-align: middle;
font-size: .8em;
}
.post-category {
display: inline-block;
margin-left: -30px;
padding: 6px 10px 8px;
padding-left: 50px;
border-radius: 0 5px 5px 0;
position: relative;
box-shadow: 0 1px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.3);
background: #9e2812;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzllMjgxMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2ZjBkMGQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #9e2812 0%, #6f0d0d 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9e2812), color-stop(100%,#6f0d0d));
background: -webkit-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
background: -o-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
background: -ms-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
background: linear-gradient(to bottom, #9e2812 0%,#6f0d0d 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9e2812', endColorstr='#6f0d0d',GradientType=0 );
}
.label {
float: left;
text-transform: uppercase;
font-weight: bold;
}
@media (max-width: 568px){
.post-category {
margin-right: -30px;
}
}
@media (min-width: 768px){
.post-category {
margin-left: -50px;
}
}
.post-category:before {
content: "";
position: absolute;
top: -10px;
left: 0px;
border-color: transparent #6f0d0d #6f0d0d transparent;
border-style: solid;
border-width: 5px;
width: 0;
height: 0;
}
.avatar {
width: 24px;
height: 24px;
border-radius: 3px;
display: inline-block;
vertical-align: middle;
}
.post-meta {
padding: 5px 0;
color: #aaa;
font-weight: 600;
}
.post-date,
.post-author {
margin-left: 10px;
}
/* Code Highlighting */

View File

@ -5,6 +5,6 @@ permalink: /news/releases/
author: all
---
{% for post in site.categories.releases %}
{% for post in site.categories.release %}
{% include news_item.html %}
{% endfor %}