1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

better post date and updated date

This commit is contained in:
Matthias Kretschmann 2013-12-01 21:46:31 +01:00
parent b43bb5cacb
commit e37216897a
8 changed files with 22 additions and 20 deletions

View File

@ -1,12 +1,14 @@
<footer class="entry-meta">
<p class="byline author vcard source-org"><span class="by">by</span> <a class="fn" rel="author" href="/about/">{{ page.author }}</a></p>
<time class="pubdate" datetime="{{ page.date | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}>{{ page.date | timeago }}</time>
{% if page.updated %}
<time class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | timeago }}</time>
{% endif %}
<p class="categories">
{{ page.categories | category_links }}
</p>
<p class="byline author vcard source-org"><span class="by">by</span> <a class="fn" rel="author" href="/about/">{{ page.author }}</a></p>
<div class="time">
<p title="{{ page.date | date_to_xmlschema }}">{{ page.date | timeago }}</p>
{% if page.moddate %}
<p class="modtime" title="{{ page.date | date_to_xmlschema }}">updated: {{ page.moddate | timeago }}</p>
{% endif %}
</div>
</footer>

View File

@ -6,7 +6,7 @@ title: 'HowTo: Make Ubuntu A Perfect Mac File Server And Time Machine Volume [Up
author: Matthias Kretschmann
date: 2008-06-19 03:08:11+00:00
moddate: 2009-01-19 03:08:11+00:00
updated: 2009-01-19 03:08:11+00:00
wordpress_id: 75
categories:

View File

@ -4,7 +4,7 @@ layout: post
title: Badged - iOS Style Notification Badges for WordPress
image: Badged-Teaser-kremalicious@2x.png
author: Matthias Kretschmann
moddate: 2013-11-10 07:56:46+00:00
updated: 2013-11-10 07:56:46+00:00
sticky: true
date: 2011-12-15 07:56:46+00:00

View File

@ -11,4 +11,4 @@ categories:
Don't fully agree with Evgeny Morozov's culture pessimism but he makes some good points in this article:
> This bubbling discontent is reassuring. It might even help bury some of the myths spun by Silicon Valley. Wouldnt it be nice if one day, told that Googles mission is to “organize the worlds information and make it universally accessible and useful,” we would finally read between the lines and discover its true meaning: “to monetize all of the worlds information and make it universally inaccessible and profitable”? With this act of subversive interpretation, we might eventually hit upon the greatest emancipatory insight of all: Letting Google organize all of the worlds information makes as much sense as letting Halliburton organize all of the worlds oil.
> It might even help bury some of the myths spun by Silicon Valley. Wouldnt it be nice if one day, told that Googles mission is to “organize the worlds information and make it universally accessible and useful,” we would finally read between the lines and discover its true meaning: “to monetize all of the worlds information and make it universally inaccessible and profitable”? With this act of subversive interpretation, we might eventually hit upon the greatest emancipatory insight of all: Letting Google organize all of the worlds information makes as much sense as letting Halliburton organize all of the worlds oil.

View File

@ -23,7 +23,7 @@
}
.page-single & {
padding-bottom: @line-height-computed
padding-bottom: @line-height-computed*2
}
}
@ -171,17 +171,16 @@
.clearfix;
margin-top: @line-height-computed*2;
font-size: @font-size-small;
line-height: 1.4em;
}
.byline,
.time,
time,
.categories {
text-align: center;
}
.byline,
.time {
time {
font-style: italic;
color: @text-color-light;
}
@ -192,13 +191,13 @@
.by { display: block }
}
.time,
.modtime {
time {
display: block;
color: @text-color-dimmed
}
.categories {
margin-top: @line-height-computed;
}

View File

@ -25,8 +25,8 @@ layout: nil
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.moddate %}
<updated>{{ post.moddate | date_to_xmlschema }}</updated>
{% if post.updated %}
<updated>{{ post.updated | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ site.url }}/{{ post.url }}</id>

View File

@ -2,4 +2,4 @@ User-agent: *
Disallow: /search/
Disallow: /page/
Sitemap: http://kremalicious.com/sitemap.xml
Sitemap: {{ site.url }}/sitemap.xml

View File

@ -5,6 +5,7 @@
{
"title" : "{{ post.title | escape | titlecase }}",
"category" : "{{ post.categories }}",
"tag" : "{{ post.tags }}",
"url" : "{{ post.url }}",
"date" : "{{ post.date }}",
"content" : "{{ post.content | strip_html | strip_newlines | escape }}"