Skip to content

Commit

Permalink
Uodate the layout for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcoman committed Jan 7, 2016
1 parent 9d06435 commit f6050fc
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
27 changes: 27 additions & 0 deletions _includes/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<section id="post" class="post container content-section text-center">
<div class="row">
<div class="col-md-10 col-md-offset-1">
{% include swipe-instructions.html %}

<h1><strong>{{ page.title }}</strong></h1>
<h4><strong>{{ page.date | date: "%B %-d, %Y" }}</strong>
<small> . <a href="/blog/{{ page.category }}">{{ page.category }} . <a href="{{site.baseurl}}{{page.url }}#disqus_thread">Comments</a>
{% for tag in page.tags %}
<a href="{{site.baseurl}}/tags/{{tag}}/">#{{ tag }}</a>
{% endfor %}
</small>
</h4>

<div id="post-content" class="post-content text-justify">
{{ page.content | markdownify }}
</div>

{% include share.html %}

{% include comments.html %}

{% include social-buttons.html %}

</div>
</div>
</section>
31 changes: 2 additions & 29 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,11 @@

{% include head.html %}

<body>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" data-offset="151">

{% include navigation.html %}

<section id="post" class="container content-section text-center">
<div class="row">
<div class="col-md-10 col-md-offset-1">

{% include swipe-instructions.html %}

<h1><strong>{{ page.title }}</strong></h1>
<h4><strong>{{ page.date | date_to_string }}</strong>
<small> . {{ page.category }} . <a href="{{site.baseurl}}{{page.url }}#disqus_thread">Comments</a>
{% for tag in page.tags %}
<a href="{{site.baseurl}}/tags/{{tag}}/">#{{ tag }}</a>
{% endfor %}
</small>
</h4>

{{ page.content | markdownify }}

{% include share.html %}

{% if jekyll.environment == "production" %}
{% include comments.html %}
{% endif %}

{% include social-buttons.html %}

</div>
</div>
</section>
{% include post.html %}

{% include footer.html %}

Expand Down
1 change: 1 addition & 0 deletions _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "partials/apply-now";
@import "partials/contact";
@import "partials/navigation";
@import "partials/post";
@import "partials/team";
@import "partials/timeline";

Expand Down
7 changes: 7 additions & 0 deletions _sass/partials/_post.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.post-content {
ul,
ol {
text-align: left;
list-style-position: inside;
}
}

0 comments on commit f6050fc

Please sign in to comment.