mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +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>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="entry-meta">
|
{% include entry_meta.html %}
|
||||||
<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>
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -17,14 +17,8 @@ layout: base
|
|||||||
<section class="entry-content">
|
<section class="entry-content">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="entry-meta">
|
{% include entry_meta.html %}
|
||||||
<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>
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
@ -16,19 +16,9 @@ layout: base
|
|||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="entry-meta">
|
{% include entry_meta.html %}
|
||||||
<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>
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -174,16 +174,16 @@
|
|||||||
line-height: 1.4em;
|
line-height: 1.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.byline,
|
||||||
|
.time,
|
||||||
|
.categories {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.byline,
|
.byline,
|
||||||
.time {
|
.time {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: @text-color-light;
|
color: @text-color-light;
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
@media @breakpoint2 {
|
|
||||||
text-align: right;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.byline {
|
.byline {
|
||||||
@ -197,13 +197,8 @@
|
|||||||
color: @text-color-dimmed
|
color: @text-color-dimmed
|
||||||
}
|
}
|
||||||
|
|
||||||
.time { clear: right; }
|
|
||||||
|
|
||||||
.categories {
|
.categories {
|
||||||
.heading-band;
|
|
||||||
@media @breakpoint2 {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user