Plus some refactoring and code cleanup 😌
This commit is contained in:
Panos Sakkos 2015-11-22 02:01:43 +01:00
parent 2f3c065279
commit ef491cbb9e
9 changed files with 27 additions and 18 deletions

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
</div>
</div>

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
@ -16,7 +16,7 @@
{{ post.content | truncatewords: site.post-preview-words | strip_html | markdownify }}
<a href="{{site.baseurl}}/blog/"><h4><strong>View more posts</strong></h4></a>
<h4><a href="{{site.baseurl}}/blog/">View more posts</a></h4>
</div>
</div>

15
_includes/post-list.html Normal file
View file

@ -0,0 +1,15 @@
<!-- Post List Start -->
<h4 align="left">
<strong>{{ post.date | date_to_string }}</strong>
<small>. {{ post.category }} .</small>
<br class="visible-xs-block">
<a href="{{site.baseurl}}{{post.url}}">
<strong>{{ post.title }}</strong>
</a>
<br class="visible-xs-block">
<small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small>
</h4>
<!-- Post List End -->

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}

View file

@ -12,13 +12,13 @@
<section id="page" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
{{ page.content | markdownify }}
<div class="col-md-8 col-md-offset-2">
<div>
{% for post in paginator.posts %}
<h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <br class="visible-xs-block visible-sm-block"><a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }}</strong> </a> <br class="visible-xs-block visible-sm-block"><small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4>
{% include post-list.html%}
{% endfor %}
</div>

View file

@ -12,7 +12,7 @@
<section class="container content-section text-center">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
<h1><strong>{{ page.title }}</strong></h1>
@ -20,9 +20,6 @@
<img class="img-responsive center-block" src="{{site.baseurl}}{{ site.404-img }}" alt="">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
{% include social-buttons.html %}
</div>

View file

@ -12,7 +12,7 @@
<section id="post" class="container content-section text-center">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
<h1><strong>{{ page.title }}</strong></h1>
<h4><strong>{{ page.date | date_to_string }}</strong>

View file

@ -12,10 +12,7 @@
<section class="container content-section text-center">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div id="archives">
<div>
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
{% assign tag = page.title %}
@ -24,7 +21,7 @@
<div>
{% for post in site.posts %}
{% if post.tags contains tag %}
<h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }} </a> </strong> <small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4>
{% include post-list.html%}
{% endif %}
{% endfor %}
</div>