1. Switched back to Rdiscount
2. Improved Blockquote comment header 3. Added Include File and Pullquote plugins 4. Improved blog typography 5. Simplified "Read more" link
This commit is contained in:
parent
105ba14343
commit
f77db80077
14 changed files with 191 additions and 59 deletions
|
@ -10,22 +10,19 @@
|
|||
{% else %}
|
||||
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
|
||||
{% endif %}
|
||||
{% unless page.no_meta %}
|
||||
<p>
|
||||
{% if page.date %}
|
||||
<time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time>
|
||||
{% endif %}
|
||||
{% if page.updated %}
|
||||
<time class="updated" datetime="{{ page.updated | datetime }}"></time>
|
||||
{% endif %}
|
||||
{% if author %}<span class="byline author vcard">By <span class="fn">{{ author }}</span></span>{% endif %}
|
||||
</p>
|
||||
{% endunless %}
|
||||
{% unless page.no_meta or !index %}<p class="meta">{% include post_meta.html %}</p>{% endunless %}
|
||||
</header>
|
||||
{% endunless %}
|
||||
{% if index %}
|
||||
<div class="entry-content">{{ content | exerpt(content, page.url, 'Continue reading »') | smart_quotes }}</div>
|
||||
<div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
|
||||
<footer>
|
||||
<p>
|
||||
{% if content contains "<!-- more -->" or content contains "<!--more-->" %}
|
||||
<a rel="full-article" href="{{ page.url }}">Read more …</a>
|
||||
{% endif %}
|
||||
{% include post_meta.html %}
|
||||
</p>
|
||||
</footer>
|
||||
{% else %}
|
||||
<div class="entry-content">{{ content | smart_quotes }}</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
7
themes/classic/source/_includes/post_meta.html
Normal file
7
themes/classic/source/_includes/post_meta.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% if page.date %}
|
||||
<time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time>
|
||||
{% endif %}
|
||||
{% if page.updated %}
|
||||
<time class="updated" datetime="{{ page.updated | datetime }}"></time>
|
||||
{% endif %}
|
||||
{% if author %}<span class="byline author vcard"><span class="fn">{{ author }}</span></span>{% endif %}
|
|
@ -4,7 +4,7 @@
|
|||
<nav>{% include navigation.html %}</nav>
|
||||
<div>
|
||||
<div>
|
||||
<div id="articles">{{ content }}</div>
|
||||
<div id="articles" {% if page.blog_index %} class="blog-index" {% endif %}>{{ content }}</div>
|
||||
{% unless page.sidebar == 'none' %}
|
||||
<aside>{% include sidebar.html %}</aside>
|
||||
{% endunless %}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
layout: default
|
||||
blog_index: true
|
||||
---
|
||||
{% for page in site.posts limit:3 %}
|
||||
{% assign content = page.content %}
|
||||
{% assign index = true %}
|
||||
{% for page in site.posts limit:site.posts_per_page %}
|
||||
{% assign content = page.content %}
|
||||
<article>
|
||||
{% include article.html %}
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue