mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
1. Styled pagination for blog index
2. Fixed Newer pagination link on page 2 3. Improved sidebar section breakdown on collapse 4. Removed sharing links from the blog index page (moved to pages) 5. Improved styling for metadata on the blog index 6. Moved /blog/archives.html to /blog/archives/index.html 7. Improved responsive layout styling bugs
This commit is contained in:
@ -5,20 +5,17 @@
|
||||
{% else %}
|
||||
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
|
||||
{% endif %}
|
||||
{% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %}
|
||||
{% unless page.no_meta %}
|
||||
<p class="meta">{% include post_date.html %}</p>
|
||||
{% endunless %}
|
||||
</header>
|
||||
{% if index %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% if index %}
|
||||
<div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
|
||||
<p><a rel="full-article" href="{{ post.url }}">Read on →</a></p>
|
||||
<footer>
|
||||
<p class="meta">
|
||||
{% include post_author.html %}
|
||||
{% include post_date.html %}
|
||||
{% include post_categories.html %}
|
||||
<span class="comments"><a rel="comments" href="{{ post.url }}#disqus_thread">Comments</a></span>
|
||||
{% include sharing.html %}
|
||||
</p>
|
||||
<a rel="full-article" href="{{ post.url }}">Read on →</a>
|
||||
</footer>
|
||||
{% else %}
|
||||
<div class="entry-content">{{ content | smart_quotes }}</div>
|
||||
|
||||
@ -12,5 +12,5 @@
|
||||
</form>
|
||||
<ul role="main-nav">
|
||||
<li><a href="/">Blog</a></li>
|
||||
<li><a href="/blog/archives.html">Archives</a></li>
|
||||
<li><a href="/blog/archives/index.html">Archives</a></li>
|
||||
</ul>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
||||
{% unless category == '0' %}
|
||||
<span class="categories"> in
|
||||
<span class="categories">
|
||||
{% if post %}
|
||||
{{ post.categories | category_links }}
|
||||
{% else %}
|
||||
|
||||
@ -11,13 +11,17 @@ blog_index: true
|
||||
</article>
|
||||
{% endfor %}
|
||||
<nav role="pagination">
|
||||
{% if paginator.next_page %}
|
||||
<a href="/page{{paginator.next_page}}/">← Older</a>
|
||||
{% endif %}
|
||||
<a href="/blog/archive.html">Blog Archive</a>
|
||||
{% if paginator.previous_page %}
|
||||
<a href="/page{{paginator.previous_page}}/">Newer →</a>
|
||||
{% endif %}
|
||||
<div>
|
||||
{% if paginator.next_page %}
|
||||
<a class="prev" href="/page{{paginator.next_page}}/">← Older</a>
|
||||
{% endif %}
|
||||
<a href="/blog/archives/index.html">Blog Archives</a>
|
||||
{% if paginator.previous_page and paginator.previous_page > 1 %}
|
||||
<a class="next" href="/page{{paginator.previous_page}}/">Newer →</a>
|
||||
{% elsif paginator.previous_page %}
|
||||
<a class="next" href="/">Newer →</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
{% if site.disqus_short_name %}
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -9,7 +9,7 @@ function getNav(){
|
||||
});
|
||||
}
|
||||
function addSidebarToggler() {
|
||||
$('#content').prepend('<a href="#" class="toggle-sidebar">»</a>');
|
||||
$('#content').append('<a href="#" class="toggle-sidebar">»</a>');
|
||||
$('.toggle-sidebar').bind('click', function(e){
|
||||
e.preventDefault();
|
||||
if($('body').hasClass('collapse-sidebar')){
|
||||
|
||||
Reference in New Issue
Block a user