1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01:00

entry meta as include, different layout

This commit is contained in:
Matthias Kretschmann 2013-12-01 17:14:38 +01:00
parent 65e4b1e0f6
commit 1c522f648f
5 changed files with 26 additions and 41 deletions

View File

@ -0,0 +1,12 @@
<footer class="entry-meta">
<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

@ -22,14 +22,8 @@ layout: base
</p>
</section>
<footer class="entry-meta">
<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>
<p class="time">{{ page.date | timeago }} <span class="modtime"></span></p>
</footer>
{% include entry_meta.html %}
</article>
</section>

View File

@ -17,14 +17,8 @@ layout: base
<section class="entry-content">
{{ content }}
</section>
<footer class="entry-meta">
<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>
<p class="time">{{ page.date | timeago }} <span class="modtime"></span></p>
</footer>
{% include entry_meta.html %}
</article>

View File

@ -16,19 +16,9 @@ layout: base
{{ content }}
</section>
<footer class="entry-meta">
<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>{{ page.date | timeago }}</p>
{% if page.moddate %}
<p class="modtime">updated: {{ page.moddate | timeago }}</p>
{% endif %}
</div>
</footer>
{% include entry_meta.html %}
</article>
</section>

View File

@ -174,16 +174,16 @@
line-height: 1.4em;
}
.byline,
.time,
.categories {
text-align: center;
}
.byline,
.time {
font-style: italic;
color: @text-color-light;
text-align: center;
@media @breakpoint2 {
text-align: right;
float: right;
}
}
.byline {
@ -197,13 +197,8 @@
color: @text-color-dimmed
}
.time { clear: right; }
.categories {
.heading-band;
@media @breakpoint2 {
float: left;
}
}