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:
parent
65e4b1e0f6
commit
1c522f648f
12
_src/_includes/entry_meta.html
Normal file
12
_src/_includes/entry_meta.html
Normal 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>
|
@ -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>
|
||||
{% include entry_meta.html %}
|
||||
|
||||
<p class="time">{{ page.date | timeago }} <span class="modtime"></span></p>
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
</section>
|
||||
|
@ -18,13 +18,7 @@ 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>
|
||||
<p class="time">{{ page.date | timeago }} <span class="modtime"></span></p>
|
||||
</footer>
|
||||
{% include entry_meta.html %}
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -17,18 +17,8 @@ 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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user